Skip to content

Commit

Permalink
fix: add zotero 6 beta support
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Mar 26, 2021
1 parent 4265332 commit 0fc1b1f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
Binary file removed builds/zotero-tag-0.0.9.xpi
Binary file not shown.
Binary file added builds/zotero-tag-0.1.0.xpi
Binary file not shown.
5 changes: 4 additions & 1 deletion chrome/content/scripts/zoterotag.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Zotero.ZoteroTag = {
Zotero.debug('ZoteroTag: add items when event == add');
if(event == "add" && type=='item') {
Zotero.debug('ZoteroTag: first try')
Zotero.ZoteroTag.updateItems(Zotero.Items.get(ids), 'add', Zotero.ZoteroTag.getTagByAuto());
Zotero.ZoteroTag.updateItems(Zotero.Items.get(ids).filter(item => item.isRegularItem()), 'add', Zotero.ZoteroTag.getTagByAuto());
}

// Second attempts to force adding the new tag
Expand Down Expand Up @@ -234,6 +234,9 @@ Zotero.ZoteroTag = {
updateItems: function(items, operation, tags) {
// If we don't have any items to update, just return.
Zotero.debug('ZoteroTag: Updating items: ' + JSON.stringify(items))
if(items.length === 0){
return;
}
// Object.keys(items).forEach(function(key){
// Zotero.debug(items[key])
// });
Expand Down
4 changes: 2 additions & 2 deletions chrome/locale/en-US/overlay.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
<!ENTITY zotero.zoterotag.help.feedback.caption.label "Feedback">
<!ENTITY zotero.zoterotag.help.feedback.label "github">

<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag VERSION 0.0.9">
<!ENTITY zotero.zoterotag.help.releasetime.label "2021-03-09 10:08:44">
<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag VERSION 0.1.0">
<!ENTITY zotero.zoterotag.help.releasetime.label "2021-03-26 18:18:39">
4 changes: 2 additions & 2 deletions chrome/locale/zh-CN/overlay.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
<!ENTITY zotero.zoterotag.help.feedback.caption.label "意见反馈">
<!ENTITY zotero.zoterotag.help.feedback.label "github">

<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag 版本 0.0.9">
<!ENTITY zotero.zoterotag.help.releasetime.label "2021-03-09 10:08:44">
<!ENTITY zotero.zoterotag.help.version.label "ZoteroTag 版本 0.1.0">
<!ENTITY zotero.zoterotag.help.releasetime.label "2021-03-26 18:18:39">
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="zoterotag@euclpts.com"
em:name="Zotero Tag"
em:version="0.0.9"
em:version="0.1.0"
em:type="2"
em:creator="windingwind"
em:description="Zotero plugin for automatically add tag for an added item."
Expand Down
6 changes: 3 additions & 3 deletions update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>0.0.9</em:version>
<em:version>0.1.0</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>zotero@chnm.gmu.edu</em:id>
<em:minVersion>5.0</em:minVersion>
<em:maxVersion>*</em:maxVersion>
<em:updateLink>https://github.com/windingwind/zotero-tag/releases/download/v0.0.9/zotero-tag-0.0.9.xpi</em:updateLink>
<em:updateLink>https://github.com/windingwind/zotero-tag/releases/download/v0.1.0/zotero-tag-0.1.0.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>
<em:targetApplication>
<rdf:Description>
<em:id>juris-m@juris-m.github.io</em:id>
<em:minVersion>5.0</em:minVersion>
<em:maxVersion>*</em:maxVersion>
<em:updateLink>https://github.com/windingwind/zotero-tag/releases/download/v0.0.9/zotero-tag-0.0.9.xpi</em:updateLink>
<em:updateLink>https://github.com/windingwind/zotero-tag/releases/download/v0.1.0/zotero-tag-0.1.0.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>
</rdf:Description>
Expand Down

0 comments on commit 0fc1b1f

Please sign in to comment.