Bug 11937 - opac link doesn't open in new window

Signed-off-by: Juan Romay Sieira <juan.sieira@xercode.es>

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 <veron@veron.ch>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Juan Romay Sieira 2016-02-09 17:39:32 +01:00 committed by Brendan Gallagher
parent 4f9f596203
commit d1ead7313c

View file

@ -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;
});