Skip to content

Commit 7c9d559

Browse files
committed
clean up abstracts in Muse
1 parent b6432f4 commit 7c9d559

File tree

1 file changed

+52
-7
lines changed

1 file changed

+52
-7
lines changed

Project MUSE.js

+52-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2014-02-27 23:52:00"
12+
"lastUpdated": "2014-08-27 02:47:50"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -98,9 +98,10 @@ function scrapeOne(doc) {
9898
var getPDF = doc.evaluate('//a[text() = "PDF Version" or text() = "[Access article in PDF]" or text() = "Download PDF"]', doc,
9999
null, XPathResult.ANY_TYPE, null).iterateNext();
100100
var DOI = doc.evaluate('//meta[@name="citation_doi"]/@content', doc,
101-
null, XPathResult.ANY_TYPE, null).iterateNext();
102-
var abstract = doc.evaluate('//div[@class="abstract"]', doc,
103101
null, XPathResult.ANY_TYPE, null).iterateNext();
102+
//test for two different abstract formats
103+
var abstract = ZU.xpathText(doc, '//abstract/p[1]');
104+
if (!abstract) abstract = ZU.xpathText(doc, '//div[@class="abstract"][1]/p[1]');
104105
var authorNodes = ZU.xpath(doc, '//meta[@name="citation_author"]/@content');
105106

106107
if(url.indexOf('?') != -1) {
@@ -163,7 +164,7 @@ function scrapeOne(doc) {
163164
item.DOI = DOI.textContent.replace(/^DOI: /,"");
164165
}
165166
if(abstract) {
166-
item.abstractNote = abstract.textContent.replace(/\n/g, " ").replace(/\s\s+/g, " ");
167+
item.abstractNote = abstract.replace(/\n/g, " ").replace(/\s\s+/g, " ");
167168
}
168169
item.complete();
169170
});
@@ -202,12 +203,14 @@ var testCases = [
202203
"volume": "191",
203204
"issue": "1",
204205
"pages": "121-164",
206+
"publisher": "Oxford University Press",
205207
"ISSN": "1477-464X",
206208
"url": "http://muse.jhu.edu/journals/past_and_present/v191/191.1higonnet.html",
207209
"date": "2006",
208210
"extra": "<p>Number 191, May 2006</p>",
209-
"abstractNote": "In lieu of an abstract, here is a brief excerpt of the content: Past & Present 191.1 (2006) 121-164 Patrice Higonnet Harvard University Tocqueville in the 1850s wrote of France in the 1780s that never had tolerance been more accepted, authority been more mild, or benevolence been so widely practised. Nonetheless, he went on, 'from the bosom of such mild mores would spring the most inhuman of revolutions'. And even for those of us who deeply admire the French Revolution's message of civic equality, the Terror of the Year II (1793–4) seems not just ominous and horrendous, but also out of place. Auschwitz, Dresden and Hiroshima — after the Great War of 1914–18 and the Great Depression of the 1930s: we can see why these wartime tragedies happened, given the awful events that preceded them. But what of the Terror after the Enlightenment — after Voltaire, Boucher, and Madame de Pompadour? Isser Woloch has rightly described the 'sequence' from 1789 to 1793, from liberalism to terror, as an eternally fascinating 'enigma'. Why the French Revolution occurred is something of a mystery. And why it failed so dramatically is also deeply perplexing. Historians have pored over the cause and nature of the Terror of the Year II ever since it occurred. And yet the many valuable (though often conflicting) explanations which have been offered to account for it have somehow fallen short. Many of them are too narrow or too vague. They are seldom wrong in any simple sense, but they need to be reconceived. I propose that there is an extant and even ancient frame, the 'young Marx explanation', which, if rejuvenated by reference to the theory of collective trauma, can enable us to renew these accounts, first by identifying new ground for research, but principally by making it possible to integrate the seemingly irreconcilable points of view about why the unanimity of 1789 gave way by 1792–4 to a divisive and self-destructive intolerance. I A first step is to review explanations, past and present, that range from culture and ideology (Rousseauian Jacobinism was bound to end as it did) to circumstance (where the circumstances might be social, political or institutional). For many reasons, it is important to have these various answers in mind — however biased or incomplete they may have been: first, because explanations of Revolutionary terrorism are suggestive in their own right since they indirectly chronicle two centuries of historiographic effort; second, because their very number speaks to the importance of the Terror as a historical event, and of course any understanding of the French Revolution must subsume an understanding of the Terror; and third, because the variety and incompatibility of extant accounts underscore the interest of any explanation that aims to reconcile opposing points of view. As regards larger ideological explanations, a good place to begin is with François Furet, since his is the dominant mode of explanation today. This brilliant historian was unambiguous: for him, the 'revolutionary government' 'was written in the logic of Montagnard policy'. The Terror, taken as government policy by the Convention, does not originate in September 1793 at all, but in the past (both recent and distant): The circumstances surrounding this celebrated vote indicate that before becoming a set of repressive institutions used by the Republic to liquidate its adversaries and establish its domination on a basis of fear, the Terror was a demand based on political conviction or beliefs, a characteristic feature of the mentality of revolutionary activism. From this perspective, the Terror is the illegitimate child of the Enlightenment — begotten, perhaps, on the Enlightenment by Jean-Jacques Rousseau. The year 1793 is embedded in 1789. Furet's first and most talented disciple, Keith Baker, gives us a new (and, it must be said, extreme) version of this same ideological causal perspective. What, he asks, was the implication of the path chosen by the National Assembly in September 1789 over the issue of the king's suspensive veto? At stake here, he argues in a historical version of 'path determinacy', was the setting aside of a discourse of the social, grounded on the notion of the differential distribution of reason, functions, and interests in modern civil society, in favor of a discourse of the political...",
210-
"libraryCatalog": "Project MUSE"
211+
"abstractNote": "Past & Present 191.1 (2006) 121-164",
212+
"libraryCatalog": "Project MUSE",
213+
"accessDate": "CURRENT_TIMESTAMP"
211214
}
212215
]
213216
},
@@ -278,16 +281,58 @@ var testCases = [
278281
"volume": "54",
279282
"issue": "4",
280283
"pages": "735-745",
284+
"publisher": "The Johns Hopkins University Press",
281285
"ISSN": "1097-3729",
282286
"url": "http://muse.jhu.edu/journals/technology_and_culture/v054/54.4.prescott.html",
283287
"date": "2013",
284288
"extra": "<p>Volume 54, Number 4, October 2013</p>",
285289
"DOI": "10.1353/tech.2013.0137",
286-
"abstractNote": "Abstract Abstract:This article uses coverage of the fiftieth anniversary of the Pill as an example of what Richard Hirsh describes as the “real world” role of historians of technology. It explores how the presentation of historical topics on the world wide web has complicated how the history of technology is conveyed to the public. The article shows that that the Pill is especially suited to demonstrating the public role of historians of technology because, as the most popular form of reversible birth control, it has touched the lives of millions of Americans. Thus, an exploration of how the Pill’s fiftieth anniversary was covered illustrates how historians can use their expertise to provide a nuanced interpretation of a controversial topic in the history of technology.",
290+
"abstractNote": "This article uses coverage of the fiftieth anniversary of the Pill as an example of what Richard Hirsh describes as the “real world” role of historians of technology. It explores how the presentation of historical topics on the world wide web has complicated how the history of technology is conveyed to the public. The article shows that that the Pill is especially suited to demonstrating the public role of historians of technology because, as the most popular form of reversible birth control, it has touched the lives of millions of Americans. Thus, an exploration of how the Pill’s fiftieth anniversary was covered illustrates how historians can use their expertise to provide a nuanced interpretation of a controversial topic in the history of technology.",
287291
"libraryCatalog": "Project MUSE",
292+
"accessDate": "CURRENT_TIMESTAMP",
288293
"shortTitle": "The Pill at Fifty"
289294
}
290295
]
296+
},
297+
{
298+
"type": "web",
299+
"url": "http://muse.jhu.edu.turing.library.northwestern.edu/journals/latin_american_research_review/v049/49.2.manzetti.html",
300+
"items": [
301+
{
302+
"itemType": "journalArticle",
303+
"creators": [
304+
{
305+
"firstName": "Luigi",
306+
"lastName": "Manzetti",
307+
"creatorType": "author"
308+
}
309+
],
310+
"tags": [],
311+
"seeAlso": [],
312+
"attachments": [
313+
{
314+
"title": "Project MUSE Snapshot"
315+
},
316+
{
317+
"title": "Project MUSE Full Text PDF",
318+
"mimeType": "application/pdf"
319+
}
320+
],
321+
"title": "Accountability and Corruption in Argentina During the Kirchners’ Era",
322+
"publicationTitle": "Latin American Research Review",
323+
"volume": "49",
324+
"issue": "2",
325+
"pages": "173-195",
326+
"publisher": "Latin American Studies Association",
327+
"ISSN": "1542-4278",
328+
"url": "http://muse.jhu.edu.turing.library.northwestern.edu/journals/latin_american_research_review/v049/49.2.manzetti.html",
329+
"date": "2014",
330+
"extra": "<p>Volume 49, Number 2, 2014</p>",
331+
"abstractNote": "This article highlights an important paradox: in Argentina between 2003 and 2013 the center-left Peronist government’s approach to governance mirrors that of the center-right Peronist administration of the 1990s. While the latter centralized authority to pursue neoliberal reforms, the former have centralized authority in the name of expanding government intervention in the economy. In both cases, corruption has tended to go unchecked due to insufficient government accountability. Therefore, although economic policies and political rhetoric have changed dramatically, government corruption remains a constant of the Argentine political system due to the executive branch’s ability to emasculate constitutional checks and balances.",
332+
"libraryCatalog": "Project MUSE",
333+
"accessDate": "CURRENT_TIMESTAMP"
334+
}
335+
]
291336
}
292337
]
293338
/** END TEST CASES **/

0 commit comments

Comments
 (0)