|
9 | 9 | "inRepository": true,
|
10 | 10 | "translatorType": 4,
|
11 | 11 | "browserSupport": "gcsibv",
|
12 |
| - "lastUpdated": "2014-04-03 18:58:24" |
| 12 | + "lastUpdated": "2014-04-04 10:16:45" |
13 | 13 | }
|
14 | 14 |
|
15 | 15 | /*
|
@@ -49,16 +49,16 @@ function detectWeb(doc, url) {
|
49 | 49 | else if (doc.evaluate(spiegel_article_XPath, doc, null, XPathResult.ANY_TYPE, null).iterateNext() ){
|
50 | 50 | //Zotero.debug("newspaperArticle");
|
51 | 51 | 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/)){ |
53 | 53 | //Zotero.debug("multiple");
|
54 | 54 | 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/)){ |
56 | 56 | //Zotero.debug("multiple");
|
57 | 57 | 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/)){ |
59 | 59 | //Zotero.debug("multiple");
|
60 | 60 | 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/)){ |
62 | 62 | //Zotero.debug("multiple");
|
63 | 63 | return "multiple";
|
64 | 64 | }
|
@@ -193,16 +193,16 @@ function doWeb(doc, url) {
|
193 | 193 | if (detectWeb(doc, url) == "multiple") {
|
194 | 194 | var items = new Object();
|
195 | 195 |
|
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)/)){ |
197 | 197 | 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)/)){ |
199 | 199 | var titles = doc.evaluate(".//div[contains(@class, 'teaser')]/h2/a", doc, null, XPathResult.ANY_TYPE, null);
|
200 | 200 | }
|
201 | 201 |
|
202 | 202 | var next_title;
|
203 | 203 | while (next_title = titles.iterateNext()) {
|
204 | 204 | //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\//) ) { |
206 | 206 | items[next_title.href] = Zotero.Utilities.trim(next_title.textContent);
|
207 | 207 | }
|
208 | 208 | }
|
|
0 commit comments