Quick hack that seems to fix CrossRef DOI lookup, though this should be fixed for real
This commit is contained in:
parent
473e3a067a
commit
4ab573e4e7
|
@ -1 +1 @@
|
||||||
2009-07-07 00:15:00
|
2009-07-07 08:50:00
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":90,
|
"priority":90,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2007-09-15 21:00:00"
|
"lastUpdated":"2009-07-07 08:50:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectSearch(item) {
|
function detectSearch(item) {
|
||||||
|
@ -31,6 +31,10 @@ function processCrossRef(xmlOutput) {
|
||||||
// parse XML with E4X
|
// parse XML with E4X
|
||||||
try {
|
try {
|
||||||
var xml = new XML(xmlOutput);
|
var xml = new XML(xmlOutput);
|
||||||
|
if(!xml.doi_record.length()) {
|
||||||
|
default xml namespace = "http://www.crossref.org/xschema/1.0"; with({});
|
||||||
|
var xml = new XML('<container xmlns="http://www.crossref.org/xschema/1.0">' + xmlOutput + '</container>');
|
||||||
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user