Skip to content

Commit d25f2d4

Browse files
committed
fix remaining (and missed) instances of ^http: to ^https?
1 parent c08e17c commit d25f2d4

22 files changed

+187
-189
lines changed

BIBSYS.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
"translatorID": "ab961e61-2a8a-4be1-b8a3-044f20d52d78",
33
"label": "BIBSYS",
44
"creator": "Ramesh Srigiriraju",
5-
"target": "^http://ask\\.bibsys\\.no/ask/action",
5+
"target": "^https?://ask\\.bibsys\\.no/ask/action",
66
"minVersion": "1.0.0b4.r1",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2012-11-24 13:21:37"
12+
"lastUpdated": "2014-04-04 10:08:22"
1313
}
1414

1515
function detectWeb(doc, url) {
16-
var multireg=new RegExp("^http://ask\.bibsys\.no/ask/action/result");
16+
var multireg=new RegExp("^https?://ask\.bibsys\.no/ask/action/result");
1717
if(multireg.test(url))
1818
return "multiple";
19-
var singlereg=new RegExp("^http://ask\.bibsys\.no/ask/action/show");
19+
var singlereg=new RegExp("^https?://ask\.bibsys\.no/ask/action/show");
2020
if(singlereg.test(url))
2121
return "book";
2222
}
2323

2424
function doWeb(doc, url) {
25-
var multireg=new RegExp("http://ask\.bibsys\.no/ask/action/result");
25+
var multireg=new RegExp("https?://ask\.bibsys\.no/ask/action/result");
2626
if(multireg.test(url)) {
2727
var titlpath='//tr/td[@width="49%"][@align="left"][@valign="top"]/a/text()';
2828
var titles=doc.evaluate(titlpath, doc, null, XPathResult.ANY_TYPE, null);

BOCC.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2014-04-03 16:46:48"
12+
"lastUpdated": "2014-04-04 10:08:43"
1313
}
1414

1515
/* Translator for Biblioteca Online de Ciências da Comunicação (BOCC,
@@ -65,7 +65,7 @@ function doWeb(doc, url) {
6565
var urls = new Array();
6666
var bloco;
6767
var lines = new Array();
68-
var resite = /^http:\/\/[^\/]*bocc[^\/]*\/(?:_listas|_esp)/;
68+
var resite = /^https?:\/\/[^\/]*bocc[^\/]*\/(?:_listas|_esp)/;
6969
var site = resite.exec(url);
7070
site = site[0];
7171
site = site.replace("/_esp", "");

Gallica.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"translatorID": "58ab2618-4a25-4b9b-83a7-80cd0259f896",
33
"label": "Gallica",
44
"creator": "Sylvain Machefert",
5-
"target": "^http://gallica\\.bnf\\.fr",
5+
"target": "^https?://gallica\\.bnf\\.fr",
66
"minVersion": "1.0.0b3.r1",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2013-03-31 00:10:45"
12+
"lastUpdated": "2014-04-04 10:09:18"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -203,7 +203,7 @@ function scrapeGallica(doc, div, type, direct_url)
203203
{
204204
item.ISSN = temp;
205205
}
206-
else if (contenu.match(/^http:\/\//))
206+
else if (contenu.match(/^https?:\/\//))
207207
{
208208
// If identifier starts with http it is the url of the document
209209
item.url = contenu;

Le Monde Diplomatique_de.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2014-04-03 17:43:49"
12+
"lastUpdated": "2014-04-04 10:09:57"
1313
}
1414

1515
/*
@@ -36,7 +36,7 @@ http://www.monde-diplomatique.de/pm/.search?tx=Globalisierung
3636
*/
3737

3838
function detectWeb(doc, url) {
39-
if (url.match(/^http:\/\/www\.monde-diplomatique\.de\/pm\/\d\d\d\d\/\d\d/) ){
39+
if (url.match(/^https?:\/\/www\.monde-diplomatique\.de\/pm\/\d\d\d\d\/\d\d/) ){
4040
Zotero.debug("newspaperArticle");
4141
return "newspaperArticle";
4242
} else if (url.match(/search/) ) {

OpenJudis - Indian Supreme Court cases.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"translatorID": "fe39e97d-7397-4f3f-a5f3-396a1a79213c",
33
"label": "OpenJudis - Indian Supreme Court cases",
44
"creator": "Prashant Iyengar and Michael Berkowitz",
5-
"target": "http://(www.)?openarchive\\.in/(judis|newcases)",
5+
"target": "^https?://(www.)?openarchive\\.in/(judis|newcases)",
66
"minVersion": "1.0.0b4.r5",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2012-01-30 22:44:53"
12+
"lastUpdated": "2014-04-04 10:10:58"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -61,7 +61,7 @@ function regexMeta(stuff, item) {
6161
function doWeb(doc, url) {
6262
var arts = new Array();
6363
if (detectWeb(doc, url) == "multiple") {
64-
var items = Zotero.Utilities.getItemArray(doc, doc, "^http:\/\/openarchive\.in\/[^/]+\/[0-9]+.htm$");
64+
var items = Zotero.Utilities.getItemArray(doc, doc, "^https?:\/\/openarchive\.in\/[^/]+\/[0-9]+.htm$");
6565
items = Zotero.selectItems(items);
6666
for (var i in items) {
6767
arts.push(i);

Patents - USPTO.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2014-04-03 18:52:23"
12+
"lastUpdated": "2014-04-04 10:11:27"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -110,7 +110,7 @@ function doWeb(doc, url) {
110110
if(detectWeb(doc, url) == "patent") {
111111
scrape(doc);
112112
} else {
113-
var items = Zotero.Utilities.getItemArray(doc, doc, "^http://(patft|appft1)\.uspto\.gov/netacgi/nph-Parser.+");
113+
var items = Zotero.Utilities.getItemArray(doc, doc, "^https?://(patft|appft1)\.uspto\.gov/netacgi/nph-Parser.+");
114114
var uris = new Array();
115115
Zotero.selectItems(items, function (items) {
116116
if (!items) {

Radio Liberty.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"translatorID": "b1c90b99-2e1a-4374-a03b-92e45f1afc55",
33
"label": "Radio Free Europe / Radio Liberty",
44
"creator": "Avram Lyon",
5-
"target": "^https?://www\\.rferl\\.org/|^http://www\\.azatliq\\.org/|^http://www\\.azattyq\\.org/|^http://rus\\.azattyq\\.org/|^http://da\\.azadiradio\\.org/|^http://pa\\.azadiradio\\.org/|^http://www\\.azattyk\\.org/|^http://www\\.ozodi\\.org/|^http://www\\.ozodlik\\.org/|^http://www\\.evropaelire\\.org/|^http://www\\.slobodnaevropa\\.org/|^http://www\\.makdenes\\.org/|^http://www\\.iraqhurr\\.org/|^http://www\\.radiofarda\\.com/|^http://www\\.azatutyun\\.am/|^http://www\\.azadliq\\.org/|^http://www\\.svaboda\\.org/|^http://www\\.svoboda\\.org/|^http://www\\.tavisupleba\\.org/|^http://www\\.azathabar\\.com/|^http://www\\.svobodanews\\.ru/|^http://www\\.europalibera\\.org/|^http://www\\.radiosvoboda\\.org/",
5+
"target": "^https?://(www\\.rferl\\.org/|www\\.azatliq\\.org/|www\\.azattyq\\.org/|rus\\.azattyq\\.org/|da\\.azadiradio\\.org/|pa\\.azadiradio\\.org/|www\\.azattyk\\.org/|www\\.ozodi\\.org/|www\\.ozodlik\\.org/|www\\.evropaelire\\.org/|www\\.slobodnaevropa\\.org/|www\\.makdenes\\.org/|www\\.iraqhurr\\.org/|www\\.radiofarda\\.com/|www\\.azatutyun\\.am/|www\\.azadliq\\.org/|www\\.svaboda\\.org/|www\\.svoboda\\.org/|www\\.tavisupleba\\.org/|www\\.azathabar\\.com/|www\\.svobodanews\\.ru/|www\\.europalibera\\.org/|www\\.radiosvoboda\\.org/)",
66
"minVersion": "2.1.9",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsbv",
12-
"lastUpdated": "2014-04-03 18:55:22"
12+
"lastUpdated": "2014-04-04 10:15:37"
1313
}
1414

1515
/*
@@ -220,7 +220,7 @@ function scrape(doc, url){
220220

221221
function addAudio(text) {
222222
// http://realaudio.rferl.org/TB/2011/03/29/20110329-183936-TB-clip.mp3
223-
var audio = text.match(/http:\/\/(realaudio|audioarchive)\.rferl\.org[^"]*\.mp3/);
223+
var audio = text.match(/https?:\/\/(realaudio|audioarchive)\.rferl\.org[^"]*\.mp3/);
224224
if (audio) item.attachments.push({url:audio[0], mimeType:"application/octet-stream", title:"RFE/RL Audio"})
225225
item.complete();
226226
}

Spiegel Online.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2014-04-03 18:58:24"
12+
"lastUpdated": "2014-04-04 10:16:45"
1313
}
1414

1515
/*
@@ -49,16 +49,16 @@ function detectWeb(doc, url) {
4949
else if (doc.evaluate(spiegel_article_XPath, doc, null, XPathResult.ANY_TYPE, null).iterateNext() ){
5050
//Zotero.debug("newspaperArticle");
5151
return "newspaperArticle";
52-
} else if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/thema/)){
52+
} else if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/thema/)){
5353
//Zotero.debug("multiple");
5454
return "multiple";
55-
} else if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/suche/)){
55+
} else if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/suche/)){
5656
//Zotero.debug("multiple");
5757
return "multiple";
58-
} else if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/international\/search/)){
58+
} else if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/international\/search/)){
5959
//Zotero.debug("multiple");
6060
return "multiple";
61-
} else if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/international\/topic/)){
61+
} else if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/international\/topic/)){
6262
//Zotero.debug("multiple");
6363
return "multiple";
6464
}
@@ -193,16 +193,16 @@ function doWeb(doc, url) {
193193
if (detectWeb(doc, url) == "multiple") {
194194
var items = new Object();
195195

196-
if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/(suche|international\/search)/)){
196+
if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/(suche|international\/search)/)){
197197
var titles = doc.evaluate(".//div[@class='search-teaser']/a", doc, null, XPathResult.ANY_TYPE, null);
198-
} else if (doc.location.href.match(/^http\:\/\/www\.spiegel\.de\/(thema\/|international\/topic)/)){
198+
} else if (doc.location.href.match(/^https?\:\/\/www\.spiegel\.de\/(thema\/|international\/topic)/)){
199199
var titles = doc.evaluate(".//div[contains(@class, 'teaser')]/h2/a", doc, null, XPathResult.ANY_TYPE, null);
200200
}
201201

202202
var next_title;
203203
while (next_title = titles.iterateNext()) {
204204
//The search searches also manager-magazin.de, which won't work
205-
if (next_title.textContent != "mehr..." && next_title.href.match(/^http:\/\/www\.spiegel\.de\//) ) {
205+
if (next_title.textContent != "mehr..." && next_title.href.match(/^https?:\/\/www\.spiegel\.de\//) ) {
206206
items[next_title.href] = Zotero.Utilities.trim(next_title.textContent);
207207
}
208208
}

0 commit comments

Comments
 (0)