Skip to content
Permalink
Browse files

Small update for Atypon Journals.js (zotero#1629)

  • Loading branch information...
zuphilip committed Apr 21, 2018
1 parent 3ddfa9b commit 1a8d262f8226034b4d31a67db049909e8440b841
Showing with 12 additions and 12 deletions.
  1. +12 −12 Atypon Journals.js
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-09-16 17:58:22"
"lastUpdated": "2018-04-18 18:19:06"
}

/*
@@ -44,7 +44,7 @@ function detectWeb(doc, url) {

var citLinks = ZU.xpath(doc, '//a[contains(@href, "/action/showCitFormats")]');
if (citLinks.length > 0) {
if (url.indexOf('/doi/book/') != -1) {
if (url.includes('/doi/book/')) {
return 'book';
}
else if (url.search(/\.ch\d+$/)!=-1){
@@ -132,7 +132,7 @@ function buildPdfUrl(url, root) {
}
}

Z.debug('PDF link not found.')
Z.debug('PDF link not found.');
if (root.nodeType != 9 /*DOCUMENT_NODE*/) {
Z.debug('Available links:');
var links = root.getElementsByTagName('a');
@@ -216,20 +216,20 @@ function scrape(doc, url, extras) {
item.creators[i].lastName = fixCase(item.creators[i].lastName, true);
if (item.creators[i].firstName) {
item.creators[i].firstName = fixCase(item.creators[i].firstName, true);
} else if (url.indexOf('www.emeraldinsight.com')>-1) {
} else if (url.includes('www.emeraldinsight.com')) {
//for Emerald, improve author's lastname and firstname
item.creators[i] = ZU.cleanAuthor(item.creators[i].lastName, item.creators[i].creatorType);
}
}

item.url = url;
//for Emerald, get rid of the "null" that they add at the end of every title:
if (url.indexOf("www.emeraldinsight.com")!=-1){
item.title = item.title.replace(/null$/, "")
if (url.includes("www.emeraldinsight.com")){
item.title = item.title.replace(/null$/, "");
}
item.notes = [];
for (var i in tags){
item.tags.push(tags[i].textContent)
item.tags.push(tags[i].textContent);
}

if (abstract) {
@@ -260,7 +260,7 @@ function scrape(doc, url, extras) {
});
translator.translate();
});
})
});
}

/** BEGIN TEST CASES **/
@@ -428,7 +428,7 @@ var testCases = [
},
{
"type": "web",
"url": "http://online.liebertpub.com/doi/abs/10.1089/cmb.2009.0238",
"url": "https://www.liebertpub.com/doi/abs/10.1089/cmb.2009.0238",
"items": [
{
"itemType": "journalArticle",
@@ -455,11 +455,11 @@ var testCases = [
"abstractNote": "An accurate genome sequence of a desired species is now a pre-requisite for genome research. An important step in obtaining a high-quality genome sequence is to correctly assemble short reads into longer sequences accurately representing contiguous genomic regions. Current sequencing technologies continue to offer increases in throughput, and corresponding reductions in cost and time. Unfortunately, the benefit of obtaining a large number of reads is complicated by sequencing errors, with different biases being observed with each platform. Although software are available to assemble reads for each individual system, no procedure has been proposed for high-quality simultaneous assembly based on reads from a mix of different technologies. In this paper, we describe a parallel short-read assembler, called Ray, which has been developed to assemble reads obtained from a combination of sequencing platforms. We compared its performance to other assemblers on simulated and real datasets. We used a combination of Roche/454 and Illumina reads to assemble three different genomes. We showed that mixing sequencing technologies systematically reduces the number of contigs and the number of errors. Because of its open nature, this new tool will hopefully serve as a basis to develop an assembler that can be of universal utilization (availability: http://deNovoAssembler.sf.Net/). For online Supplementary Material, see www.liebertonline.com.",
"issue": "11",
"journalAbbreviation": "Journal of Computational Biology",
"libraryCatalog": "online.liebertpub.com (Atypon)",
"libraryCatalog": "liebertpub.com (Atypon)",
"pages": "1519-1533",
"publicationTitle": "Journal of Computational Biology",
"shortTitle": "Ray",
"url": "http://online.liebertpub.com/doi/abs/10.1089/cmb.2009.0238",
"url": "https://www.liebertpub.com/doi/abs/10.1089/cmb.2009.0238",
"volume": "17",
"attachments": [
{
@@ -753,4 +753,4 @@ var testCases = [
]
}
]
/** END TEST CASES **/
/** END TEST CASES **/

0 comments on commit 1a8d262

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