Bugzilla – Attachment 165220 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.12 KB, created by
Martin Renvoize (ashimema)
on 2024-04-19 16:30:09 UTC
(
hide
)
Description:
Bug 31097: Display restriction types
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-04-19 16:30:09 UTC
Size:
2.12 KB
patch
obsolete
>From ade61136ec2c8a78c90a4b013ccde973fc4d0566 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> >Signed-off-by: Martin Renvoize <martin.renvoize@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 f0d322b9feb..75c64cb6950 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.44.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 31097
:
165059
|
165060
|
165138
|
165139
|
165218
|
165219
| 165220 |
165221
|
166054
|
166055
|
166255
|
166296
|
166428