Skip to content

Commit

Permalink
更新为0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
redleafnew committed Jul 3, 2022
1 parent 5009446 commit 50036e5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
10 changes: 8 additions & 2 deletions chrome/content/scripts/zoteroupdateifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ Zotero.UpdateIFs.updateSelectedItem = async function (items) {
// 文献类型为期刊时才写入

var ifs = await Zotero.UpdateIFs.getIFs(paperName);
if (ifs == '') {
var statusInfo = 'failed';
var alertInfo = Zotero.UpdateIFs.ZUIFGetString('not.found');
Zotero.UpdateIFs.showPopUP(alertInfo, statusInfo);
return;
}
var ptID = paperName[1]; // publications: tempID 用于得到后面的tempID

for (i = 0; i < items.length; i++) {
Expand Down Expand Up @@ -631,7 +637,7 @@ Zotero.UpdateIFs.updateSelectedItem = async function (items) {
items[i].setField(
'extra',
old.replace(pattExtra, newExtras).
replace('\n\n','\n')); // 两个换行替换为一个
replace('\n\n', '\n')); // 两个换行替换为一个

} else { // 以前没有,且内容不为空
items[i].setField('extra', newExtras + old);
Expand Down Expand Up @@ -694,7 +700,7 @@ Zotero.UpdateIFs.upJourAbb = async function (item) {
}
}
//return jourAbbs
// item.save();
// item.save();
};

// 得到期刊缩写
Expand Down
1 change: 1 addition & 0 deletions chrome/locale/en-US/zoteroupdateifs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ infomation=Infomation:
item.changed.mul=items authors upadted.
item.changed.sig=item authors upadted.
no.change=No change for author name.
not.found=The journal infomation was not found.
pub.title.empty=The original or the new publication title is empty, please input.
show.data.dir=The current data directory:
show.profile.dir=The current profile directory is:
Expand Down
1 change: 1 addition & 0 deletions chrome/locale/zh-CN/zoteroupdateifs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ infomation=Infomation:
item.changed.mul=个条目作者更新完成。
item.changed.sig=个条目作者更新完成。
no.change=作者姓名没有变化。
not.found=期刊信息没有找到。
pub.title.empty=原期刊题目或新期刊题目是空的, 请输入。
show.data.dir=当前的数据目录是:
show.profile.dir=当前的配置目录是:
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RDF:about="urn:mozilla:install-manifest"
em:id="[email protected]"
em:name="Zotero Update IFs"
em:version="0.1.1"
em:version="0.1.2"
em:type="2"
em:creator="Minyi Han"
em:description="Zotero plugin for update IF from easyScholar/"
Expand Down
6 changes: 3 additions & 3 deletions update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>0.1.1</em:version>
<em:version>0.1.2</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>[email protected]</em:id>
<em:minVersion>5.0.0</em:minVersion>
<em:maxVersion>6.*</em:maxVersion>
<em:updateLink>https://github.com/redleafnew/zotero-updateifse/releases/download/0.1.1/zotero-updateifs.xpi</em:updateLink>
<em:updateLink>https://github.com/redleafnew/zotero-updateifse/releases/download/0.1.2/zotero-updateifs.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>

Expand All @@ -21,7 +21,7 @@
<em:id>[email protected]</em:id>
<em:minVersion>4.999</em:minVersion>
<em:maxVersion>6.*</em:maxVersion>
<em:updateLink>https://github.com/redleafnew/zotero-updateifse/releases/download/0.1.1/zotero-updateifs.xpi</em:updateLink>
<em:updateLink>https://github.com/redleafnew/zotero-updateifse/releases/download/0.1.2/zotero-updateifs.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>

Expand Down

0 comments on commit 50036e5

Please sign in to comment.