Skip to content

Commit

Permalink
Primo: Grab callNumber in <bestlocation>, remove failing tests (#3360)
Browse files Browse the repository at this point in the history
  • Loading branch information
smachefert authored Sep 26, 2024
1 parent ce30da9 commit 22fa76e
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 101 deletions.
98 changes: 1 addition & 97 deletions Primo 2018.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2022-05-11 21:32:37"
"lastUpdated": "2024-09-18 09:43:45"
}

/*
Expand Down Expand Up @@ -110,102 +110,6 @@ function getPnxElems(doc) {

/** BEGIN TEST CASES **/
var testCases = [
{
"type": "web",
"url": "http://virtuose.uqam.ca/primo-explore/fulldisplay?vid=UQAM&docid=UQAM_BIB000969205&context=L",
"defer": true,
"items": [
{
"itemType": "book",
"title": "War",
"creators": [
{
"lastName": "Baynes",
"firstName": "Ken",
"creatorType": "author"
},
{
"firstName": "Ken",
"lastName": "Baynes",
"creatorType": "author"
},
{
"lastName": "Welsh Arts Council",
"creatorType": "contributor",
"fieldMode": 1
},
{
"lastName": "Glynn Vivian Art Gallery",
"creatorType": "contributor",
"fieldMode": 1
}
],
"date": "1970",
"callNumber": "NX650G8B38",
"language": "eng",
"libraryCatalog": "virtuose.uqam.ca",
"place": "Boston",
"publisher": "Book and Art Chop",
"series": "Art and society 1",
"attachments": [],
"tags": [
{
"tag": "ART; GUERRE; WAR"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "http://bcujas-catalogue.univ-paris1.fr/primo-explore/fulldisplay?vid=CUJAS_V1&docid=33CUJAS_ALEPH000070200&context=L&search_scope=LSCOP_ALL",
"defer": true,
"items": [
{
"itemType": "book",
"title": "Test pattern for living",
"creators": [
{
"firstName": "Nicholas",
"lastName": "Johnson",
"creatorType": "author"
}
],
"date": "1972",
"callNumber": "203.206",
"language": "eng",
"libraryCatalog": "bcujas-catalogue.univ-paris1.fr",
"numPages": "xx+154",
"place": "Toronto New York",
"publisher": "Bantam Books",
"attachments": [],
"tags": [
{
"tag": "Mass media"
},
{
"tag": "Social aspects"
},
{
"tag": "United States"
},
{
"tag": "United States"
},
{
"tag": "Social conditions"
},
{
"tag": "1960-"
}
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://explore.lib.uliege.be/discovery/collectionDiscovery?vid=32ULG_INST:ULIEGE&collectionId=81129164700002321&lang=fr",
Expand Down
84 changes: 80 additions & 4 deletions Primo Normalized XML.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22fa76e

Please sign in to comment.