Koha 3.16.2: open external link in a separate window
Hello Koha, I life in Germany and use Koha 3.16.2 in my private home. I have to link some additional informations from a wiki in the biblioitems. In this case I use the field "URL", but the weblink in this field opens (in OPAC and Admin) in the same browser tab. Is there a possibility to open a external weblink in a biblioitem in a separate browser tab? Thanks for this usefull programm, Koha! Sebastian ___ mailto: sebastian.krieg@tuz-eisenach.de
On 28 July 2014 11:22:12 CEST, "sebastian.krieg@tuz-eisenach.de" <sebastian.krieg@tuz-eisenach.de> wrote:
Is there a possibility to open a external weblink in a biblioitem in a separate browser tab?
Right click (or long click or whatever) and pick "open in new window". You can probably force it with scripts, but allowing users to control their browsers is cooler. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
On Wed, Jul 30, 2014 at 1:42 PM, MJ Ray <mjr@phonecoop.coop> wrote:
Is there a possibility to open a external weblink in a biblioitem in a separate browser tab?
Right click (or long click or whatever) and pick "open in new window".
I agree with MJ that this should be a user choice, but someone disagreed enough that Koha has a system preference for this: OPACURLOpenInNewWindow. I believe turning that on enables the behavior you want in the OPAC at least. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
On Mon, Jul 28, 2014 at 6:22 AM, sebastian.krieg@tuz-eisenach.de < sebastian.krieg@tuz-eisenach.de> wrote:
Hello Koha,
I life in Germany and use Koha 3.16.2 in my private home. I have to link some additional informations from a wiki in the biblioitems. In this case I use the field "URL", but the weblink in this field opens (in OPAC and Admin) in the same browser tab.
What do u mean by "field URL"? Are you talking about MARC21's 856$u? Is there a possibility to open a external weblink in a biblioitem in a
separate browser tab?
If that was the case you could add this to intranetuserjs and opacuserjs $('#results_summary online_resources > a').attr("target","_blank"); -- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
Hello, no I don't mean the field in the MARC-Record. Based of the MARC-Record you have a Biblioitem-Record for each item. In this Record I mean the field "u - URL" from "cgi-bin/koha/cataloguing/additem.pl" (c. 978). The HTML-Output yout get in "cgi-bin/koha/opac-detail.pl?biblionumber=4&query_desc=kw%2Cwrdl%3A%20[SEARCH TERM]" (c. 797) is made by Koha. I didn't found the place where I can add the phrase "target=_blank" to this tag. Could this parameter (target=_blank) an option in the global system parameters? I hope I'm understandable... Thanks Sebastian
Tomas Cohen Arazi <tomascohen@gmail.com> hat am 31. Juli 2014 um 01:50 geschrieben:
On Mon, Jul 28, 2014 at 6:22 AM, sebastian.krieg@tuz-eisenach.de < sebastian.krieg@tuz-eisenach.de> wrote:
Hello Koha,
I life in Germany and use Koha 3.16.2 in my private home. I have to link some additional informations from a wiki in the biblioitems. In this case I use the field "URL", but the weblink in this field opens (in OPAC and Admin) in the same browser tab.
What do u mean by "field URL"? Are you talking about MARC21's 856$u?
Is there a possibility to open a external weblink in a biblioitem in a
separate browser tab?
If that was the case you could add this to intranetuserjs and opacuserjs
$('#results_summary online_resources > a').attr("target","_blank");
-- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
mailto: sebastian.krieg@tuz-eisenach.de
I think what you want is: http://manual.koha-community.org/3.16/en/administration.html#OPACURLOpenInNe... which is only for the OPAC, but is at least a start. Nicole
participants (5)
-
MJ Ray -
Nicole Engard -
Owen Leonard -
sebastian.krieg@tuz-eisenach.de -
Tomas Cohen Arazi