diff --git a/sitegen/templates/topic-page/epub.html b/sitegen/templates/topic-page/epub.html index 27d760d..2b08141 100644 --- a/sitegen/templates/topic-page/epub.html +++ b/sitegen/templates/topic-page/epub.html @@ -11,7 +11,15 @@

{{.Authors}}; {{.Publisher}}
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/00/0000000062.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/00/0000000062.html index 32026c5..91cedef 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/00/0000000062.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/00/0000000062.html @@ -99,7 +99,15 @@

Stanley A. Renshon; New York University Press
@@ -120,7 +128,15 @@

Keith Beattie; New York University Press
@@ -141,7 +157,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -162,7 +186,15 @@

Pearl M. Oliner; New York University Press
@@ -183,7 +215,15 @@

Peter N. Stearns; New York University Press
@@ -204,7 +244,8 @@

Steven Chung; University of Minnesota Press
@@ -225,7 +266,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -246,7 +295,8 @@

Angelina E. Castagno; University of Minnesota Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000826.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000826.html index ffd8a97..6e721db 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000826.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000826.html @@ -99,7 +99,15 @@

Ryuzo Sato; New York University Press
@@ -120,7 +128,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -141,7 +150,8 @@

Antonio T. Tiongson Jr.; University of Minnesota Press
@@ -162,7 +172,8 @@

Amy Koritz and George J. Sanchez; University of Michigan Press
@@ -183,7 +194,8 @@

Stein, Kevin; The University of Michigan Press
@@ -204,7 +216,8 @@

Schur, Richard L.; The University of Michigan Press and The University of Michigan Library
@@ -225,7 +238,15 @@

Ian Shapiro; New York University Press
@@ -246,7 +267,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -267,7 +289,15 @@

Seth Forman; New York University Press
@@ -288,7 +318,15 @@

Mark Hertzog; New York University Press
@@ -309,7 +347,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -330,7 +369,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -351,7 +391,8 @@

Darling-Wolf, Fabienne; University of Michigan Press
@@ -372,7 +413,8 @@

Lee, Chin-Chuan; University of Michigan Press
@@ -393,7 +435,15 @@

Henry Jenkins et al; New York University Press
@@ -414,7 +464,15 @@

Ronald Suresh Roberts; New York University Press
@@ -435,7 +493,15 @@

Thomas Cushman; New York University Press
@@ -456,7 +522,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000885.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000885.html index d1e8174..dc811c3 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000885.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/08/0000000885.html @@ -92,7 +92,8 @@

Amy Koritz and George J. Sanchez; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/24/0000002458.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/24/0000002458.html index ee86203..f36cc59 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/24/0000002458.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/24/0000002458.html @@ -122,7 +122,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -143,7 +144,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -164,7 +166,8 @@

Usher, Nikki; The University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/31/0000003131.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/31/0000003131.html index 2d42c1b..dac882c 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/31/0000003131.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/31/0000003131.html @@ -99,7 +99,15 @@

Gary Minda; New York University Press
@@ -120,7 +128,15 @@

John W. Chapman; New York University Press
@@ -141,7 +157,15 @@

charles b.craver; New York University Press
@@ -162,7 +186,15 @@

Stephen M. Feldman.; New York University Press
@@ -183,7 +215,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -204,7 +237,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -225,7 +259,15 @@

Moshe Y. Herczl; New York University Press New York and London
@@ -246,7 +288,15 @@

Keith Beattie; New York University Press
@@ -267,7 +317,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -288,7 +339,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -309,7 +361,15 @@

Diane Helene Miller; New York University Press
@@ -330,7 +390,15 @@

James Darsey; New York University Press
@@ -351,7 +419,15 @@

Richard K. Vedder and Lowell E. Gallaway; New York University Press
@@ -372,7 +448,15 @@

Peter N. Stearns; New York University Press
@@ -393,7 +477,15 @@

Thomas Cushman; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/76/0000007672.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/76/0000007672.html index a0abb61..70944d3 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/76/0000007672.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/76/0000007672.html @@ -99,7 +99,15 @@

Ian Shapiro; New York University Press
@@ -120,7 +128,15 @@

Ronald Suresh Roberts; New York University Press
@@ -141,7 +157,15 @@

Katherine J. Mayberry; York University Press
@@ -162,7 +186,15 @@

Daniel Rancour-Laferriere; New York University Press
@@ -183,7 +215,15 @@

Cary Nelson; New York University Press
@@ -204,7 +244,15 @@

Peter N. Stearns; New York University Press
@@ -225,7 +273,15 @@

Paula C. Rust; New York University Press
@@ -246,7 +302,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/79/0000007907.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/79/0000007907.html index 8cc0fae..627295b 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/79/0000007907.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/79/0000007907.html @@ -99,7 +99,15 @@

Bill Ong Hing; NEW YORK UNIVERSITY PRESS
@@ -120,7 +128,8 @@

Bonnie A. Nardi; The University of Michigan Press
@@ -141,7 +150,15 @@

Moshe Y. Herczl; New York University Press New York and London
@@ -162,7 +179,15 @@

Nancy Levit; New York University Press
@@ -183,7 +208,15 @@

Diane Helene Miller; New York University Press
@@ -204,7 +237,15 @@

Jody David Armour; New york University Press
@@ -225,7 +266,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -246,7 +288,8 @@

Angelina E. Castagno; University of Minnesota Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/96/0000009640.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/96/0000009640.html index 5802bed..0b690b4 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/96/0000009640.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/00/96/0000009640.html @@ -99,7 +99,8 @@

Cummings, Robert E.; Barton, Matt; University of Michigan Press and University of Michigan Library
@@ -120,7 +121,15 @@

Michael Bérubé; New York University Press
@@ -141,7 +150,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -162,7 +179,8 @@

Shackelford, Laura; University of Michigan Press
@@ -183,7 +201,15 @@

Martha Grace Duncan; New York University Press
@@ -204,7 +230,8 @@

Stein, Kevin; The University of Michigan Press
@@ -225,7 +252,15 @@

Stephen M. Feldman.; New York University Press
@@ -246,7 +281,15 @@

Cary Nelson; New York University Press
@@ -267,7 +310,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -288,7 +332,15 @@

Diane Helene Miller; New York University Press
@@ -309,7 +361,15 @@

Jennifer L. Manlowe; New York University Press
@@ -330,7 +390,8 @@

Matthew A. Taylor; University of Minnesota Press
@@ -351,7 +412,15 @@

Kathleen Barry; New york University Press
@@ -372,7 +441,8 @@

Steven Chung; University of Minnesota Press
@@ -393,7 +463,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -414,7 +492,8 @@

Gabrys, Jennifer; The University of Michigan Press
@@ -435,7 +514,15 @@

Paula C. Rust; New York University Press
@@ -456,7 +543,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -477,7 +565,8 @@

Schur, Richard L.; The University of Michigan Press and The University of Michigan Library
@@ -498,7 +587,8 @@

David Mitchell; University of Minnesota Press
@@ -519,7 +609,15 @@

Katherine J. Mayberry; York University Press
@@ -540,7 +638,15 @@

R. Jeffrey Ringer; New York University Press
@@ -561,7 +667,15 @@

Gary Minda; New York University Press
@@ -582,7 +696,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -603,7 +718,15 @@

Ronald Suresh Roberts; New York University Press
@@ -624,7 +747,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -645,7 +769,15 @@

Keith Beattie; New York University Press
@@ -666,7 +798,15 @@

Steve Kroll-Smith; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/19/0000011928.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/19/0000011928.html index a767df8..2a07b2b 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/19/0000011928.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/19/0000011928.html @@ -99,7 +99,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -120,7 +128,15 @@

Ronald Suresh Roberts; New York University Press
@@ -141,7 +157,8 @@

Steven Chung; University of Minnesota Press
@@ -162,7 +179,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -183,7 +201,15 @@

Thomas Cushman; New York University Press
@@ -204,7 +230,8 @@

Syvertsen, Trine; Enli, Gunn; Mjøs, Ole J.; Moe, Hallvard; The University of Michigan Press
@@ -225,7 +252,8 @@

Lee, Chin-Chuan; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/40/0000014034.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/40/0000014034.html index 0efc737..c2a3a60 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/40/0000014034.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/01/40/0000014034.html @@ -99,7 +99,8 @@

Matthew A. Taylor; University of Minnesota Press
@@ -120,7 +121,15 @@

Robert M. Seltzer; New York University Press
@@ -141,7 +150,15 @@

Cary Nelson; New York University Press
@@ -162,7 +179,15 @@

Barbara Fass Leavy; New York University Press
@@ -183,7 +208,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -204,7 +230,15 @@

Niobe Way; New York University Press
@@ -225,7 +259,15 @@

Pearl M. Oliner; New York University Press
@@ -246,7 +288,15 @@

Katherine J. Mayberry; York University Press
@@ -267,7 +317,15 @@

Ruth Colker; New York University Press
@@ -288,7 +346,15 @@

Stanley A. Renshon; New York University Press
@@ -309,7 +375,15 @@

Jennifer L. Manlowe; New York University Press
@@ -330,7 +404,15 @@

Peggy Fitzhugh Johnstone; New York University Press
@@ -351,7 +433,15 @@

Peter L. Rudnytsky; New York University Press
@@ -372,7 +462,15 @@

Steven Goldberg; New York University Press
@@ -393,7 +491,15 @@

Paula C. Rust; New York University Press
@@ -414,7 +520,8 @@

David Mitchell; University of Minnesota Press
@@ -435,7 +542,15 @@

Robert Rogers; New york University Press
@@ -456,7 +571,15 @@

David Holbrook; New York University Press
@@ -477,7 +600,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -498,7 +629,15 @@

Stanley A. Renshon; New York University Press
@@ -519,7 +658,15 @@

David Kleinbard; New York University Press
@@ -540,7 +687,15 @@

Daniel Rancour-Laferriere; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/14/0000021488.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/14/0000021488.html index cf9dbf2..77ed4f1 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/14/0000021488.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/14/0000021488.html @@ -99,7 +99,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -120,7 +128,15 @@

Ben-Ami Scharfstein; New York University Press
@@ -141,7 +157,15 @@

David Holbrook; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/22/0000022256.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/22/0000022256.html index 094d49a..dedc75d 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/22/0000022256.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/22/0000022256.html @@ -99,7 +99,15 @@

Stanley A. Renshon; New York University Press
@@ -120,7 +128,15 @@

charles b.craver; New York University Press
@@ -141,7 +157,15 @@

Peter N. Stearns; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/61/0000026141.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/61/0000026141.html index 58a06dd..10fd48f 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/61/0000026141.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/02/61/0000026141.html @@ -99,7 +99,15 @@

Michael Bérubé; New York University Press
@@ -120,7 +128,8 @@

Stein, Kevin; The University of Michigan Press
@@ -141,7 +150,15 @@

Ruth Colker; New York University Press
@@ -162,7 +179,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -183,7 +201,15 @@

Ryuzo Sato; New York University Press
@@ -204,7 +230,15 @@

Bill Ong Hing; NEW YORK UNIVERSITY PRESS
@@ -225,7 +259,15 @@

Keith Beattie; New York University Press
@@ -246,7 +288,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -267,7 +310,15 @@

Diane Helene Miller; New York University Press
@@ -288,7 +339,15 @@

Thomas Cushman; New York University Press
@@ -309,7 +368,15 @@

Ronald Suresh Roberts; New York University Press
@@ -330,7 +397,15 @@

Stanley A. Renshon; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/04/38/0000043816.html b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/04/38/0000043816.html index 0e27ffe..4d22d05 100644 --- a/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/04/38/0000043816.html +++ b/sitegen/testdata/golden/topic-pages/no-google-analytics/00/00/04/38/0000043816.html @@ -127,7 +127,8 @@

Jenna M. Loyd; University of Minnesota Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/00/0000000062.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/00/0000000062.html index 4c165a0..6ba0fb1 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/00/0000000062.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/00/0000000062.html @@ -108,7 +108,15 @@

Stanley A. Renshon; New York University Press
@@ -129,7 +137,15 @@

Keith Beattie; New York University Press
@@ -150,7 +166,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -171,7 +195,15 @@

Pearl M. Oliner; New York University Press
@@ -192,7 +224,15 @@

Peter N. Stearns; New York University Press
@@ -213,7 +253,8 @@

Steven Chung; University of Minnesota Press
@@ -234,7 +275,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -255,7 +304,8 @@

Angelina E. Castagno; University of Minnesota Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000826.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000826.html index 2a1e1ee..24958eb 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000826.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000826.html @@ -108,7 +108,15 @@

Ryuzo Sato; New York University Press
@@ -129,7 +137,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -150,7 +159,8 @@

Antonio T. Tiongson Jr.; University of Minnesota Press
@@ -171,7 +181,8 @@

Amy Koritz and George J. Sanchez; University of Michigan Press
@@ -192,7 +203,8 @@

Stein, Kevin; The University of Michigan Press
@@ -213,7 +225,8 @@

Schur, Richard L.; The University of Michigan Press and The University of Michigan Library
@@ -234,7 +247,15 @@

Ian Shapiro; New York University Press
@@ -255,7 +276,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -276,7 +298,15 @@

Seth Forman; New York University Press
@@ -297,7 +327,15 @@

Mark Hertzog; New York University Press
@@ -318,7 +356,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -339,7 +378,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -360,7 +400,8 @@

Darling-Wolf, Fabienne; University of Michigan Press
@@ -381,7 +422,8 @@

Lee, Chin-Chuan; University of Michigan Press
@@ -402,7 +444,15 @@

Henry Jenkins et al; New York University Press
@@ -423,7 +473,15 @@

Ronald Suresh Roberts; New York University Press
@@ -444,7 +502,15 @@

Thomas Cushman; New York University Press
@@ -465,7 +531,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000885.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000885.html index 7511a19..681a5de 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000885.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/08/0000000885.html @@ -101,7 +101,8 @@

Amy Koritz and George J. Sanchez; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/24/0000002458.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/24/0000002458.html index db614ab..5d4e517 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/24/0000002458.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/24/0000002458.html @@ -131,7 +131,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -152,7 +153,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -173,7 +175,8 @@

Usher, Nikki; The University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/31/0000003131.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/31/0000003131.html index 57c7760..c5d2eb4 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/31/0000003131.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/31/0000003131.html @@ -108,7 +108,15 @@

Gary Minda; New York University Press
@@ -129,7 +137,15 @@

John W. Chapman; New York University Press
@@ -150,7 +166,15 @@

charles b.craver; New York University Press
@@ -171,7 +195,15 @@

Stephen M. Feldman.; New York University Press
@@ -192,7 +224,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -213,7 +246,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -234,7 +268,15 @@

Moshe Y. Herczl; New York University Press New York and London
@@ -255,7 +297,15 @@

Keith Beattie; New York University Press
@@ -276,7 +326,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -297,7 +348,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -318,7 +370,15 @@

Diane Helene Miller; New York University Press
@@ -339,7 +399,15 @@

James Darsey; New York University Press
@@ -360,7 +428,15 @@

Richard K. Vedder and Lowell E. Gallaway; New York University Press
@@ -381,7 +457,15 @@

Peter N. Stearns; New York University Press
@@ -402,7 +486,15 @@

Thomas Cushman; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/76/0000007672.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/76/0000007672.html index f6c4135..e04f423 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/76/0000007672.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/76/0000007672.html @@ -108,7 +108,15 @@

Ian Shapiro; New York University Press
@@ -129,7 +137,15 @@

Ronald Suresh Roberts; New York University Press
@@ -150,7 +166,15 @@

Katherine J. Mayberry; York University Press
@@ -171,7 +195,15 @@

Daniel Rancour-Laferriere; New York University Press
@@ -192,7 +224,15 @@

Cary Nelson; New York University Press
@@ -213,7 +253,15 @@

Peter N. Stearns; New York University Press
@@ -234,7 +282,15 @@

Paula C. Rust; New York University Press
@@ -255,7 +311,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/79/0000007907.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/79/0000007907.html index 0c0db75..94762e1 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/79/0000007907.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/79/0000007907.html @@ -108,7 +108,15 @@

Bill Ong Hing; NEW YORK UNIVERSITY PRESS
@@ -129,7 +137,8 @@

Bonnie A. Nardi; The University of Michigan Press
@@ -150,7 +159,15 @@

Moshe Y. Herczl; New York University Press New York and London
@@ -171,7 +188,15 @@

Nancy Levit; New York University Press
@@ -192,7 +217,15 @@

Diane Helene Miller; New York University Press
@@ -213,7 +246,15 @@

Jody David Armour; New york University Press
@@ -234,7 +275,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -255,7 +297,8 @@

Angelina E. Castagno; University of Minnesota Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/96/0000009640.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/96/0000009640.html index d1b85d0..2a2ae2a 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/96/0000009640.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/00/96/0000009640.html @@ -108,7 +108,8 @@

Cummings, Robert E.; Barton, Matt; University of Michigan Press and University of Michigan Library
@@ -129,7 +130,15 @@

Michael Bérubé; New York University Press
@@ -150,7 +159,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -171,7 +188,8 @@

Shackelford, Laura; University of Michigan Press
@@ -192,7 +210,15 @@

Martha Grace Duncan; New York University Press
@@ -213,7 +239,8 @@

Stein, Kevin; The University of Michigan Press
@@ -234,7 +261,15 @@

Stephen M. Feldman.; New York University Press
@@ -255,7 +290,15 @@

Cary Nelson; New York University Press
@@ -276,7 +319,8 @@

Klein, Julie Thompson; University of Michigan Press
@@ -297,7 +341,15 @@

Diane Helene Miller; New York University Press
@@ -318,7 +370,15 @@

Jennifer L. Manlowe; New York University Press
@@ -339,7 +399,8 @@

Matthew A. Taylor; University of Minnesota Press
@@ -360,7 +421,15 @@

Kathleen Barry; New york University Press
@@ -381,7 +450,8 @@

Steven Chung; University of Minnesota Press
@@ -402,7 +472,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -423,7 +501,8 @@

Gabrys, Jennifer; The University of Michigan Press
@@ -444,7 +523,15 @@

Paula C. Rust; New York University Press
@@ -465,7 +552,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -486,7 +574,8 @@

Schur, Richard L.; The University of Michigan Press and The University of Michigan Library
@@ -507,7 +596,8 @@

David Mitchell; University of Minnesota Press
@@ -528,7 +618,15 @@

Katherine J. Mayberry; York University Press
@@ -549,7 +647,15 @@

R. Jeffrey Ringer; New York University Press
@@ -570,7 +676,15 @@

Gary Minda; New York University Press
@@ -591,7 +705,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -612,7 +727,15 @@

Ronald Suresh Roberts; New York University Press
@@ -633,7 +756,8 @@

Eisner, Caroline; Vicinus, Martha; University of Michigan Press and University of Michigan Library
@@ -654,7 +778,15 @@

Keith Beattie; New York University Press
@@ -675,7 +807,15 @@

Steve Kroll-Smith; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/19/0000011928.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/19/0000011928.html index f506adf..2cbac61 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/19/0000011928.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/19/0000011928.html @@ -108,7 +108,15 @@

Sonia Livingstone and Julian Sefton-Green; New York University Press
@@ -129,7 +137,15 @@

Ronald Suresh Roberts; New York University Press
@@ -150,7 +166,8 @@

Steven Chung; University of Minnesota Press
@@ -171,7 +188,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -192,7 +210,15 @@

Thomas Cushman; New York University Press
@@ -213,7 +239,8 @@

Syvertsen, Trine; Enli, Gunn; Mjøs, Ole J.; Moe, Hallvard; The University of Michigan Press
@@ -234,7 +261,8 @@

Lee, Chin-Chuan; University of Michigan Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/40/0000014034.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/40/0000014034.html index 36936d0..61b5931 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/40/0000014034.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/01/40/0000014034.html @@ -108,7 +108,8 @@

Matthew A. Taylor; University of Minnesota Press
@@ -129,7 +130,15 @@

Robert M. Seltzer; New York University Press
@@ -150,7 +159,15 @@

Cary Nelson; New York University Press
@@ -171,7 +188,15 @@

Barbara Fass Leavy; New York University Press
@@ -192,7 +217,8 @@

Elizabeth Carolyn Miller; University of Michigan Press and University of Michigan Library
@@ -213,7 +239,15 @@

Niobe Way; New York University Press
@@ -234,7 +268,15 @@

Pearl M. Oliner; New York University Press
@@ -255,7 +297,15 @@

Katherine J. Mayberry; York University Press
@@ -276,7 +326,15 @@

Ruth Colker; New York University Press
@@ -297,7 +355,15 @@

Stanley A. Renshon; New York University Press
@@ -318,7 +384,15 @@

Jennifer L. Manlowe; New York University Press
@@ -339,7 +413,15 @@

Peggy Fitzhugh Johnstone; New York University Press
@@ -360,7 +442,15 @@

Peter L. Rudnytsky; New York University Press
@@ -381,7 +471,15 @@

Steven Goldberg; New York University Press
@@ -402,7 +500,15 @@

Paula C. Rust; New York University Press
@@ -423,7 +529,8 @@

David Mitchell; University of Minnesota Press
@@ -444,7 +551,15 @@

Robert Rogers; New york University Press
@@ -465,7 +580,15 @@

David Holbrook; New York University Press
@@ -486,7 +609,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -507,7 +638,15 @@

Stanley A. Renshon; New York University Press
@@ -528,7 +667,15 @@

David Kleinbard; New York University Press
@@ -549,7 +696,15 @@

Daniel Rancour-Laferriere; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/14/0000021488.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/14/0000021488.html index 8ff4e32..5573865 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/14/0000021488.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/14/0000021488.html @@ -108,7 +108,15 @@

Marshall W. Alcorn, Jr.; New York University Press
@@ -129,7 +137,15 @@

Ben-Ami Scharfstein; New York University Press
@@ -150,7 +166,15 @@

David Holbrook; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/22/0000022256.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/22/0000022256.html index ca8cbbd..fc5e7ff 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/22/0000022256.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/22/0000022256.html @@ -108,7 +108,15 @@

Stanley A. Renshon; New York University Press
@@ -129,7 +137,15 @@

charles b.craver; New York University Press
@@ -150,7 +166,15 @@

Peter N. Stearns; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/61/0000026141.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/61/0000026141.html index bb281ef..6b83901 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/61/0000026141.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/02/61/0000026141.html @@ -108,7 +108,15 @@

Michael Bérubé; New York University Press
@@ -129,7 +137,8 @@

Stein, Kevin; The University of Michigan Press
@@ -150,7 +159,15 @@

Ruth Colker; New York University Press
@@ -171,7 +188,8 @@

Turrow, Joseph; Tsui, Lokman; University of Michigan Press
@@ -192,7 +210,15 @@

Ryuzo Sato; New York University Press
@@ -213,7 +239,15 @@

Bill Ong Hing; NEW YORK UNIVERSITY PRESS
@@ -234,7 +268,15 @@

Keith Beattie; New York University Press
@@ -255,7 +297,8 @@

Alexander, Buzz; The University of Michigan Press and The University of Michigan Library
@@ -276,7 +319,15 @@

Diane Helene Miller; New York University Press
@@ -297,7 +348,15 @@

Thomas Cushman; New York University Press
@@ -318,7 +377,15 @@

Ronald Suresh Roberts; New York University Press
@@ -339,7 +406,15 @@

Stanley A. Renshon; New York University Press
diff --git a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/04/38/0000043816.html b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/04/38/0000043816.html index 4789048..00c35f5 100644 --- a/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/04/38/0000043816.html +++ b/sitegen/testdata/golden/topic-pages/with-google-analytics/00/00/04/38/0000043816.html @@ -136,7 +136,8 @@

Jenna M. Loyd; University of Minnesota Press
diff --git a/sitegen/topicpages.go b/sitegen/topicpages.go index 4e56268..23a66eb 100644 --- a/sitegen/topicpages.go +++ b/sitegen/topicpages.go @@ -7,8 +7,8 @@ import ( "io/ioutil" "os" "path/filepath" - "strings" "strconv" + "strings" "github.com/nyulibraries/dlts-enm/cache" "github.com/nyulibraries/dlts-enm/db" @@ -100,6 +100,31 @@ func NewTemplate() (tpl *template.Template){ "lastIndex": func (s []ExternalRelation) int { return len(s) - 1; }, + "hrefForReaderButton": func (publisher string, isbn string) string { + var hrefForReaderButton string + + if (util.IsNYUPress(publisher)) { + standardIdentifier := util.GetOpenSquareStandardIdentifierForISBN(isbn) + if (standardIdentifier != "") { + hrefForReaderButton = fmt.Sprintf( + "https://opensquare.nyupress.org/books/%s/read/", + standardIdentifier, + ) + } else { + // The ISBN for this EPUB was not changed by https://jira.nyu.edu/browse/NYUP-753, + // so we can use it for the reader link. + hrefForReaderButton = fmt.Sprintf( + "https://opensquare.nyupress.org/books/%s/read/", + isbn, + ) + } + } else { + // No reader link, because we can't guarantee the stability of reader + // URLs for the other university presses. + } + + return hrefForReaderButton + }, } tpl = template.New("index.html").Funcs(funcs) tpl, err := tpl.ParseFiles( diff --git a/util/util.go b/util/util.go index a59a776..9e91416 100644 --- a/util/util.go +++ b/util/util.go @@ -2,16 +2,20 @@ package util import ( "fmt" - "strings" "os" "os/exec" - "path/filepath" "path" + "path/filepath" + "regexp" + "strings" "golang.org/x/text/collate" "golang.org/x/text/language" ) +var nyuPressPublisherNameRegex *regexp.Regexp +var standardIdentifierMap map[string]string + func CompareUsingEnglishCollation(a, b string) (int) { // Do not use collate.IgnoreCase or collate.Loose options. We need to be able // to distinguish between topic names like Culture and culture @@ -56,6 +60,98 @@ func GetNormalizedTopicNameForSorting(topicName string) string { return strings.TrimPrefix(topicName, "\"") } +// The ISBNs used as EPUB identifiers in the TCT are now almost all obsolete -- +// see https://jira.nyu.edu/browse/NYUP-753. +// Rather than change all the ISBNs in the Postgres database and the cache files, for +// now we just provide this mapping function. This map will never change because +// re-mapping only needs to be done for EPUBs that were published to Open Square +// before we standardized on library ISBN as the Open Square identifier. For simplicity, +// therefore, we just hardcode it in this function. +func GetOpenSquareStandardIdentifierForISBN(isbn string) string { + if (standardIdentifierMap == nil) { + // Map: https://raw.githubusercontent.com/NYULibraries/dlts-open-square-standard-identifiers/040b684b021ce33935123549d61ac828c2482ac4/map-of-nonstandard-isbns-to-standard-isbns.json + standardIdentifierMap = map[string]string{ + "9780814706404": "9780814707821", + "9780814706657": "9780814707517", + "9780814711774": "9780814725078", + "9780814712481": "9780814723418", + "9780814712771": "9780814786086", + "9780814712917": "9780814786123", + "9780814713013": "9780814723425", + "9780814713266": "9780814709108", + "9780814714218": "9780814790168", + "9780814714539": "9780814790144", + "9780814715123": "9780814723715", + "9780814715352": "9780814723708", + "9780814715383": "9780814772195", + "9780814715635": "9780814790175", + "9780814718124": "9780814744147", + "9780814718766": "9780814720981", + "9780814718803": "9780814721100", + "9780814726815": "9780814728901", + "9780814726846": "9780814728048", + "9780814730911": "9780814733486", + "9780814731437": "9780814738573", + "9780814731956": "9780814733158", + "9780814735053": "9780814773130", + "9780814735084": "9780814744758", + "9780814735190": "9780814744772", + "9780814735206": "9780814744819", + "9780814735237": "9780814744840", + "9780814735282": "9780814744871", + "9780814735305": "9780814773215", + "9780814735336": "9780814744789", + "9780814735923": "9780814744765", + "9780814742297": "9780814743980", + "9780814742303": "9780814743959", + "9780814742358": "9780814743973", + "9780814746622": "9780814749234", + "9780814746677": "9780814763582", + "9780814746929": "9780814763551", + "9780814747148": "9780814763520", + "9780814750957": "9781479898626", + "9780814751008": "9780814752685", + "9780814751213": "9780814752715", + "9780814755112": "9780814763223", + "9780814755297": "9780814763148", + "9780814755471": "9780814763179", + "9780814755969": "9780814759714", + "9780814757970": "9780814759271", + "9780814761908": "9780814762622", + "9780814766569": "9780814767917", + "9780814774410": "9780814769447", + "9780814774434": "9780814769485", + "9780814774458": "9780814771518", + "9780814774632": "9780814769423", + "9780814774694": "9780814776636", + "9780814774755": "9780814771501", + "9780814774816": "9780814769461", + "9780814774823": "9780814769409", + "9780814779163": "9780814788745", + "9780814779170": "9780814741498", + "9780814779965": "9780814771037", + "9780814780015": "9780814788806", + "9780814780213": "9780814788707", + "9780814780978": "9780814739617", + "9780814782194": "9780814784488", + "9780814787922": "9780814788462", + "9780814793114": "9780814784600", + "9780814793398": "9780814784891", + "9781479804948": "9781479882281", + "9781479820375": "9781479811908", + "9781479824243": "9781479863570", + "9781479835737": "9781479891672", + "9781479849857": "9781479888788", + "9781479852758": "9781479888900", + "9781479868148": "9781479868148", + "9781479892464": "9781479807185", + "9781479899982": "9781479829712", + } + } + + return standardIdentifierMap[isbn] +} + func GetRelativeFilepathInLargeDirectoryTree(prefix string, ID int, extension string) string { zeroPaddedString := fmt.Sprintf("%010d", ID) filename := prefix + zeroPaddedString + extension @@ -77,3 +173,15 @@ func GetTopicIDFromTopicPagePath(topicPagePath string) string { return strings.TrimLeft(basename, "0") } + +func IsNYUPress(publisherName string) bool { + if (nyuPressPublisherNameRegex == nil) { + nyuPressPublisherNameRegex = regexp.MustCompile(`(?i).*new york university.*`) + } + + return (nyuPressPublisherNameRegex.MatchString(publisherName)) || + // Teaching What You're Not: Identity Politics in Higher Education + // by Katherine Mayberry had this incorrect value in its OPF + // file when it was ingested into the TCT. + (publisherName == "York University Press") +}