Bugzilla – Attachment 165060 Details for
Bug 31097
Patron restriction types should display in staff interface and OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31097: display restriction types
Bug-31097-display-restriction-types.patch (text/plain), 2.07 KB, created by
Matt Blenkinsop
on 2024-04-18 10:02:22 UTC
(
hide
)
Description:
Bug 31097: display restriction types
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-04-18 10:02:22 UTC
Size:
2.07 KB
patch
obsolete
>From 280f705474d6edf22fd6eab382ddbb640f7de46d Mon Sep 17 00:00:00 2001 >From: Philip Orr <philip.orr@lmscloud.de> >Date: Thu, 18 Apr 2024 09:37:59 +0000 >Subject: [PATCH] Bug 31097: display restriction types > >This patch changes the display of patron >restrictions in checkout and patron details >pages to show the restriction type for each >restriction. It also changes the display so >each restriction is shown on a newline. > >To test: >1. Before applying patch, set system preference >"PatronRestrictionTypes" to "Allow" >2. Go to Administration -> Patron restriction types >3. Add some restriction types, make sure you >fill out both "Code" and "Label" >4. Go to any patron and add one or more of each >restriction type >5. Go to that patron's checkout page >6. Notice that only the comments of the >restrictions are displayed >7. Apply the patch >8. Reload the page >9. Notice the restriction types are now >displayed correctly > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >index f0d322b9fe..75c64cb695 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -70,7 +70,9 @@ > [% IF debarredcomment.search('OVERDUES_PROCESS') %] > Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] > [% ELSE %] >- [% debarredcomment | $raw | html_line_break %] >+ [% FOR restriction IN patron.restrictions %] >+ [% restriction.type.display_text | html %]: [% restriction.comment | html_line_break %]<br /> >+ [% END %] > [% END %] > </em><br/> > [% END %] >-- >2.37.1 (Apple Git-137.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 31097
:
165059
|
165060
|
165138
|
165139
|
165218
|
165219
|
165220
|
165221
|
166054
|
166055
|
166255
|
166296
|
166428