Bugzilla – Attachment 110612 Details for
Bug 26280
Add unique IDs or class names for each condition in returns.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26280: Add unique class for each problem in returns.tt
Bug-26280-Add-unique-class-for-each-problem-in-ret.patch (text/plain), 11.18 KB, created by
Katrin Fischer
on 2020-09-23 18:19:59 UTC
(
hide
)
Description:
Bug 26280: Add unique class for each problem in returns.tt
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-09-23 18:19:59 UTC
Size:
11.18 KB
patch
obsolete
>From 81eeedb0549256a67b24916c38cb3344e0842f59 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 18 Sep 2020 21:06:03 +0000 >Subject: [PATCH] Bug 26280: Add unique class for each problem in returns.tt > >1. Checkin an item with a bad barcode and see the prolem class also has > a class called 'ret_badbarcode' >2. Checkin an item that triggers a lotforloan updated via > UpdateNotForLoanStatusOnCheckin, notice the class 'ret_nflupdate'. >3. You should also see an updated_from and updated_to class. This > should make it easier to target those for audio alerts >4. Checkin an item that triggers an location update and see the class > 'ret_locationupdate' >5. Checkin an item that is not at its permenat location and you should > see the class 'ret_ispermenant'. >6. Checkin an item that is not checkout and you should see the class > 'ret_notissued' >7. Checkin lost items with BlockReturnOfLostItems set to 'Dont block' > and see the class 'ret_checkedin' >8. Checkin lost items with BlockReturnOfLostItems set to 'block' and > see the class 'ret_blocked' >9. Checkin lost items with a fee on the patron's account for that lost > item and see the class 'ret_feeremains' >10. Checkin item that is withdrawn and see the class 'ret_withdrawn' > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/circ/returns.tt | 40 ++++++++++++---------- > 1 file changed, 22 insertions(+), 18 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 1e1ca7d2ff..31fed09dd6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -193,24 +193,28 @@ > [% END %] > [% FOREACH errmsgloo IN errmsgloop %] > [% IF ( errmsgloo.NotForLoanStatusUpdated ) %] >- <p class="problem"> >+ <p class="problem ret_nflupdate"> > Not for loan status updated. > <br />Old value: > [% IF errmsgloo.NotForLoanStatusUpdated.from %] >- [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]. >+ <span class="ret_updatedfrom"> >+ [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]. >+ </span> > [% ELSE %] > Available for loan. > [% END %] > <br />New value: > [% IF errmsgloo.NotForLoanStatusUpdated.to %] >- [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %]. >+ <span class="ret_updatedto"> >+ [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %]. >+ </span> > [% ELSE %] > Available for loan. > [% END %] > </p> > [% END %] > [% IF ( errmsgloo.ItemLocationUpdated ) %] >- <p class="problem"> >+ <p class="problem ret_location_update"> > Item shelving location updated. > <br />Old value: > [% IF errmsgloo.ItemLocationUpdated.from %] >@@ -239,30 +243,30 @@ > </p> > [% END %] > [% IF ( errmsgloo.badbarcode ) %] >- <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p> >+ <p class="problem ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p> > [% END %] > [% IF ( errmsgloo.ispermanent ) %] >- <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p> >+ <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p> > [% END %] > [% IF ( errmsgloo.notissued ) %] >- <p class="problem">Not checked out.</p> >+ <p class="problem ret_notissued">Not checked out.</p> > [% END %] > [% IF ( errmsgloo.localuse) %] >- <p class="problem">Local use recorded</p> >+ <p class="problem ret_localuse">Local use recorded</p> > [% END %] > [% IF ( errmsgloo.waslost ) %] > [% IF Koha.Preference('BlockReturnOfLostItems') %] >- <p class="problem">Item is lost, cannot be checked in.</p> >+ <p class="problem ret_blocked">Item is lost, cannot be checked in.</p> > [% ELSE %] >- <p class="problem">Item was lost, now found.</p> >+ <p class="problem ret_checkedin">Item was lost, now found.</p> > [% END %] > [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %] >- <p class="problem">A refund has been applied to the borrowing patron's account.</p> >+ <p class="problem ret_refund">A refund has been applied to the borrowing patron's account.</p> > [% ELSIF Koha.Preference('BlockReturnOfLostItems') %] > <h5>Cannot check in</h5> > <p><strong>NOT CHECKED IN</strong></p> > [% ELSE %] >- <p class="problem">Any lost item fees for this item will remain on the patron's account.</p> >+ <p class="problem ret_feeremains">Any lost item fees for this item will remain on the patron's account.</p> > [% END %] > [% END %] > [% IF ( errmsgloo.withdrawn ) %] >@@ -270,19 +274,19 @@ > <h5>Cannot check in</h5> > <p><strong>NOT CHECKED IN</strong></p> > [% END %] >- <p class="problem">Item is withdrawn.</p> >+ <p class="problem ret_withdrawn">Item is withdrawn.</p> > [% END %] > [% IF ( errmsgloo.debarred ) %] >- <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p> >+ <p class="problem ret_debarred"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p> > [% END %] > [% IF ( errmsgloo.prevdebarred ) %] >- <p class="problem"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> >+ <p class="problem ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> > [% END %] > [% IF ( errmsgloo.foreverdebarred ) %] >- <p class="problem"><strong>Reminder: </strong>Patron has an indefinite restriction.</p> >+ <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p> > [% END %] > [% IF errmsgloo.data_corrupted %] >- <p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p> >+ <p class="problem ret_datacorrupt">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p> > [% END %] > [% END # /FOREACH errmsgloo %] > </div> <!-- /.dialog.dialog-alert --> >@@ -294,7 +298,7 @@ > [% ELSE %] > <div class="dialog message"> > [% END %] >- <p class="problem">[% checkinmsg | html_line_break %]</p> >+ <p class="problem ret_checkinmsg">[% checkinmsg | html_line_break %]</p> > </div> > [% END # /IF checkinmsg %] > [% END # /BLOCK all_checkin_messages %] >-- >2.11.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 26280
:
109774
|
110413
|
110601
| 110612