var keywordsString =ZU.xpathText(doc, '//meta[@name="keywords"]/@content');
@@ -170,6 +171,7 @@ var testCases = [
"date":"2011-09-04",
"ISSN":"0044-2070",
"abstractNote":"Die von Gadhafi-Anhängern geführte Stadt ist von Rebellentruppen eingekreist. Gespräche über eine friedliche Übergabe sind gescheitert, ein Angriff steht offenbar bevor.",
"language":"de-DE",
"libraryCatalog":"Die Zeit",
"place":"Hamburg",
"publicationTitle":"Die Zeit",
@@ -209,6 +211,7 @@ var testCases = [
"date":"2011-09-01",
"ISSN":"0044-2070",
"abstractNote":"Tschechow und Robben, Drama im Flutlicht und Wahrhaftigkeit bei der Arbeit. Der Fußballprofi und Autor Philipp Lahm im Gespräch mit dem Schriftsteller und Fußballer Moritz Rinke",
"language":"de-DE",
"libraryCatalog":"Die Zeit",
"place":"Hamburg",
"publicationTitle":"Die Zeit",
@@ -275,6 +278,7 @@ var testCases = [
"date":"2009-03-05",
"ISSN":"0044-2070",
"abstractNote":"Ein Iraner in Wien. Der Fotograf Daniel Shaked, 31, gibt Österreichs einziges Hip-Hop-Magazin heraus",
var issue =ZU.xpathText(doc, '//span[@class="article-header__metadata-date"]/a');
if (!item.issue&& issue) {
item.issue=issue.replace('Issue', '');
}
item.ISSN="0015-7120";
item.language="en-US";
item.complete();
});
translator.getTranslatorObject(function(trans) {
trans.itemType="magazineArticle";
trans.doWeb(doc, url);
});
translator.getTranslatorObject(function(trans) {
trans.itemType="magazineArticle";
trans.doWeb(doc, url);
});
}
/** BEGIN TEST CASES **/
var testCases = [
@@ -125,6 +126,7 @@ var testCases = [
"ISSN":"0015-7120",
"abstractNote":"A fascinating and well-translated account of Argentina's misadventures over the last century by one of that country's brightest historians. Absorbing vast amounts of British capital and tens of thousands of European immigrants, Argentina began the century with great promise. In 1914, with half of its population still foreign, a dynamic society had emerged that was both open and mobile.",
"abstractNote":"WASHINGTON, March 4. -- The Money Trust inquiry and consideration of the proposed Aldrich monetary legislation will probably be handled side by side by the House Banking and Currency Committee. The present tentative plan is to divide the committee into two parts, one of which, acting as a sub-committee, will investigate as far as it can those allegations of the Henry Money Trust resolution which fall within the jurisdiction of the Banking and Currency Committee.",
var authors =article.getElementsByClassName('byline');
if (authors.length) {
@@ -90,6 +91,7 @@ function scrape(doc, url) {
item.publicationTitle="Time";
item.url= url;
item.ISSN="0040-781X";
item.language="en-US";
var authors =ZU.xpathText(doc, '//meta[@name="byline"]/@content')
||ZU.xpathText(doc, '//span[@class="author vcard"]/a', null, ' and ')
@@ -233,7 +235,7 @@ var testCases = [
"date":"Thursday, Nov. 17, 2011",
"ISSN":"0040-781X",
"abstractNote":"Battling debilitating congressional mandates and competition online, the USPS is closing thousands of post offices and struggling to find a place in the modern world. But there are people behind the scenes trying to save this American institution",
"abstractNote":"The month of March isn't really the heart of the tornado season but they have come fast and with awesome destruction.",
"accessDate":"CURRENT_TIMESTAMP",
"language":"en-US",
"libraryCatalog":"content.time.com",
"publicationTitle":"Time",
"shortTitle":"On Scene in Indiana and Kentucky",
@@ -310,7 +312,7 @@ var testCases = [
],
"ISSN":"0040-781X",
"abstractNote":"Obama rejected any notion that his administration has not been in Israel's corner. “Over the last three years, as President of the United States, I have kept my commitments to the state of Israel.\" The President then ticked off the number of ways he has supported Israel in the last year.",
"abstractNote":"Despite signs that some housing markets are improving, the overall trend is for home prices (and values) to keep dropping—and dropping. As values shrink, more and more homeowners find themselves underwater, the unfortunate scenario in which one owes more on the mortgage than the home is worth.",
0 comments on commit
427690f