Bugzilla – Attachment 52285 Details for
Bug 16127
Add discharge menu item to patron toolbar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16127 - Add discharge menu item to patron toolbar
Bug-16127---Add-discharge-menu-item-to-patron-tool.patch (text/plain), 3.06 KB, created by
Jonathan Druart
on 2016-06-12 11:33:49 UTC
(
hide
)
Description:
Bug 16127 - Add discharge menu item to patron toolbar
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-06-12 11:33:49 UTC
Size:
3.06 KB
patch
obsolete
>From 8c5d7b9aa9bb964638bfd2a5efed7d9964e0718f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 31 May 2016 10:08:03 -0400 >Subject: [PATCH] Bug 16127 - Add discharge menu item to patron toolbar >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch changes the "Discharge" menu in the patron sidebar to read >"Discharges," and adds a "Discharge" menu item to the patron toolbar. > >This adds some redunancy, but fits with the pattern of including "views" >in the sidebar and "actions" in the menu. The discharge feature can be >thought of either way. > >To test you must have the 'useDischarge' system preference enabled. > >- View the detail page for any patron. >- Confirm that the sidebar menu reads "Discharges." >- Confirm that the "More" menu contains a "Discharge" link which works > correctly. > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index 9e4e704..a423844 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -103,7 +103,7 @@ > [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li> > [% END %] > [% IF CAN_user_borrowers && useDischarge %] >- [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li> >+ [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li> > [% END %] > </ul></div> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >index 9ecce10..b7e7178 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -183,6 +183,9 @@ function searchToHold(){ > [% ELSE %] > <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li> > [% END %] >+ [% IF CAN_user_borrowers && useDischarge %] >+ <li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li> >+ [% END %] > [% IF ( CAN_user_borrowers ) %] > [% IF ( NorwegianPatronDBEnable == 1 ) %] > <li><a id="deletepatronlocal" href="#">Delete local</a></li> >-- >2.8.1
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 16127
:
51927
|
51932
| 52285