Bugzilla – Attachment 51927 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), 2.90 KB, created by
Owen Leonard
on 2016-05-31 14:14:59 UTC
(
hide
)
Description:
Bug 16127 - Add discharge menu item to patron toolbar
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-05-31 14:14:59 UTC
Size:
2.90 KB
patch
obsolete
>From 28afbc27594beb591d93bd04089f26c2461dacaa 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 >Content-Type: text/plain; charset="utf-8" > >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. >--- > 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.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 16127
:
51927
|
51932
|
52285