Skip to content

Commit

Permalink
向上兼容CNKI.js的改动
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Jul 12, 2024
1 parent a22a5b2 commit 5b837de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CNKI CHKD.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-02-08 15:30:54"
"lastUpdated": "2024-07-12 13:05:37"
}

/*
Expand Down Expand Up @@ -133,14 +133,13 @@ async function doWeb(doc, url) {
if (detectWeb(doc, url) == 'multiple') {
let items = await Zotero.selectItems(getSearchResults(doc, false));
if (!items) return;
await cnki.scrapeMulti(items);
await cnki.scrapeMulti(items, doc);
}
else {
await cnki.scrape(doc);
}
}


/** BEGIN TEST CASES **/
var testCases = [
{
Expand Down

0 comments on commit 5b837de

Please sign in to comment.