Skip to content
Permalink
Browse files

Make Archives of ZA chrome compatible & add callback for multiples;

Small fix for NYRB;
Test updates: DPLA, Digital Medievalist, VTLS, Primo, MARCXML
  • Loading branch information...
adam3smith committed Mar 13, 2014
1 parent b36fcf4 commit d6a4bdfde28fabfb8ad8f9967f9d538be9b40da8
Showing with 62 additions and 95 deletions.
  1. +1 −2 DPLA.js
  2. +9 −11 Digital Medievalist.js
  3. +23 −28 Library Catalog (VTLS).js
  4. +7 −5 MARCXML.js
  5. +17 −15 National Archives of South Africa.js
  6. +2 −31 Primo.js
  7. +3 −3 The New York Review of Books.js
@@ -294,12 +294,11 @@ var testCases = [
"date": "1982-07-28",
"abstractNote": "In this interview, Mary Moultrie (born 1943) talks about her involvement in the 113-day Charleston Hospital Strike at the Medical University of South Carolina (MUSC) in March 1969. After graduating from Burke High School in 1960, Moultrie went to Goldwater Memorial Hospital, New York to become a Licensed Practical Nurse (LPN). In 1967, she returned to Charleston and was hired at MUSC only as a nurses assistant since her LPN was not accepted. She speaks in detail about the working conditions and employee relationships at MUSC prior to and after the strike. Ms. Moultrie explains the various types of nursing titles and the unequal pay between black and white nurses. She retells in detail how the racial tensions that led up to the strike at MUSC increased due to the harassing treatment toward black nurses. In the interview, Moultrie details the first informal meetings and get-togethers that were held, until the black nurses joined forces with the 1199 union and Bill Saunders. Moultrie elaborates, in particular, on the lack of support from the white community under the Gaillard administration, as well as the hesitation of the black community to join them in their efforts for equal pay and treatment. She then refers to support from the Southern Christian Leadership Conference (SCLC), Septima Poinsette Clark, and various leaders such as Andrew Young and Ralph Abernathy. Moultrie mentions the difficult and hostile negotiation process with MUSCs president Dr. William McCord and the memorandum of agreement that was ultimately reached. The interview closes by the interviewer inquiring about the current work force diversity at MUSC and Moultries feelings regarding the strikes accomplishments.",
"place": "Charleston",
"medium": "2 Cassettes, Audio",
"rights": "Digital resource copyright 2010, Avery Research Center at the College of Charleston Libraries. All rights reserved. For more information contact the Avery Research Center, College of Charleston, Charleston, SC 29424.",
"url": "http://lowcountrydigital.library.cofc.edu/u?/AOH,203",
"archive": "Avery Research Center at the College of Charleston",
"libraryCatalog": "DPLA",
"accessDate": "CURRENT_TIMESTAMP"
"audioRecordingFormat": "Audio"
}
]
},
@@ -111,17 +111,17 @@ var testCases = [
],
"notes": [],
"tags": [
"Image Acquisition",
"Processing",
"Manuscripts",
"Codicology",
"Palaeography",
"Multi-Spectral Imaging",
"Damaged Manuscripts",
"Digital Palaeography",
"Foreground-Background Separation",
"Graphemic Character Segmentation",
"Damaged Manuscripts",
"Image Acquisition",
"Manuscripts",
"Multi-Spectral Imaging",
"Palaeography",
"Palimpsests",
"Digital Palaeography."
"Processing"
],
"seeAlso": [],
"attachments": [
@@ -134,11 +134,9 @@ var testCases = [
"ISSN": "1715-0736",
"url": "http://digitalmedievalist.org/journal/6/gau/",
"title": "Image Acquisition & Processing Routines for Damaged Manuscripts",
"abstractNote": "[ Skip to Navigation | Return to Colophon ] Abstract This paper presents an overview of data acquisition and processing procedures of an interdisciplinary project of philologists and image processing experts aiming at the decipherment and reconstruction of damaged manuscripts. The digital raw image data was acquired via multi-spectral imaging. As a preparatory step we developed a method of foreground-background separation (binarisation) especially designed for multi-spectral images of degraded documents. On the basis of the binarised images further applications were developed: an automatic character decomposition and primitive extraction dissects the scriptural elements into analysable pieces that are necessary for palaeographic and graphemic analyses, writing tool recognition, text restoration, and optical character recognition. The results of the relevant procedures can be stored and interrogated in a database application. Furthermore, a semi-automatic page layout analysis provides codicological information on latent page contents (script, ruling, decorations).",
"year": "2010",
"abstractNote": "This paper presents an overview of data acquisition and processing procedures of an interdisciplinary project of philologists and image processing experts aiming at the decipherment and reconstruction of damaged manuscripts. The digital raw image data was acquired via multi-spectral imaging. As a preparatory step we developed a method of foreground-background separation (binarisation) especially designed for multi-spectral images of degraded documents. On the basis of the binarised images further applications were developed: an automatic character decomposition and primitive extraction dissects the scriptural elements into analysable pieces that are necessary for palaeographic and graphemic analyses, writing tool recognition, text restoration, and optical character recognition. The results of the relevant procedures can be stored and interrogated in a database application. Furthermore, a semi-automatic page layout analysis provides codicological information on latent page contents (script, ruling, decorations).",
"volume": "6",
"libraryCatalog": "Digital Medievalist",
"accessDate": "CURRENT_TIMESTAMP"
"libraryCatalog": "Digital Medievalist"
}
]
},
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-03-01 11:15:01"
"lastUpdated": "2014-03-12 21:55:58"
}

function detectWeb(doc, url) {
@@ -124,48 +124,43 @@ function scrape(doc, newUris) {
var testCases = [
{
"type": "web",
"url": "http://webvirtua.ums.edu.my/cgi-bin/gw/chameleon?sessionid=2014030201591329116&skin=ums&lng=en&inst=consortium&host=10.50.9.80%2b1111%2bDEFAULT&patronhost=10.50.9.80%201111%20DEFAULT&search=KEYWORD&searchid=H1&function=COPVOLSCR&sourcescreen=INITREQ&pos=1&totalitems=1&itempos=1&rootsearch=KEYWORD",
"url": "http://webvirtua.ums.edu.my/cgi-bin/gw/chameleon?sessionid=2014030201591329116&skin=ums&lng=en&inst=consortium&host=10.50.9.80%2b1111%2bDEFAULT&patronhost=10.50.9.80%201111%20DEFAULT&searchid=H1&sourcescreen=INITREQ&pos=1&itempos=1&rootsearch=SCAN&function=INITREQ&search=AUTHID&authid=581020&authidu=4",
"items": [
{
"itemType": "book",
"creators": [
{
"lastName": "Mohd. Yaakub Hj. Johari",
"creatorType": "editor"
"firstName": "Joyce P.",
"lastName": "Jacobsen",
"creatorType": "author"
},
{
"lastName": "Institut kajian pembangunan (Sabah)",
"fieldMode": true
},
{
"lastName": "Konrad Adenauer Foundation",
"fieldMode": true
},
"firstName": "Gilbert L.",
"lastName": "Skillman",
"creatorType": "contributor"
}
],
"notes": [
{
"lastName": "Seminarp on Human Resources Developement in Sabah",
"fieldMode": true
"note": "Introduction: labor economics and the political economy of labor -- Part I: Labor supply and demand: Labor supply -- Labor demand -- Perfectly competitive labor markets -- Imperfectly competitive labor markets -- Part II: The labor exchange: The structure of labor exchange -- Strategic labor exchange -- Bargaining in labor exchange -- Imperfect contracting in labor exchange -- Part III: The employment relationship: The nature of the employment relationship -- Employee compensation and incentive provision -- Employment continuity and internal labor markets -- Employee representation in the workplace -- Part IV: Labor market divisions: Wages and working conditions -- Education and ability -- Employee characteristics and discrimination -- Employer characteristics and market segmentation -- Part V: labor in the market system: -- Earnings inequality -- Unemployment -- Labor market dynamics"
}
],
"notes": [],
"tags": [
"Manpower policy",
"Sabah",
"Human capital",
"Sabah",
"Labor market",
"Sabah"
"Labor Market",
"Industrial relations",
"Labor economics"
],
"seeAlso": [],
"attachments": [],
"ISBN": "9679910113",
"title": "Issues on human resources development in Sabah: proceedings of a Seminar held at Kota Kinabalu, Sabah on August 17-19, 1987",
"place": "Kota Kinabalu",
"publisher": "Institut Kajian Pembangunan (Sabah) : Konrad Adenauer Foundation",
"date": "1989",
"numPages": "172",
"callNumber": "HD5812.57 . S36I77 1987",
"ISBN": "9780631208365",
"title": "Labor markets and employment relationships: a comprehensive approach",
"place": "Malden, MA",
"publisher": "Blackwell Pub",
"date": "2004",
"numPages": "556",
"callNumber": "HD5706 . J33 2004",
"libraryCatalog": "webvirtua.ums.edu.my Library Catalog",
"shortTitle": "Issues on human resources development in Sabah"
"shortTitle": "Labor markets and employment relationships"
}
]
}

Some generated files are not rendered by default. Learn more.

@@ -3,13 +3,13 @@
"label": "National Archives of South Africa",
"creator": "Adam Crymble",
"target": "^https?://www\\.national\\.archsrch\\.gov\\.za",
"minVersion": "1.0.0b4.r5",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "g",
"lastUpdated": "2012-03-11 00:17:44"
"browserSupport": "gcsb",
"lastUpdated": "2014-03-12 22:00:51"
}

function detectWeb(doc, url) {
@@ -99,22 +99,24 @@ function doWeb(doc, url) {

if (!next_title.textContent.match(/^\d\d\d\d/) && !next_title.textContent.match(/\\/) && next_title.textContent.length > 3 && next_title.textContent.match(/\w/)) {
Zotero.debug(next_title.textContent);
items[next_title.href] = next_title.textContent;
items[next_title.href] = next_title.textContent.trim();
}

}
items = Zotero.selectItems(items);
for (var i in items) {
articles.push(i);
}
} else {
articles = [url];
Zotero.selectItems(items, function (items) {
if (!items) {
return true;
}
for (var i in items) {
articles.push(i);
}
ZU.processDocuments(articles, scrape)
});
}
else {
scrape(doc, url);
}
Zotero.Utilities.processDocuments(articles, scrape, function () {
Zotero.done();
});
Zotero.wait();
}
/** BEGIN TEST CASES **/
var testCases = []
/** END TEST CASES **/
/** END TEST CASES **/
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsb",
"lastUpdated": "2014-01-09 03:13:27"
"lastUpdated": "2014-03-12 21:53:46"
}

/*
@@ -24,6 +24,7 @@ Primos with showPNX.jsp installed:
(2) http://primo.bib.uni-mannheim.de/primo_library/libweb/action/search.do?vid=MAN_UB
(3) http://limo.libis.be/primo_library/libweb/action/search.do?vid=LIBISnet&fromLogin=true
(4.a) http://virtuose.uqam.ca/primo_library/libweb/action/search.do?vid=UQAM
(5) http://searchit.princeton.edu/primo_library/libweb/action/dlDisplay.do?docId=PRN_VOYAGER2778598&vid=PRINCETON&institution=PRN
*/

function getSearchResults(doc) {
@@ -380,36 +381,6 @@ var testCases = [
"shortTitle": "In Zweifelsfällen entscheidet die Wahrheit"
}
]
},
{
"type": "web",
"url": "http://searchit.princeton.edu/primo_library/libweb/action/dlDisplay.do?docId=PRN_VOYAGER2778598&vid=PRINCETON&institution=PRN",
"items": [
{
"itemType": "book",
"creators": [
{
"lastName": "Great Britain. Foreign Office",
"creatorType": "author",
"fieldMode": 1
}
],
"notes": [],
"tags": [
"China Foreign relations Great Britain.",
"China Religion.",
"Great Britain Foreign relations China.",
"Missions China."
],
"seeAlso": [],
"attachments": [],
"language": "eng",
"libraryCatalog": "Primo",
"title": "China and foreign missionaries.",
"publisher": "London 1860-1912",
"date": "1860"
}
]
}
]
/** END TEST CASES **/

0 comments on commit d6a4bdf

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