From d1ead7313cf78581e31c4a210f01709ff228fdb6 Mon Sep 17 00:00:00 2001 From: Juan Romay Sieira Date: Tue, 9 Feb 2016 17:39:32 +0100 Subject: [PATCH] Bug 11937 - opac link doesn't open in new window Signed-off-by: Juan Romay Sieira Patch works as expected. From a biblio detail page, the link 'OPAC view: Open in new window' opens a new browser window. Signed-off-by: Marc Veron Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- koha-tmpl/intranet-tmpl/js/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/js/browser.js b/koha-tmpl/intranet-tmpl/js/browser.js index 9f5a1ac139..1557243fc7 100644 --- a/koha-tmpl/intranet-tmpl/js/browser.js +++ b/koha-tmpl/intranet-tmpl/js/browser.js @@ -111,7 +111,7 @@ KOHA.browser = function (searchid, biblionumber) { ev.preventDefault(); browseRecords(1); }); - $('a[href*="biblionumber="]').click(function (ev) { + $('a[href*="biblionumber="]').not('a[target="_blank"]').click(function (ev) { ev.preventDefault(); window.location = $(this).attr('href') + '&searchid=' + me.searchid; }); -- 2.39.5