Hi, you can see the script working here http://clavius.tij.uia.mx
Adalid Ortiz > >Subject: Re: [Koha] Linking the bibliographic record to Wikipedia > From: Stefano Bargioni <bargi...@pusc.it> > Date: Tue, 11 Feb 2014 15:42:31 +0100 > To: koha@lists.katipo.co.nz > >Try this script in opac-detail.pl, following >http://wiki.koha-community.org/wiki/JQuery_Library: > >var names = $('h5.author a').not('.authlink'); >for (var i=0; i < names.length; i++) { > var name_string = $(names[i]).text(); // mostly surname, name > var fs = name_string.split(', '); > var H = new Array; > H.push(' <span class="W_link">'); > H.push('<a target="_blank" > href="http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search='); > H.push(encodeURIComponent(fs[1]+' '+fs[0])); > H.push('">[W]</a>'); > H.push('</span>'); > $(names[i]).after(H.join('')); >}; > >It adds a link to the right of each name. Links are searches on Wikipedia, but >if the search is exact, W redirects the browser to the article. >Change [W] with an icon of your choice. >HTH. Stefano > >On 09/feb/2014, Haik Zargaryan wrote: > >> Dear list, >> >> I know that koha has a feature to link the biblio record to the authority >> record by creating a "magnifying glass" icon near the author name. ?Once you >> click the icon, which is actually a link, the authority record is opened. >> Furthermore, you can link the authority record to Wikipedia. >> >> I would like to know whether koha has a feature to add an icon (similar o >> the aforementioned one) that links the bibliographic record's authot to the >> respective Wikipedia article. ?If no, are there plans to develop such a >> feature in the future releases? >> >> Thanks in advance, >> haik. > >_______________________________________________ >Koha mailing list http://koha-community.org >Koha@lists.katipo.co.nz >http://lists.katipo.co.nz/mailman/listinfo/koha >-- >Este correo electronico puede contener informacion confidencial y >privilegiada, por lo que se prohibe el uso, reproduccion, retransmision o >divulgacion no autorizada, parcial o total, de su contenido. Si usted no es el >destinatario del presente correo, por favor notifiquelo al remitente mediante >reenvio a su correo electronico y borrelo de inmediato. Para conocer el aviso >de privacidad le pedimos acceder a la siguiente liga: >http://www.iberotijuana.edu.mx/?doc=/avisoprivacidad/index.html >-- >Los acentos han sido removidos intencionalmente para facilitar la lectura del >mensaje independiente a la codificacion del mismo. -- Este correo electronico puede contener informacion confidencial y privilegiada, por lo que se prohibe el uso, reproduccion, retransmision o divulgacion no autorizada, parcial o total, de su contenido. Si usted no es el destinatario del presente correo, por favor notifiquelo al remitente mediante reenvio a su correo electronico y borrelo de inmediato. Para conocer el aviso de privacidad le pedimos acceder a la siguiente liga: http://www.iberotijuana.edu.mx/?doc=/avisoprivacidad/index.html -- Los acentos han sido removidos intencionalmente para facilitar la lectura del mensaje independiente a la codificacion del mismo. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha