Bugzilla – Attachment 116068 Details for
Bug 27571
"Add to lists" on MARC and ISBD view of OPAC detail page doesn't open in new window
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27571: "Add to lists" on MARC and ISBD view of OPAC detail page doesn't open in new window
Bug-27571-Add-to-lists-on-MARC-and-ISBD-view-of-OP.patch (text/plain), 1.71 KB, created by
Lucas Gass (lukeg)
on 2021-01-29 18:17:13 UTC
(
hide
)
Description:
Bug 27571: "Add to lists" on MARC and ISBD view of OPAC detail page doesn't open in new window
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-01-29 18:17:13 UTC
Size:
1.71 KB
patch
obsolete
>From cd9b770265ed83c1312cb7e4622d91797858b54b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 29 Jan 2021 13:19:12 +0000 >Subject: [PATCH] Bug 27571: "Add to lists" on MARC and ISBD view of OPAC > detail page doesn't open in new window > >This page corrects the global click handler in the OPAC so that all >"addtoshelf" links will work correctly to trigger the popup window for >adding titles to a list. > >To test, apply the patch and test the process of adding a title to a >list in the OPAC from various places: > >- Search results >- Bibliographic detail page (normal) >- Bibliographic detail page (MARC view) >- Bibliographic detail page (ISBD view) > >Test both adding to an existing list and adding to a new list. >Everything should work correctly. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index 03372af8d1..c103f0ec4c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -223,9 +223,9 @@ $.widget.bridge('uitooltip', $.ui.tooltip); > window.print(); > return false; > }); >- $("#ulactioncontainer > ul > li > a.addtoshelf").on("click",function(){ >- Dopop('opac-addbybiblionumber.pl?biblionumber=[% biblionumber | uri %]'); >- return false; >+ $(".addtoshelf").on("click",function(e){ >+ e.preventDefault(); >+ Dopop( this.href ); > }); > $("body").on("click", ".addtocart", function(e){ > e.preventDefault(); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27571
:
116027
|
116068
|
116092