Skip to content

Commit

Permalink
fix #356
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Jul 10, 2024
1 parent aca71a9 commit 3f61736
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions CHINESE JOURNAL OF LAW.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
"translatorID": "d37a0069-cbc7-4b91-8c04-3be2c3bc3e6e",
"label": "CHINESE JOURNAL OF LAW",
"creator": "jiaojiaodubai",
"target": "^http://www\\.faxueyanjiu\\.com",
"target": "^https://faxueyanjiu\\.ajcass\\.com",
"minVersion": "5.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-04-24 09:27:29"
"lastUpdated": "2024-07-09 15:13:15"
}

/*
***** BEGIN LICENSE BLOCK *****
***** BEGIN LICENSE BLOCK *****
Copyright © 2024 jiaojiaodubai<[email protected]>
Copyright © 2024 jiaojiaodubai<[email protected]>
This file is part of Zotero.
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Zotero is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Zotero is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Zotero is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Affero General Public License
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
***** END LICENSE BLOCK *****
***** END LICENSE BLOCK *****
*/


Expand Down Expand Up @@ -115,7 +115,7 @@ async function scrape(keyObj) {
newItem['original-container-title'] = 'Chinese Journal of Law';
newItem.volume = tryMatch(pubInfo, /\.\(0*(\d+)\)/, 1) || tryMatch(pubInfo, /,0*(\d+)/, 1);
newItem.issue = (tryMatch(pubInfo, /\)(.+?):/, 1) || tryMatch(pubInfo, /\((.+?)\)/, 1)).replace(/0*(\d+)/, '$1');
newItem.pages = tryMatch(pubInfo, /:[\d, ~+-]+/).replace(/\+/g, ', ').replace(/~/g, '-');
newItem.pages = tryMatch(pubInfo, /:([\d, ~+-]+)/, 1).replace(/\+/g, ', ').replace(/~/g, '-');
newItem.date = tryMatch(pubInfo, /^\d+/);
newItem.DOI = text(itemDoc, '#DOI');
newItem.ISSN = '1002-896X';
Expand Down Expand Up @@ -157,12 +157,12 @@ function tryMatch(string, pattern, index = 0) {
var testCases = [
{
"type": "web",
"url": "http://www.faxueyanjiu.com/Home/Index",
"url": "https://faxueyanjiu.ajcass.com/Home/Index",
"items": "multiple"
},
{
"type": "web",
"url": "http://www.faxueyanjiu.com/Magazine/GetIssueContentList2/?PageSize=12&Year=2023&Issue=2",
"url": "https://faxueyanjiu.ajcass.com/Magazine/GetIssueContentList2/?PageSize=12&Year=2023&Issue=2",
"items": "multiple"
}
]
Expand Down

0 comments on commit 3f61736

Please sign in to comment.