Skip to content

Commit

Permalink
Added hl=en, changed version -> 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
beloglazov committed May 27, 2012
1 parent 2c42f20 commit 039d117
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion build
@@ -1,2 +1,2 @@
#!/bin/sh
zip -r builds/zotero-scholar-citations-1.5-fx.xpi chrome/* chrome.manifest install.rdf
zip -r builds/zotero-scholar-citations-1.6-fx.xpi chrome/* chrome.manifest install.rdf
Empty file.
40 changes: 20 additions & 20 deletions chrome/content/overlay.xul
Expand Up @@ -3,24 +3,24 @@
<!DOCTYPE overlay SYSTEM "chrome://zoteroscholarcitations/locale/overlay.dtd">

<overlay id="zoteroscholarcitations"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="application/x-javascript" src="scripts/zoteroscholarcitations.js" />

<menupopup id="zotero-tb-actions-popup">
<menuitem id="zoteroscholarcitations-tb-actions-export-playground"
label="&zotero.scholarcitations.updateAll.label;"
insertbefore="zotero-tb-actions-utilities-separator"
oncommand="Zotero.ScholarCitations.updateAll();"
/>
</menupopup>
<popup id="zotero-collectionmenu">
<menuitem id="zotero-collectionmenu-scholarcitations" label="&zotero.scholarcitations.update.label;" oncommand="Zotero.ScholarCitations.updateSelectedEntity()"/>
</popup>
<popup id="zotero-itemmenu" onpopupshowing="ZoteroPane.buildItemContextMenu();">
<menuitem id="zotero-itemmenu-scholarcitations" label="&zotero.scholarcitations.update.label;" oncommand="Zotero.ScholarCitations.updateSelectedItems()"/>
</popup>

xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="scripts/zoteroscholarcitations.js" />
<menupopup id="zotero-tb-actions-popup">
<menuitem id="zoteroscholarcitations-tb-actions-export-playground"
label="&zotero.scholarcitations.updateAll.label;"
insertbefore="zotero-tb-actions-utilities-separator"
oncommand="Zotero.ScholarCitations.updateAll();"
/>
</menupopup>
<popup id="zotero-collectionmenu">
<menuitem id="zotero-collectionmenu-scholarcitations" label="&zotero.scholarcitations.update.label;" oncommand="Zotero.ScholarCitations.updateSelectedEntity()"/>
</popup>
<popup id="zotero-itemmenu" onpopupshowing="ZoteroPane.buildItemContextMenu();">
<menuitem id="zotero-itemmenu-scholarcitations" label="&zotero.scholarcitations.update.label;" oncommand="Zotero.ScholarCitations.updateSelectedItems()"/>
</popup>
</overlay>
4 changes: 2 additions & 2 deletions chrome/content/scripts/zoteroscholarcitations.js
Expand Up @@ -122,7 +122,7 @@ Zotero.ScholarCitations.updateNextItem = function() {
};

Zotero.ScholarCitations.updateItem = function(item) {
var url = "http://scholar.google.com/scholar?as_q=" + encodeURIComponent(item.getField('title')).replace(/ /g, '+') + "&num=1";
var url = "http://scholar.google.com/scholar?hl=en&as_q=" + encodeURIComponent(item.getField('title')).replace(/ /g, '+') + "&num=1";

var date = item.getField('date');
if (date != '') {
Expand Down Expand Up @@ -200,4 +200,4 @@ Zotero.ScholarCitations.getCitationCount = function(responseText) {

window.addEventListener('load', function(e) {
Zotero.ScholarCitations.init();
}, false);
}, false);
6 changes: 3 additions & 3 deletions install.rdf
Expand Up @@ -9,12 +9,12 @@
<RDF:Description RDF:about="urn:mozilla:install-manifest"
em:id="zoteroscholarcitations@beloglazov.info"
em:name="Zotero Scholar Citations"
em:version="1.5"
em:type="2"
em:version="1.6"
em:type="2"
em:creator="Anton Beloglazov"
em:description="Zotero plugin for auto-fetching numbers of citations from Google Scholar"
em:homepageURL="http://beloglazov.info">
<em:targetApplication RDF:resource="rdf:#$x61SL3"/>
<em:type>2</em:type>
<em:type>2</em:type>
</RDF:Description>
</RDF:RDF>

0 comments on commit 039d117

Please sign in to comment.