Index: trunk/tools/viaf/viaf.js |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * and fetch available corresponding names from the Toolserver. |
5 | 5 | ***/ |
6 | 6 | |
7 | | -var VERSION = "1.19 201205170830"; // bookmarklet version tested with Firefox 12, IE8.0, Chrome |
| 7 | +var VERSION = "1.20 201205200730"; // bookmarklet version tested with Firefox 12, IE8.0, Chrome |
8 | 8 | |
9 | 9 | /*** |
10 | 10 | * Copyright (c) 2011-2012 T. Gries |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | * 20120508 new url BVB, new links GWP site search wikipedia |
84 | 84 | * 20120515 bugtracker component "VIAF" created under products "Tools" |
85 | 85 | * https://bugzilla.wikimedia.org/enter_bug.cgi?product=Tools&component=VIAF |
86 | | - * 20120517 1.17 fix for bug36879 |
87 | | - * 1.18 fix for bug36877 |
88 | | - * 1.19 fix for bug36887 |
89 | | - * |
| 86 | + * 20120517 1.17 fix bug36879 |
| 87 | + * 1.18 fix bug36877 |
| 88 | + * 1.19 fix bug36887 |
| 89 | + * 20120520 1.20 fix bug36888 |
90 | 90 | ***/ |
91 | 91 | |
92 | 92 | // wrapper -- see http://www.mediawiki.org/wiki/JQuery |
— | — | @@ -391,7 +391,7 @@ |
392 | 392 | if ( $this.find(".pnd").length != 0 ) return; // in PASS 2, skip all entries which have this attribute from PASS 1 |
393 | 393 | var url = $this.attr("href"); |
394 | 394 | /* VIAF */ |
395 | | - var magicUrlRegExp = new RegExp( /(\.\.[\/-]\d{5,}|http:\/\/viaf\.org\/(viaf\/)?(\d{5,})|http:\/\/.+\.librarything.de\/commonknowledge\/search.php?f=13&exact=1&q=VIAF%3A\d{5,})/gi ); |
| 395 | + var magicUrlRegExp = new RegExp( /(\.\.[\/-]\d{5,}|http:\/\/viaf\.org\/(viaf\/)?(\d{5,})|http:\/\/.+\.librarything.de\/commonknowledge\/search.php?f=13&exact=1&q=VIAF%3A\d{5,}|identities\/viaf-\d{5,})/gi); |
396 | 396 | if ( typeof url != "undefined" && url.match( magicUrlRegExp ) ) { |
397 | 397 | if ( markUrlDetectedItems ) $this.css( markUrlDetectedItemsCSS ); |
398 | 398 | var viaf = RegExp.$1.match( /\d{5,}/i ); |
Index: trunk/tools/viaf/viaf.bookmarklet.js |
— | — | @@ -181,9 +181,9 @@ |
182 | 182 | jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', |
183 | 183 | ready: function ($) { |
184 | 184 | |
185 | | - var VERSION="1.19 201205170830"; |
| 185 | + var VERSION="1.20 201205200730"; |
186 | 186 | var debug=0; |
187 | | - var showSummaryBox=false;var showAllNames=false;var markUrlDetectedItems=true;var markUrlDetectedItemsCSS={"borderBottom":"1px orangered dotted"};var markNamesFromServer={"background":"magenta","color":"white","font-weight":"bold"};var maxNumbers=30;function numSort(a,b){return(a-b)};function dump(arr,depth){var cr="\n";var dumped_text="";if(!depth)depth=0;var depth_padding="";for(var j=0;j<depth+1;j++){depth_padding+=" "}if(typeof(arr)=='object'){for(var item in arr){var value=arr[item];if(typeof(value)=='object'){dumped_text+=depth_padding+"'"+item+"' ..."+cr;dumped_text+=dump(value,depth+1)}else{dumped_text+=depth_padding+"'"+item+"' => \""+value+"\""+cr}}}else{dumped_text="===>"+arr+"<===("+typeof(arr)+")"}if(dumped_text==''){dumped_text="no results"}return dumped_text}var viaf=Array();var pnd=Array();var out_js=Array();var output='';var nbsp="<span> </span>";function numberToNames(items){if(items.length==0)return;var $spinner=$('<img src="data:image/x-icon;base64,R0lGODlhRgBGAKUAAAT+9IT+/ET+9MT+/CT+9GT+/KT+/OT+/FT+9DT+9BT+9JT+/Ez+9NT+/Cz+9HT+/LT+/PT+/Fz+/Dz+9Az+9Iz+/ET+/Mz+/CT+/Gz+/Kz+/Oz+/FT+/Bz+9Jz+/Ez+/Nz+/Cz+/Hz+/Lz+/Pz+/Dz+/P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ALwIcaP3MAEvyDogEESkUqpTwQePKlHwdTRCxIxI1C/oWcIhg0KGkzEYIHOSvcUkRgpRQRBzo67NPBApUHGIh5yNjkAcF37yBSESZKAFIqDsBWmnDsqYGesxhQEZHV0jsDVTREEIVxyoOKJh18AEE0AtclIgyIOqrnZMxTBiRQoOCNygdmtgCwnTKAnB8ImUSswxDgsEQJlSjIlaK40gJ5UE0noSuqsqEKPPuE8KLTs6wMTxHxs+oFViW8AF16BkC8i3FFHp4qV2SbS2vPyA15yA0A+FxX0irhlOJgOQCxOR0ceCZihCJZzaEwECXhbPAJjgiZ0DDM5sEpGjQ0TQerTWHBVyU4gJQF7wEQgVMiheKabK5I2AcBILhXCQYU/hoRTWZ+JNCWFBnA5ZEfGXRoBAMn+aRiEfyllkgHIwIkFVPx3cZdIqBZ4QGIfkRgXxTglKPIBBlo8CIRD/RXyQhDilSARX5MAAImU7xlHgAj1OhEZwXFsoGCLz6AWoMODrDkA3v5RgwFCaQIhQVE8dOBIyqKsF1RJ9YSQQVYivRjQQQUMMABd5yRhAYETUUVAg4omdN0hG5QAAgBLBDlPHUZeSEIj1yBFUomWpIjERYIOI0EgyypUacyKtJARiJISAsBGFiABxcPBNBQTdxshoSWFETgQaBfPGDABDuCtRUSB0gAAZlk0LNMmH0I6YqkkYgQgmRb0qLAbpE0IYIFMBgQ5Wk85TqhUAMSTKCqAma1a8gDGtwzwL4MfMCtvQAHLPDABBds8MEIJ6zwwlQEAQA7">');$($spinner).css({"position":"fixed","top":"50%","left":"50%","display":"none"}).attr("id","spinner");$("body").append($spinner);$("#spinner").fadeIn(1000);var items_str=JSON.stringify(items);if(debug&1)output="sent to server:\n"+items_str;$.ajax({type:"GET",url:"//toolserver.org/~apper/pd/x.php",data:"callback=?&format=json&data=name&for="+items_str,dataType:"jsonp",success:function(data,textStatus,xhr){$("#spinner").hide();cb_updateFromServer(data)}})}function cb_updateFromServer(data_js){if(debug&2)output+="\n\nreceived from server:\n"+data;if(debug&4)output+=dump(data_js);var names,numType,number;for(record_nr in data_js){switch(true){case(typeof data_js[record_nr]['viaf']!="undefined"):numType="viaf";number=data_js[record_nr]['viaf'][0];break;case(typeof data_js[record_nr]['pnd']!="undefined"):numType="pnd";number=data_js[record_nr]['pnd'][0];break;default:numType="";number=-1}names="";if(typeof data_js[record_nr]['names']!="undefined"){for(name_j in data_js[record_nr]['names']){names+=data_js[record_nr]['names'][name_j]['name']+" "}var nameString=(showAllNames)?names:data_js[record_nr]['names'][0]['name'];$("."+numType+"-"+number).text(" "+nameString+" ").css(markNamesFromServer).after(nbsp).before(nbsp).wrap('<a href="https://www.mediawiki.org//toolserver.org/~apper/pd/person/'+numType+'-redirect/de/'+number+'#normdaten" title="de.Wikipedia Normdaten"></a>')}}if((debug&8)&&(names.length>0)){output+="\n\n"+names}if(debug&(8+2+1)){alert(output)}}function doAnyOtherBusiness(numberType,number){if(numberType=="viaf"){if(viaf.indexOf(number)==-1){viaf.push(number);out_js.push({"viaf":[number]})}}else{if(pnd.indexOf(number)==-1){pnd.push(number);out_js.push({"pnd":[number]})}}}if($(document).attr("viaf-done")==VERSION){alert("VIAF script version "+VERSION+":\n\nINFO -- Nothing to do. This page has already been processed.");return}else{$(document).attr("viaf-done",VERSION)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length>>>0;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return-1}}$("body,*:not(textarea)").replaceText(/(viaf[1-9]?)\s*(-|%2D|:|\/|%2B|%3A|%2F|\s|ID:|=|%3D|\||%7C)+\s*(\d{5,})/gi,"<span class='viaf viaf-in-text' viaf='$3'>$1$2$3</span>").replaceText(/([pg]nd[1-9x-]?|dnb)\s*(-|%2D|:|\/|%2B|%3A|%2F|\s|ID:|=|%3D|\||%7C)+\s*([0-9-]{5,}x?)/gi,function(s0,s1,s2,s3){s3=s3.toUpperCase();return"<span class='pnd pnd-in-text' pnd='"+s3+"'>"+s1+s2+s3+"</span>"});$("a").each(function(){var $this=$(this);if($this.find(".viaf").length!=0)return;if($this.find(".pnd").length!=0)return;var url=$this.attr("href");var magicUrlRegExp=new RegExp(/(\.\.[\/-]\d{5,}|http:\/\/viaf\.org\/(viaf\/)?(\d{5,})|http:\/\/.+\.librarything.de\/commonknowledge\/search.php?f=13&exact=1&q=VIAF%3A\d{5,})/gi);if(typeof url!="undefined"&&url.match(magicUrlRegExp)){if(markUrlDetectedItems)$this.css(markUrlDetectedItemsCSS);var viaf=RegExp.$1.match(/\d{5,}/i);$this.after($("<span class='viaf viaf-in-url' viaf='"+viaf+"'> "+viaf+"</span>"))};var magicUrlRegExp=new RegExp(/(([gp]nd.{0,30}|woe)(-|%2D|\?|:|=|\/|%7C|%2B|%3A|%2F|\s|%3D|\||id:|id=|)[\dx-]{5,})/gi);if(typeof url!="undefined"&&url.match(magicUrlRegExp)){if(markUrlDetectedItems)$this.css(markUrlDetectedItemsCSS);var pnd=RegExp.$1.match(/\d+[\dx-]{4,}/i);$this.after($("<span class='pnd pnd-in-url' pnd='"+pnd+"'> "+pnd+"</span>"))}});$(".viaf").each(function(){var $this=$(this);var viaf=$this.attr("viaf");var newLink=new Array();newLink.unshift($("<span> </span><a href='http://viaf.org/viaf/"+viaf+"/' title='VIAF.org'><span class='addedlink viaf' viaf='"+viaf+"'>VIAF</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.de/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (Deutsch)'><span class='addedlink viaf' viaf='"+viaf+"'>LT de</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (English)'><span class='addedlink viaf' viaf='"+viaf+"'>en</span></a>"));newLink.unshift($("<span> </span><a href='http://ru.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (по русский)'><span class='addedlink viaf' viaf='"+viaf+"'>ru</span></a>"));newLink.unshift($("<span> </span><a href='http://epo.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing-o (esperantlingve)'><span class='addedlink viaf' viaf='"+viaf+"'>epo</span></a>"));newLink.unshift($("<span> </span><a href='//toolserver.org/%7Eapper/pd/person/viaf/"+viaf+"#' title='toolserver.org VIAF link'><span class='addedlink viaf' viaf='"+viaf+"'>TS</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=vIAf+AND+\""+viaf+"\"&spell=0' title='Google VIAF search'><span class='addedlink viaf' viaf='"+viaf+"'>G</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=site:wikipedia.org+vIAf+AND+\""+viaf+"\"&spell=0' title='Google VIAF search'><span class='addedlink viaf' viaf='"+viaf+"'>GWP</span></a>"));newLink.unshift($("<span class='viaf-"+viaf+"'></span>"));for(var i=0;i<newLink.length;i+=1){$this.after(newLink[i])}doAnyOtherBusiness("viaf",viaf)});$(".pnd").each(function(){var $this=$(this);var pnd=$this.attr("pnd");var newLink=new Array();newLink.unshift($("<span> </span><a href='http://d-nb.info/gnd/"+pnd+"/' title='Deutsche Nationalbibliothek'><span class='addedlink pnd' pnd='"+pnd+"'>DNB</span></a>"));newLink.unshift($("<span> </span><a href='https://opacplus.bib-bvb.de/TouchPoint_touchpoint/search.do?methodToCall=quickSearch&Kateg=100&Content=\""+pnd+"\"#' title='Bibliotheksverbund Bayern'><span class='addedlink pnd' pnd='"+pnd+"'>BVB</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.de/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (Deutsch)'><span class='addedlink pnd' pnd='"+pnd+"'>LT de</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (English)'><span class='addedlink pnd' pnd='"+pnd+"'>en</span></a>"));newLink.unshift($("<span> </span><a href='http://ru.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (по русский)'><span class='addedlink pnd' pnd='"+pnd+"'>ru</span></a>"));newLink.unshift($("<span> </span><a href='http://epo.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing-o (esperantlingve)'><span class='addedlink pnd' pnd='"+pnd+"'>epo</span></a>"));newLink.unshift($("<span> </span><a href='//toolserver.org/~apper/pd/person/pnd/"+pnd+"#' title='toolserver.org PND/GND link'><span class='addedlink pnd' pnd='"+pnd+"'>TS</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=(gNd+OR+pNd+OR+gKd+OR+sWd)+AND+\""+pnd+"\"&spell=0' title='Google PND/GND search'><span class='addedlink pnd' pnd='"+viaf+"'>G</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=site:wikipedia.org+(gNd+OR+pNd+OR+gKd+OR+sWd)+AND+\""+pnd+"\"&spell=0' title='Google PND/GND search'><span class='addedlink pnd' pnd='"+viaf+"'>GWP</span></a>"));newLink.unshift($("<span class='pnd-"+pnd+"'></span>"));for(var i=0;i<newLink.length;i+=1){$this.after(newLink[i])}doAnyOtherBusiness("pnd",pnd)});$(".viaf").css({"background":"cyan","color":"black"});$(".pnd").css({"background":"cyan","color":"black"});$(".viaf-in-url").css("border-bottom","1px dotted black");$(".pnd-in-url").css("border-bottom","1px dotted black");$(".show-summary-checkbox").click(function(e){$this=$(this);if($this.attr("checked")=='checked'){$(".show-summary-checkbox").attr("checked",true)}else{$(".show-summary-checkbox").removeAttr("checked")}});$(".addedlink").css({"background":"yellow","color":"black"});numberToNames(out_js);if(viaf.length>0){viaf.sort(numSort);var x="";for(var i=0;i<Math.min(viaf.length,maxNumbers);i++){x+=viaf[i]+"\n"}if(viaf.length>maxNumbers)x+="...\n("+maxNumbers+" of "+viaf.length+" distinct numbers are shown.)";var pluralS=(viaf.length>1)?"s":"";var viafSummary="The present page contains "+viaf.length+" distinct VIAF number"+pluralS+" in text or links.\nModify the script if you want to remove the alert box permanently.\n\n"+x}if(pnd.length>0){pnd.sort(numSort);var x="";for(var i=0;i<Math.min(pnd.length,maxNumbers);i++){x+=pnd[i]+"\n"}if(pnd.length>maxNumbers)x+="...\n("+maxNumbers+" of "+pnd.length+" distinct numbers are shown.)";var pluralS=(pnd.length>1)?"s":"";var pndSummary="The present page contains "+pnd.length+" distinct PND number"+pluralS+" in text or links.\n\n"+x;if(showSummaryBox){alert(viafSummary+"\n"+pndSummary)}}; |
| 187 | + var showSummaryBox=false;var showAllNames=false;var markUrlDetectedItems=true;var markUrlDetectedItemsCSS={"borderBottom":"1px orangered dotted"};var markNamesFromServer={"background":"magenta","color":"white","font-weight":"bold"};var maxNumbers=30;function numSort(a,b){return(a-b)};function dump(arr,depth){var cr="\n";var dumped_text="";if(!depth)depth=0;var depth_padding="";for(var j=0;j<depth+1;j++){depth_padding+=" "}if(typeof(arr)=='object'){for(var item in arr){var value=arr[item];if(typeof(value)=='object'){dumped_text+=depth_padding+"'"+item+"' ..."+cr;dumped_text+=dump(value,depth+1)}else{dumped_text+=depth_padding+"'"+item+"' => \""+value+"\""+cr}}}else{dumped_text="===>"+arr+"<===("+typeof(arr)+")"}if(dumped_text==''){dumped_text="no results"}return dumped_text}var viaf=Array();var pnd=Array();var out_js=Array();var output='';var nbsp="<span> </span>";function numberToNames(items){if(items.length==0)return;var $spinner=$('<img src="data:image/x-icon;base64,R0lGODlhRgBGAKUAAAT+9IT+/ET+9MT+/CT+9GT+/KT+/OT+/FT+9DT+9BT+9JT+/Ez+9NT+/Cz+9HT+/LT+/PT+/Fz+/Dz+9Az+9Iz+/ET+/Mz+/CT+/Gz+/Kz+/Oz+/F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q1cIgMFlLEJnkQiAYvTxH0TH1mnvbSVA0kMHQrcs9S1fQnYVQ8DDRfjlQXPQyIfHwwWGRgR75UlulGnMpToUO2PgnRMToWAwEwUBRDylDzw4KsavwoRkzwIISBWIgWdntALwIcaP3MAEvyDogEESkUqpTwQePKlHwdTRCxIxI1C/oWcIhg0KGkzEYIHOSvcUkRgpRQRBzo67NPBApUHGIh5yNjkAcF37yBSESZKAFIqDsBWmnDsqYGesxhQEZHV0jsDVTREEIVxyoOKJh18AEE0AtclIgyIOqrnZMxTBiRQoOCNygdmtgCwnTKAnB8ImUSswxDgsEQJlSjIlaK40gJ5UE0noSuqsqEKPPuE8KLTs6wMTxHxs+oFViW8AF16BkC8i3FFHp4qV2SbS2vPyA15yA0A+FxX0irhlOJgOQCxOR0ceCZihCJZzaEwECXhbPAJjgiZ0DDM5sEpGjQ0TQerTWHBVyU4gJQF7wEQgVMiheKabK5I2AcBILhXCQYU/hoRTWZ+JNCWFBnA5ZEfGXRoBAMn+aRiEfyllkgHIwIkFVPx3cZdIqBZ4QGIfkRgXxTglKPIBBlo8CIRD/RXyQhDilSARX5MAAImU7xlHgAj1OhEZwXFsoGCLz6AWoMODrDkA3v5RgwFCaQIhQVE8dOBIyqKsF1RJ9YSQQVYivRjQQQUMMABd5yRhAYETUUVAg4omdN0hG5QAAgBLBDlPHUZeSEIj1yBFUomWpIjERYIOI0EgyypUacyKtJARiJISAsBGFiABxcPBNBQTdxshoSWFETgQaBfPGDABDuCtRUSB0gAAZlk0LNMmH0I6YqkkYgQgmRb0qLAbpE0IYIFMBgQ5Wk85TqhUAMSTKCqAma1a8gDGtwzwL4MfMCtvQAHLPDABBds8MEIJ6zwwlQEAQA7">');$($spinner).css({"position":"fixed","top":"50%","left":"50%","display":"none"}).attr("id","spinner");$("body").append($spinner);$("#spinner").fadeIn(1000);var items_str=JSON.stringify(items);if(debug&1)output="sent to server:\n"+items_str;$.ajax({type:"GET",url:"//toolserver.org/~apper/pd/x.php",data:"callback=?&format=json&data=name&for="+items_str,dataType:"jsonp",success:function(data,textStatus,xhr){$("#spinner").hide();cb_updateFromServer(data)}})}function cb_updateFromServer(data_js){if(debug&2)output+="\n\nreceived from server:\n"+data;if(debug&4)output+=dump(data_js);var names,numType,number;for(record_nr in data_js){switch(true){case(typeof data_js[record_nr]['viaf']!="undefined"):numType="viaf";number=data_js[record_nr]['viaf'][0];break;case(typeof data_js[record_nr]['pnd']!="undefined"):numType="pnd";number=data_js[record_nr]['pnd'][0];break;default:numType="";number=-1}names="";if(typeof data_js[record_nr]['names']!="undefined"){for(name_j in data_js[record_nr]['names']){names+=data_js[record_nr]['names'][name_j]['name']+" "}var nameString=(showAllNames)?names:data_js[record_nr]['names'][0]['name'];$("."+numType+"-"+number).text(" "+nameString+" ").css(markNamesFromServer).after(nbsp).before(nbsp).wrap('<a href="https://www.mediawiki.org//toolserver.org/~apper/pd/person/'+numType+'-redirect/de/'+number+'#normdaten" title="de.Wikipedia Normdaten"></a>')}}if((debug&8)&&(names.length>0)){output+="\n\n"+names}if(debug&(8+2+1)){alert(output)}}function doAnyOtherBusiness(numberType,number){if(numberType=="viaf"){if(viaf.indexOf(number)==-1){viaf.push(number);out_js.push({"viaf":[number]})}}else{if(pnd.indexOf(number)==-1){pnd.push(number);out_js.push({"pnd":[number]})}}}if($(document).attr("viaf-done")==VERSION){alert("VIAF script version "+VERSION+":\n\nINFO -- Nothing to do. This page has already been processed.");return}else{$(document).attr("viaf-done",VERSION)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length>>>0;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return-1}}$("body,*:not(textarea)").replaceText(/(viaf[1-9]?)\s*(-|%2D|:|\/|%2B|%3A|%2F|\s|ID:|=|%3D|\||%7C)+\s*(\d{5,})/gi,"<span class='viaf viaf-in-text' viaf='$3'>$1$2$3</span>").replaceText(/([pg]nd[1-9x-]?|dnb)\s*(-|%2D|:|\/|%2B|%3A|%2F|\s|ID:|=|%3D|\||%7C)+\s*([0-9-]{5,}x?)/gi,function(s0,s1,s2,s3){s3=s3.toUpperCase();return"<span class='pnd pnd-in-text' pnd='"+s3+"'>"+s1+s2+s3+"</span>"});$("a").each(function(){var $this=$(this);if($this.find(".viaf").length!=0)return;if($this.find(".pnd").length!=0)return;var url=$this.attr("href");var magicUrlRegExp=new RegExp(/(\.\.[\/-]\d{5,}|http:\/\/viaf\.org\/(viaf\/)?(\d{5,})|http:\/\/.+\.librarything.de\/commonknowledge\/search.php?f=13&exact=1&q=VIAF%3A\d{5,}|identities\/viaf-\d{5,})/gi);if(typeof url!="undefined"&&url.match(magicUrlRegExp)){if(markUrlDetectedItems)$this.css(markUrlDetectedItemsCSS);var viaf=RegExp.$1.match(/\d{5,}/i);$this.after($("<span class='viaf viaf-in-url' viaf='"+viaf+"'> "+viaf+"</span>"))};var magicUrlRegExp=new RegExp(/(([gp]nd.{0,30}|woe)(-|%2D|\?|:|=|\/|%7C|%2B|%3A|%2F|\s|%3D|\||id:|id=|)[\dx-]{5,})/gi);if(typeof url!="undefined"&&url.match(magicUrlRegExp)){if(markUrlDetectedItems)$this.css(markUrlDetectedItemsCSS);var pnd=RegExp.$1.match(/\d+[\dx-]{4,}/i);$this.after($("<span class='pnd pnd-in-url' pnd='"+pnd+"'> "+pnd+"</span>"))}});$(".viaf").each(function(){var $this=$(this);var viaf=$this.attr("viaf");var newLink=new Array();newLink.unshift($("<span> </span><a href='http://viaf.org/viaf/"+viaf+"/' title='VIAF.org'><span class='addedlink viaf' viaf='"+viaf+"'>VIAF</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.de/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (Deutsch)'><span class='addedlink viaf' viaf='"+viaf+"'>LT de</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (English)'><span class='addedlink viaf' viaf='"+viaf+"'>en</span></a>"));newLink.unshift($("<span> </span><a href='http://ru.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing (по русский)'><span class='addedlink viaf' viaf='"+viaf+"'>ru</span></a>"));newLink.unshift($("<span> </span><a href='http://epo.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+viaf+"#' title='LibraryThing-o (esperantlingve)'><span class='addedlink viaf' viaf='"+viaf+"'>epo</span></a>"));newLink.unshift($("<span> </span><a href='//toolserver.org/%7Eapper/pd/person/viaf/"+viaf+"#' title='toolserver.org VIAF link'><span class='addedlink viaf' viaf='"+viaf+"'>TS</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=vIAf+AND+\""+viaf+"\"&spell=0' title='Google VIAF search'><span class='addedlink viaf' viaf='"+viaf+"'>G</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=site:wikipedia.org+vIAf+AND+\""+viaf+"\"&spell=0' title='Google VIAF search'><span class='addedlink viaf' viaf='"+viaf+"'>GWP</span></a>"));newLink.unshift($("<span class='viaf-"+viaf+"'></span>"));for(var i=0;i<newLink.length;i+=1){$this.after(newLink[i])}doAnyOtherBusiness("viaf",viaf)});$(".pnd").each(function(){var $this=$(this);var pnd=$this.attr("pnd");var newLink=new Array();newLink.unshift($("<span> </span><a href='http://d-nb.info/gnd/"+pnd+"/' title='Deutsche Nationalbibliothek'><span class='addedlink pnd' pnd='"+pnd+"'>DNB</span></a>"));newLink.unshift($("<span> </span><a href='https://opacplus.bib-bvb.de/TouchPoint_touchpoint/search.do?methodToCall=quickSearch&Kateg=100&Content=\""+pnd+"\"#' title='Bibliotheksverbund Bayern'><span class='addedlink pnd' pnd='"+pnd+"'>BVB</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.de/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (Deutsch)'><span class='addedlink pnd' pnd='"+pnd+"'>LT de</span></a>"));newLink.unshift($("<span> </span><a href='http://www.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (English)'><span class='addedlink pnd' pnd='"+pnd+"'>en</span></a>"));newLink.unshift($("<span> </span><a href='http://ru.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing (по русский)'><span class='addedlink pnd' pnd='"+pnd+"'>ru</span></a>"));newLink.unshift($("<span> </span><a href='http://epo.librarything.com/commonknowledge/search.php?f=13&exact=0&q=%3A"+pnd+"#' title='LibraryThing-o (esperantlingve)'><span class='addedlink pnd' pnd='"+pnd+"'>epo</span></a>"));newLink.unshift($("<span> </span><a href='//toolserver.org/~apper/pd/person/pnd/"+pnd+"#' title='toolserver.org PND/GND link'><span class='addedlink pnd' pnd='"+pnd+"'>TS</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=(gNd+OR+pNd+OR+gKd+OR+sWd)+AND+\""+pnd+"\"&spell=0' title='Google PND/GND search'><span class='addedlink pnd' pnd='"+viaf+"'>G</span></a>"));newLink.unshift($("<span> </span><a href='https://encrypted.google.com/search?ie=utf-8&oe=utf-8&num=100<=1&oq=&q=site:wikipedia.org+(gNd+OR+pNd+OR+gKd+OR+sWd)+AND+\""+pnd+"\"&spell=0' title='Google PND/GND search'><span class='addedlink pnd' pnd='"+viaf+"'>GWP</span></a>"));newLink.unshift($("<span class='pnd-"+pnd+"'></span>"));for(var i=0;i<newLink.length;i+=1){$this.after(newLink[i])}doAnyOtherBusiness("pnd",pnd)});$(".viaf").css({"background":"cyan","color":"black"});$(".pnd").css({"background":"cyan","color":"black"});$(".viaf-in-url").css("border-bottom","1px dotted black");$(".pnd-in-url").css("border-bottom","1px dotted black");$(".show-summary-checkbox").click(function(e){$this=$(this);if($this.attr("checked")=='checked'){$(".show-summary-checkbox").attr("checked",true)}else{$(".show-summary-checkbox").removeAttr("checked")}});$(".addedlink").css({"background":"yellow","color":"black"});numberToNames(out_js);if(viaf.length>0){viaf.sort(numSort);var x="";for(var i=0;i<Math.min(viaf.length,maxNumbers);i++){x+=viaf[i]+"\n"}if(viaf.length>maxNumbers)x+="...\n("+maxNumbers+" of "+viaf.length+" distinct numbers are shown.)";var pluralS=(viaf.length>1)?"s":"";var viafSummary="The present page contains "+viaf.length+" distinct VIAF number"+pluralS+" in text or links.\nModify the script if you want to remove the alert box permanently.\n\n"+x}if(pnd.length>0){pnd.sort(numSort);var x="";for(var i=0;i<Math.min(pnd.length,maxNumbers);i++){x+=pnd[i]+"\n"}if(pnd.length>maxNumbers)x+="...\n("+maxNumbers+" of "+pnd.length+" distinct numbers are shown.)";var pluralS=(pnd.length>1)?"s":"";var pndSummary="The present page contains "+pnd.length+" distinct PND number"+pluralS+" in text or links.\n\n"+x;if(showSummaryBox){alert(viafSummary+"\n"+pndSummary)}}; |
188 | 188 | |
189 | 189 | window.bookmarklet.die(); |
190 | 190 | } |