Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mara-spiess committed Oct 18, 2024
1 parent b09c5a2 commit efcb503
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions ubtue_Open Journal Systems Standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-08-19 13:54:03"
"lastUpdated": "2024-10-18 14:55:29"
}

/*
Expand Down Expand Up @@ -640,6 +640,12 @@ function invokeEMTranslator(doc) {
i.volume = i.issue;
i.issue = "";
}
if (i.ISSN == "2413-3027") {
let uriElement = doc.querySelector('meta[name="DC.Identifier.URI"]');
if (uriElement) {
i.url = uriElement.getAttribute('content');
}
}
if (i.tags[1] == undefined && ZU.xpath(doc, '//section[@class="item keywords"]')[0]
&& ZU.xpath(doc, '//section[@class="item keywords"]')[0]["textContent"]) {
let tagsstring = ZU.xpath(doc, '//section[@class="item keywords"]')[0]["textContent"].replace(/Keywords?./g,'');
Expand All @@ -657,7 +663,7 @@ function invokeEMTranslator(doc) {
if (authors) i.creators = authors.map(function(x) { return ZU.cleanAuthor(x.textContent, 'author'); })
if (i.creators) {
i.creators = i.creators.filter(creator =>
creator.firstName !== "Author not" && creator.lastName !== "applicable"
creator.firstName !== "Author not" && creator.lastName !== "applicable"
);
}
i.complete();
Expand Down Expand Up @@ -698,18 +704,6 @@ function doWeb(doc, url) {
invokeEMTranslator(doc, url);
}













/** BEGIN TEST CASES **/
var testCases = [
{
Expand Down

0 comments on commit efcb503

Please sign in to comment.