Skip to content

Commit

Permalink
Format citation count correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Sep 29, 2020
1 parent 6fdefc2 commit 0b44c33
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Code for this extension is based on the [Zotero DOI
- Run Zotero (version 5.x)
- Go to `Tools -> Add-ons`
- `Install Add-on From File`
- Choose the file `zotero-citationcounts-0.1.1.xpi`
- Choose the file `zotero-citationcounts-0.1.2.xpi`
- Restart Zotero

## License
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/scripts/zoterocitationcounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function setCitationCount(item, tag, count) {
const mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
const yyyy = today.getFullYear();
const date = yyyy + '-' + mm + '-' + dd
extras.push("Citations (" + tag + "): " + count) + " [" + date + "]";
extras.push("Citations (" + tag + "): " + count + " [" + date + "]");
extra = extras.join("\n");
item.setField('extra', extra);
}
Expand Down Expand Up @@ -235,7 +235,7 @@ Zotero.CitationCounts.updateItems = function(items0, operation) {
const icon = 'chrome://zotero/skin/toolbar-advanced-search' +
(Zotero.hiDPI ? "@2x" : "") + '.png';
Zotero.CitationCounts.progressWindow.changeHeadline(
"Getting " + operationNames[operation] + " citation countss", icon);
"Getting " + operationNames[operation] + " citation counts", icon);
const doiIcon =
'chrome://zoterocitationcounts/skin/doi' +
(Zotero.hiDPI ? "@2x" : "") + '.png';
Expand Down
8 changes: 4 additions & 4 deletions chrome/locale/en-US/overlay.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!ENTITY citationcounts-autoretrieve-semanticscholar-label "Semantic Scholar">
<!ENTITY citationcounts-autoretrieve-no-label "No">
<!ENTITY citationcounts-menu-label "Manage Citation Counts">
<!ENTITY citationcounts-menu-crossref-label "Get Crossref citation counts">
<!ENTITY citationcounts-menu-inspire-label "Get Inspire HEP citation counts">
<!ENTITY citationcounts-menu-ads-label "Get NASA/ADS citation counts">
<!ENTITY citationcounts-menu-semanticscholar-label "Get Semantic Scholar citation counts">
<!ENTITY citationcounts-menu-crossref-label "Get Crossref citation count">
<!ENTITY citationcounts-menu-inspire-label "Get Inspire HEP citation count">
<!ENTITY citationcounts-menu-ads-label "Get NASA/ADS citation count">
<!ENTITY citationcounts-menu-semanticscholar-label "Get Semantic Scholar citation count">
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 Citation Counts Manager"
em:version="0.1.1"
em:version="0.1.2"
em:type="2"
em:creator="Erik Schnetter"
em:description="Automatically fetch and update citation counts"
Expand Down
4 changes: 2 additions & 2 deletions update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,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</em:minVersion>
<em:maxVersion>5.*</em:maxVersion>
<em:updateLink>https://github.com/eschnett/zotero-citationcounts/releases/download/v0.1.1/zotero-citationcounts-0.1.1.xpi</em:updateLink>
<em:updateLink>https://github.com/eschnett/zotero-citationcounts/releases/download/v0.1.2/zotero-citationcounts-0.1.2.xpi</em:updateLink>
</rdf:Description>
</em:targetApplication>
</rdf:Description>
Expand Down

0 comments on commit 0b44c33

Please sign in to comment.