commit Zotero Connector-compatible COinS, unAPI, and Embedded RDF
This commit is contained in:
parent
d06a19b6a8
commit
3888e19539
3 changed files with 7 additions and 4 deletions
|
@ -8,7 +8,8 @@
|
|||
"maxVersion":"",
|
||||
"priority":300,
|
||||
"inRepository":true,
|
||||
"lastUpdated":"2010-09-15 18:42:44"
|
||||
"detectXPath":"//span[contains(@class, ' Z3988') or contains(@class, 'Z3988 ') or @class='Z3988'][@title]"
|
||||
"lastUpdated":"2010-09-23 04:19:20"
|
||||
}
|
||||
|
||||
function detectWeb(doc, url) {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"maxVersion":"",
|
||||
"priority":400,
|
||||
"inRepository":true,
|
||||
"lastUpdated":"2009-05-27 08:06:05"
|
||||
"detectXPath":"//meta[substring(@name, 1, 3)='dc.'] | //link[substring(@rel, 1, 7)='schema.']",
|
||||
"lastUpdated":"2010-09-23 04:19:20"
|
||||
}
|
||||
|
||||
var _prefix;
|
||||
|
@ -45,7 +46,7 @@ function detectWeb(doc, url) {
|
|||
var metaTags = doc.getElementsByTagName("meta");
|
||||
for(var i=0; i<metaTags.length; i++) {
|
||||
var tag = metaTags[i].getAttribute("name");
|
||||
if(tag && tag.substr(0, 3).toLowerCase() == prefix) {
|
||||
if(tag && tag.substr(0, prefix.length).toLowerCase() == prefix) {
|
||||
return "webpage";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"maxVersion":"",
|
||||
"priority":200,
|
||||
"inRepository":true,
|
||||
"lastUpdated":"2010-09-15 18:42:44"
|
||||
"detectXPath":"//link[@rel='unapi-server']",
|
||||
"lastUpdated":"2010-09-23 04:19:20"
|
||||
}
|
||||
|
||||
var RECOGNIZABLE_FORMATS = ["mods", "marc", "endnote", "ris", "bibtex", "rdf"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue