Skip to content

Commit

Permalink
v0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
coronin committed Dec 31, 2011
1 parent 7f4a4c9 commit 0c84144
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>0.7</string>
<string>0.7.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>Chrome</key>
Expand Down
Binary file added archive_old/thepaperlink-v071.safariextz
Binary file not shown.
13 changes: 7 additions & 6 deletions global.html
Expand Up @@ -109,6 +109,7 @@
pubmeder_email = safari.extension.settings.pubmeder_email,
pubmeder_ok = 0,
p = safari.extension.settings.ezproxy_prefix || '',
oauth_status = safari.extension.settings.oauth_status || '',
cloud_op = '',
base_uri;
if ((pubmeder_apikey !== undefined) && (pubmeder_email !== undefined)) {
Expand All @@ -117,16 +118,16 @@
if (p === 'http://a.b.c/d?url=') {
p = '';
}
if (safari.extension.settings.oauth_status.indexOf('mendeley') > -1) {
if (oauth_status.indexOf('mendeley') > -1) {
cloud_op += 'm';
}
if (safari.extension.settings.oauth_status.indexOf('facebook') > -1) {
if (oauth_status.indexOf('facebook') > -1) {
cloud_op += 'f';
}
if (safari.extension.settings.oauth_status.indexOf('dropbox') > -1) {
if (oauth_status.indexOf('dropbox') > -1) {
cloud_op += 'd';
}
if (safari.extension.settings.oauth_status.indexOf('douban') > -1) {
if (oauth_status.indexOf('douban') > -1) {
cloud_op += 'b';
}
if (apikey === undefined) {
Expand Down Expand Up @@ -245,13 +246,13 @@


if (safari.extension.settings.tab_open_if_no_apikey && (!safari.extension.settings.pubmeder_apikey || !safari.extension.settings.pubmeder_email)) {
alert('to bookmark references into your personal account, please generate the apikey on the following page');
alert('to bookmark references into your personal account,\nplease generate the apikey at www.pubmeder.com');
var tab = safari.application.activeBrowserWindow.openTab();
tab.url = 'http://www.pubmeder.com/registration';
}

if (safari.extension.settings.tab_open_if_no_apikey && !safari.extension.settings.thepaperlink_apikey) {
alert('a temporary apikey is used to access "the Paper Link"; please get your own apikey on the following page');
alert('to accelerate your access speed to "the Paper Link",\nplease obtain your own apikey at www.thepaperlink.com');
var tab = safari.application.activeBrowserWindow.openTab();
tab.url = 'http://www.thepaperlink.com/reg';
}
Expand Down

0 comments on commit 0c84144

Please sign in to comment.