Bugzilla – Attachment 77684 Details for
Bug 21174
Change default behavior to open OPAC cart in one click
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21174: (alternate) Sysprefs to enable the opening of OPAC cart in one click
Bug-21174-alternate-Sysprefs-to-enable-the-opening.patch (text/plain), 3.69 KB, created by
Owen Leonard
on 2018-08-10 14:43:51 UTC
(
hide
)
Description:
Bug 21174: (alternate) Sysprefs to enable the opening of OPAC cart in one click
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-08-10 14:43:51 UTC
Size:
3.69 KB
patch
obsolete
>From 7a15b1e42415f798d0488e2f2cc125bfd59b01df Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 10 Aug 2018 14:33:21 +0000 >Subject: [PATCH] Bug 21174: (alternate) Sysprefs to enable the opening of OPAC > cart in one click > >This is an alternate patch which would replace the proposed changes to >masthead.inc, opac-bottom.inc, opac-basket.tt, and basket.js. > >This patch slightly changes the markup in masthead.inc so that the Cart >link doesn't try to interpret it as a dropdown trigger, and switches out >the ID attribute so that it triggers the right action from basket.js. >--- > .../opac-tmpl/bootstrap/en/includes/masthead.inc | 28 ++++++++++++++-------- > 1 file changed, 18 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 15d185f..52fc9ec 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -20,16 +20,24 @@ > [% END %] > <ul class="nav"> > [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %] >- <li class="dropdown"> >- <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button"> >- <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b> >- </a> >- <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu"> >- <li role="presentation"> >- <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a> >- </li> >- </ul> >- </li> >+ [% IF ( Koha.Preference('EnableOneClickToOpenCartPopup') == 1 ) %] >+ <li> >+ <a href="#" title="Collect items you are interested in" id="cartmenuitem" role="button"> >+ <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> >+ </a> >+ </li> >+ [% ELSE %] >+ <li class="dropdown"> >+ <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button"> >+ <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b> >+ </a> >+ <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu"> >+ <li role="presentation"> >+ <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a> >+ </li> >+ </ul> >+ </li> >+ [% END %] > [% END %] > [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %] > <li class="divider-vertical"></li> >-- >2.1.4
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 21174
:
77550
|
77642
|
77684
|
78006
|
78007
|
78008
|
78009
|
78010
|
79647
|
79714
|
79856
|
80293
|
80294
|
80295
|
80373
|
80374
|
80375