remove debug code from previous commit
This commit is contained in:
parent
98dbfd761a
commit
4adc22971f
|
@ -24,8 +24,6 @@ var FORMAT_GUIDS = {
|
||||||
var unAPIResolver, unsearchedIds, foundIds, foundItems, foundFormat, foundFormatName, domain;
|
var unAPIResolver, unsearchedIds, foundIds, foundItems, foundFormat, foundFormatName, domain;
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
Zotero.debug("detecting unAPI");
|
|
||||||
|
|
||||||
// initialize variables
|
// initialize variables
|
||||||
unsearchedIds = [];
|
unsearchedIds = [];
|
||||||
foundIds = [];
|
foundIds = [];
|
||||||
|
@ -63,8 +61,6 @@ function detectWeb(doc, url) {
|
||||||
} else {
|
} else {
|
||||||
// if there's more than one, we should first see if the resolver gives metadata for all of them
|
// if there's more than one, we should first see if the resolver gives metadata for all of them
|
||||||
Zotero.Utilities.HTTP.doGet(unAPIResolver, function(text) {
|
Zotero.Utilities.HTTP.doGet(unAPIResolver, function(text) {
|
||||||
Zotero.debug(text);
|
|
||||||
|
|
||||||
var format = checkFormats(text);
|
var format = checkFormats(text);
|
||||||
if(format) {
|
if(format) {
|
||||||
// move unsearchedIds to foundIds
|
// move unsearchedIds to foundIds
|
||||||
|
@ -146,9 +142,6 @@ function checkFormats(text) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Zotero.debug("FORMATS");
|
|
||||||
Zotero.debug(foundFormat);
|
|
||||||
|
|
||||||
// loop through again, this time respecting preferences
|
// loop through again, this time respecting preferences
|
||||||
for each(var format in RECOGNIZABLE_FORMATS) {
|
for each(var format in RECOGNIZABLE_FORMATS) {
|
||||||
if(foundFormat[format]) return [format, foundFormat[format]];
|
if(foundFormat[format]) return [format, foundFormat[format]];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user