Skip to content
Permalink
Browse files

Revise priorities:

* 100 = specific journal/website (target should be a specific domain)
* 150 = multi-journal sites with different subdomains, but all journals would look practically the same
* 200 = multi-journal sites with different subdomains and some journals may have somewhat different layout
* 250 = CMS/Library Catalog with no specific domain, but either a very unique URL or unique checks in detectWeb (for all possible detection options). I.e. unlikely to be a false-positive
* 260 = CMS/Library Catalog with no specific domain, but somewhat unique detectWeb checks (mostly URL-based checks).
* 270 = CMS/Library Catalog with no specific domain and rather generic URL checks (conceivably, could be a false-positive)
* 300+ = Translators to be run on every page in order of metadata quality
  • Loading branch information...
aurimasv committed Aug 26, 2014
1 parent 85d0f0f commit 5b4ef451a9c3c14fa9b2b8d5bce37a8bf7c1a3f2
@@ -5,11 +5,11 @@
"target": "^https?://(www\\.)?booksandjournals\\.brillonline\\.com",
"minVersion": "3.0",
"maxVersion": "",
"priority": 250,
"priority": 150,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-11-18 17:38:45"
"lastUpdated": "2014-08-26 03:35:40"
}

/*
@@ -5,11 +5,11 @@
"target": "",
"minVersion": "2.1",
"maxVersion": "",
"priority": 250,
"priority": 310,
"inRepository": true,
"translatorType": 6,
"browserSupport": "gcsv",
"lastUpdated": "2012-05-04 05:28:01"
"lastUpdated": "2014-08-26 03:36:14"
}

function detectWeb(doc, url) {
4 DOI.js
@@ -5,11 +5,11 @@
"target": "",
"minVersion": "3.0",
"maxVersion": "",
"priority": 300,
"priority": 320,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2014-02-23 11:23:36"
"lastUpdated": "2014-08-26 03:36:25"
}

var items = {};
@@ -5,11 +5,11 @@
"target": "/gdc/ncco|/gdc/xsearch|/gdc/artemis",
"minVersion": "3.0",
"maxVersion": "",
"priority": 200,
"priority": 270,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsb",
"lastUpdated": "2014-04-14 17:15:41"
"lastUpdated": "2014-08-26 03:45:45"
}

/*
@@ -5,11 +5,11 @@
"target": "^[^?#]+(?:/content/(?:[0-9]+[A-Z\\-]*/(?:suppl_)?[A-Z]?[0-9]|current|firstcite|early)|/search\\?.*?\\bsubmit=|/search(?:/results)?\\?fulltext=|/cgi/collection/.)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 200,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2014-07-24 01:16:55"
"lastUpdated": "2014-08-26 03:44:11"
}

/*
@@ -5,11 +5,11 @@
"target": "^https?://inspirehep\\.net/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 200,
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2014-03-15 23:06:14"
"lastUpdated": "2014-08-26 03:46:51"
}

/*INSPIRE Translator
@@ -5,11 +5,11 @@
"target": "(^https?://makassarlib\\.net|^https?://kit\\.ft\\.ugm\\.ac\\.id/ucs|/libsenayan)/index\\.php",
"minVersion": "2.1",
"maxVersion": "",
"priority": 200,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcv",
"lastUpdated": "2013-12-07 05:46:23"
"lastUpdated": "2014-08-26 04:10:09"
}

/*
@@ -5,11 +5,11 @@
"target": "https?://[^/]+/F(?:/[A-Z0-9\\-]+(?:\\?.*)?$|\\?func=find|\\?func=scan|\\?func=short)",
"minVersion": "1.0.0b3.r1",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsb",
"lastUpdated": "2014-06-01 20:40:45"
"lastUpdated": "2014-08-26 03:48:17"
}

/*
@@ -5,11 +5,11 @@
"target": "^https?://amicus\\.collectionscanada\\.ca/aaweb-bin/aamain",
"minVersion": "2.1.9",
"maxVersion": "",
"priority": 200,
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2012-09-28 00:29:30"
"lastUpdated": "2014-08-26 03:47:57"
}

/*
@@ -5,11 +5,11 @@
"target": "/fullrecordinnerframe\\.ashx\\?.+id=|/result\\.ashx\\?",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"priority": 270,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2013-05-15 20:05:47"
"lastUpdated": "2014-08-26 03:51:35"
}

/*
@@ -5,11 +5,11 @@
"target": "^https?://[^.]+\\.bibliocommons\\.com\\/",
"minVersion": "2.1",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-02-25 21:26:18"
"lastUpdated": "2014-08-26 03:54:52"
}

/*
@@ -5,11 +5,11 @@
"target": "/web2/tramp2\\.exe/(?:see\\_record/|authority\\_hits/|do_keyword_search|form/|goto/.*\\?.*screen=(MARC)?Record\\.html)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2013-06-09 12:35:22"
"lastUpdated": "2014-08-26 03:57:40"
}

/* No more libraries with permalinks that I know of
@@ -5,11 +5,11 @@
"target": "ipac\\.jsp\\?.*(?:uri=(?:link|full)=[0-9]|menu=search|term=)",
"minVersion": "2.1",
"maxVersion": "",
"priority": 100,
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2014-02-23 23:49:49"
"lastUpdated": "2014-08-26 03:59:09"
}

function detectWeb(doc, url) {
@@ -5,11 +5,11 @@
"target": "/iii/encore/(record|search)",
"minVersion": "1.0",
"maxVersion": "",
"priority": 100,
"priority": 270,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsb",
"lastUpdated": "2014-02-23 23:34:49"
"lastUpdated": "2014-08-26 03:59:48"
}

/*
@@ -1,14 +1,15 @@
{
"translatorID":"c0e6fda6-0ecd-e4f4-39ca-37a4de436e15",
"translatorType":4,
"label":"Library Catalog (GEAC)",
"creator":"Simon Kornblith",
"target":"/(?:GeacQUERY|GeacFETCH[\\:\\?].*[&:]next=html/(?:record\\.html|geacnffull\\.html))",
"minVersion":"1.0.0b3.r1",
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2012-05-25 03:37:22"
"translatorID": "c0e6fda6-0ecd-e4f4-39ca-37a4de436e15",
"label": "Library Catalog (GEAC)",
"creator": "Simon Kornblith",
"target": "/(?:GeacQUERY|GeacFETCH[\\:\\?].*[&:]next=html/(?:record\\.html|geacnffull\\.html))",
"minVersion": "1.0.0b3.r1",
"maxVersion": "",
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "g",
"lastUpdated": "2014-08-26 04:00:31"
}

function detectWeb(doc, url) {
@@ -5,11 +5,11 @@
"target": "(search~|\\/search\\?|(a|X|t|Y|w)\\?|\\?(searchtype|searchscope)|frameset&FF|record=b[0-9]+(~S[0-9])?|/search/q\\?)",
"minVersion": "2.1.9",
"maxVersion": "",
"priority": 200,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-06-01 16:02:26"
"lastUpdated": "2014-08-26 04:02:52"
}

function detectWeb(doc, url) {
@@ -26,7 +26,7 @@ function detectWeb(doc, url) {
// Persistent URL for item
// http://bearcat.baylor.edu/record=b1540169~S7
// http://innopac.cooley.edu/record=b507916~S0
http://libcat.dartmouth.edu/record=b4054652~S1
// http://libcat.dartmouth.edu/record=b4054652~S1
// Persistent URL for item, without suffix
// http://luna.wellesley.edu/record=b2398784
// Specific search parameters
@@ -5,11 +5,11 @@
"target": "cgi-bin/koha/opac-(detail|search)",
"minVersion": "2.1.9",
"maxVersion": "",
"priority": 100,
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-09-05 20:46:46"
"lastUpdated": "2014-09-25 15:46:46"
}

/*
@@ -1,15 +1,15 @@
{
"translatorID": "83501b8c-1033-4722-ae50-a77d67271ef7",
"label": "Library Catalog (OPALS)",
"creator": "Opals",
"target": "^https?://[^?#&]+/bin/(search|pf|rs)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 200,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsib",
"lastUpdated": "2014-04-17 09:20:31"
"translatorID": "83501b8c-1033-4722-ae50-a77d67271ef7",
"label": "Library Catalog (OPALS)",
"creator": "Opals",
"target": "^https?://[^?#&]+/bin/(search|pf|rs)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsib",
"lastUpdated": "2014-08-26 04:06:03"
}


@@ -5,11 +5,11 @@
"target": "^https?://[^/]+(?:/[^/]+)?//?DB=\\d",
"minVersion": "3.0",
"maxVersion": "",
"priority": 198,
"priority": 248,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsb",
"lastUpdated": "2014-09-02 04:49:46"
"lastUpdated": "2014-09-25 15:49:46"
}

function getSearchResults(doc) {
@@ -5,11 +5,11 @@
"target": "^https?://[^/]+/DB=[\\dA-Z]",
"minVersion": "3.0",
"maxVersion": "",
"priority": 199,
"priority": 249,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2013-12-09 20:28:44"
"lastUpdated": "2014-08-26 04:07:48"
}

/*
@@ -5,11 +5,11 @@
"target": "/uhtbin/(?:cgisirsi|quick_keyword)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-04-03 17:44:40"
"lastUpdated": "2014-08-26 04:08:13"
}

/* Based on the SIRSI translator by Simon Kornblith and Michael Berkowitz,
@@ -5,11 +5,11 @@
"target": "/uhtbin/(?:cgisirsi|quick_keyword)",
"minVersion": "2.1",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-04-03 17:45:33"
"lastUpdated": "2014-08-26 04:09:11"
}

/*Spanish Libraries:
@@ -5,11 +5,11 @@
"target": "TLCScripts/interpac\\.dll\\?(?:.*LabelDisplay.*RecordNumber=[0-9]|Search|ItemTitles)",
"minVersion": "1.0.0b3.r1",
"maxVersion": "",
"priority": 100,
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-06-09 13:07:04"
"lastUpdated": "2014-08-26 04:11:42"
}

/* other example here: http://ocl.tlcdelivers.com/TLCScripts/interpac.dll?LabelDisplay&LastResult=Search%26Config=ysm%26FormId=6588839%26Branch=,0,%26LimitsId=0%26StartIndex=0%26SearchField=7%26SearchType=1%26SearchData=food%26NotAddToHistory=1%26ItemsPerPage=30%26SortField=0%26PeriodLimit=-1%26SearchAvailableOnly=0&DataNumber=52182&RecordNumber=52182&SearchAvailableOnly=0&FormId=6588839&ItemField=1&Config=ysm&Branch=,0,
@@ -5,11 +5,11 @@
"target": "/items(/\\d+|\\?query=)",
"minVersion": "2.1.9",
"maxVersion": "",
"priority": 100,
"priority": 260,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2013-11-18 23:02:45"
"lastUpdated": "2014-08-26 04:11:00"
}

/*
@@ -5,11 +5,11 @@
"target": "/chameleon(?:\\?|$)",
"minVersion": "1.0.0b3.r1",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-03-18 15:42:51"
"lastUpdated": "2014-08-26 04:13:58"
}

function detectWeb(doc, url) {
@@ -5,11 +5,11 @@
"target": "/vwebv/(holdingsInfo|search)",
"minVersion": "1.0",
"maxVersion": "",
"priority": 100,
"priority": 250,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2012-09-08 13:30:54"
"lastUpdated": "2014-08-26 04:12:22"
}

function detectWeb(doc, url) {
Oops, something went wrong.

0 comments on commit 5b4ef45

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