Skip to content
Permalink
Browse files

Fixes and Updates - J (#1174)

* Update tests in Japan Times Online.js
* Update tests in Journal of Electronic Publishing.js
* Update tests in Journal of Extension.js
* WIP: Change domain of Jahrbuch.js; TODO encoding
* Update translator framework to 59 twice
* [JSTOR]: Fix detection of book and toc (multiples)
* Update framework and tests in Juricaf.js
* Update Juris.js
  • Loading branch information...
zuphilip authored and adam3smith committed Nov 7, 2016
1 parent b6db9f0 commit 7a22176e4f1aaff84965d0b29f8ad5dbc47fdda6
Showing with 200 additions and 201 deletions.
  1. +3 −3 JSTOR.js
  2. +5 −5 Jahrbuch.js
  3. +27 −29 Japan Times Online.js
  4. +14 −13 Journal of Electronic Publishing.js
  5. +10 −10 Journal of Extension.js
  6. +14 −16 Juricaf.js
  7. +127 −125 Juris.js
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2016-05-13 22:51:52"
"lastUpdated": "2016-11-01 21:26:32"
}

function detectWeb(doc, url) {
@@ -25,7 +25,7 @@ function detectWeb(doc, url) {
// If this is a view page, find the link to the citation
var favLink = getFavLink(doc);
if ( (favLink && getJID(favLink.href)) || getJID(url) ) {
if (ZU.xpathText(doc, '//div[@class="book-title"]')){
if (ZU.xpathText(doc, '//li[@class="book_info_button"]')) {
return "book"
}
else {
@@ -38,7 +38,7 @@ function getSearchResults(doc, checkOnly) {
// We have multiple results
var resultsBlock = doc.getElementsByClassName('list-searchResults')[0];
if (!resultsBlock) resultsBlock = doc.getElementById('results');
if (!resultsBlock) resultsBlock = doc.getElementsByClassName('no-bullet mll');
if (!resultsBlock) resultsBlock = doc.getElementsByClassName('toc-view')[0];
if (!resultsBlock) return false;
var titles = ZU.xpath(resultsBlock, '//li//a[@class="title"]|\
//li//div[(@class="title" or @class="rw") and not(.//a[@class="title"]) and .//a[contains(@href, "10.2307") or contains(@href, "/stable/")]]');
@@ -2,14 +2,14 @@
"translatorID": "e5e34825-1314-43bd-a9fe-f38f6ab48403",
"label": "Jahrbuch",
"creator": "Aurimas Vinckevicius",
"target": "https?://jfm.sub.uni-goettingen.de/",
"target": "https?://www\\.emis\\.de/cgi-bin/jfmen/MATH/JFM/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gv",
"lastUpdated": "2013-04-15 18:04:37"
"lastUpdated": "2016-11-01 16:17:13"
}

function detectWeb(doc, url) {
@@ -106,7 +106,7 @@ function scrape(ids) {
var testCases = [
{
"type": "web",
"url": "http://jfm.sub.uni-goettingen.de/cgi-bin/jfmen/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0003.01&format=complete",
"url": "http://www.emis.de/cgi-bin/jfmen/MATH/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0003.01&format=complete",
"items": [
{
"itemType": "journalArticle",
@@ -144,7 +144,7 @@ var testCases = [
},
{
"type": "web",
"url": "http://jfm.sub.uni-goettingen.de/cgi-bin/jfmen/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0052.03&format=complete",
"url": "http://www.emis.de/cgi-bin/jfmen/MATH/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0052.03&format=complete",
"items": [
{
"itemType": "journalArticle",
@@ -177,7 +177,7 @@ var testCases = [
},
{
"type": "web",
"url": "http://jfm.sub.uni-goettingen.de/cgi-bin/jfmen/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0078.01&format=complete",
"url": "http://www.emis.de/cgi-bin/jfmen/MATH/JFM/en/quick.html?first=1&maxdocs=20&type=html&an=JFM%2068.0078.01&format=complete",
"items": [
{
"itemType": "journalArticle",

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -105,31 +105,32 @@ var testCases = [
"items": [
{
"itemType": "journalArticle",
"title": "The Upright Script: Words in Space and on the Page",
"creators": [
{
"firstName": "Amaranth",
"lastName": "Borsuk",
"creatorType": "author"
}
],
"notes": [],
"tags": [],
"seeAlso": [],
"date": "2011-10-03",
"DOI": "10.3998/3336451.0014.212",
"ISSN": "1080-2711",
"abstractNote": "This essay provides a critical analysis of the way pervasive data culture impacts the form of poetry and conceptions of authorship for those print and digital poets who let it enter their work. As depicted in popular media, the data cloud is a confusing and disordered space in which we lose all sense of privacy. However, a number of contemporary poets seek to get lost in this ether, reveling in the network of language that surrounds us. They do so in part because the very technologies that make such data visible in turn make the writer invisible, an authorial position more comfortable for poets of the networked age. Examined alongside the recent surge in interest in infosthetics, conceptual and digital poetry can be seen as embracing a “data poetics” attuned to the materiality of language.",
"issue": "2",
"libraryCatalog": "quod.lib.umich.edu",
"publicationTitle": "The Journal of Electronic Publishing",
"shortTitle": "The Upright Script",
"url": "http://quod.lib.umich.edu/j/jep/3336451.0014.212?rgn=main;view=fulltext;q1=zotero",
"volume": "14",
"attachments": [
{
"title": "Snapshot"
}
],
"ISSN": "1080-2711",
"url": "http://quod.lib.umich.edu/j/jep/3336451.0014.212?rgn=main;view=fulltext;q1=zotero",
"libraryCatalog": "quod.lib.umich.edu",
"issue": "2",
"abstractNote": "This essay provides a critical analysis of the way pervasive data culture impacts the form of poetry and conceptions of authorship for those print and digital poets who let it enter their work. As depicted in popular media, the data cloud is a confusing and disordered space in which we lose all sense of privacy. However, a number of contemporary poets seek to get lost in this ether, reveling in the network of language that surrounds us. They do so in part because the very technologies that make such data visible in turn make the writer invisible, an authorial position more comfortable for poets of the networked age. Examined alongside the recent surge in interest in infosthetics, conceptual and digital poetry can be seen as embracing a “data poetics” attuned to the materiality of language.",
"shortTitle": "The Upright Script",
"title": "The Upright Script: Words in Space and on the Page",
"date": "Fall 2011",
"volume": "14",
"publicationTitle": "The Journal of Electronic Publishing"
"tags": [],
"notes": [],
"seeAlso": []
}
]
}

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 7a22176

Please sign in to comment.
You can’t perform that action at this time.