Bugzilla – Attachment 109774 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), 10.73 KB, created by
Lucas Gass (lukeg)
on 2020-09-08 22:48:12 UTC
(
hide
)
Description:
Bug 26280: Add unique class for each problem in returns.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2020-09-08 22:48:12 UTC
Size:
10.73 KB
patch
obsolete
>From b92fab1a251d71293ef438010db1099135c737da Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 8 Sep 2020 22:45:03 +0000 >Subject: [PATCH] Bug 26280: Add unique class for each problem in returns.tt > >This patch adds a 2nd unique class to each of the checkin 'problems' > >1. Checkin an item with a bad barcode and see the prolem class also has a class called 'badbarcode' >2. Checkin an item that triggers a lotforloan updated via UpdateNotForLoanStatusOnCheckin, notice the class 'nfl_update'. >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 'location_update' >5. Checkin an item that is not at its permenat location and you should see the class 'ispermenant'. >6. Checkin an item that is not checkout and you should see the class 'notissued' >7. Checkin lost items with BlockReturnOfLostItems set to 'Dont block' and see the class 'itemlost_checkedin' >8 Checkin lost items with BlockReturnOfLostItems set to 'block' and see the class 'itemlost_blocked' >9. Checkin lost items with a fee on the patron's account for that lost item and see the class 'fee_remains' >--- > .../intranet-tmpl/prog/en/modules/circ/returns.tt | 36 +++++++++++----------- > 1 file changed, 18 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 0647470a5e..61caab77bd 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,24 @@ > [% END %] > [% FOREACH errmsgloo IN errmsgloop %] > [% IF ( errmsgloo.NotForLoanStatusUpdated ) %] >- <p class="problem"> >+ <p class="problem nfl_update"> > Not for loan status updated. > <br />Old value: > [% IF errmsgloo.NotForLoanStatusUpdated.from %] >- [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]. >+ <span class="updated_from">[% 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="updated_to">[% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].</spam> > [% ELSE %] > Available for loan. > [% END %] > </p> > [% END %] > [% IF ( errmsgloo.ItemLocationUpdated ) %] >- <p class="problem"> >+ <p class="problem location_update"> > Item shelving location updated. > <br />Old value: > [% IF errmsgloo.ItemLocationUpdated.from %] >@@ -239,30 +239,30 @@ > </p> > [% END %] > [% IF ( errmsgloo.badbarcode ) %] >- <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p> >+ <p class="problem 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 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 notissued">Not checked out.</p> > [% END %] > [% IF ( errmsgloo.localuse) %] >- <p class="problem">Local use recorded</p> >+ <p class="problem 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 itemlost_blocked">Item is lost, cannot be checked in.</p> > [% ELSE %] >- <p class="problem">Item was lost, now found.</p> >+ <p class="problem itemlost_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 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 fee_remains">Any lost item fees for this item will remain on the patron's account.</p> > [% END %] > [% END %] > [% IF ( errmsgloo.withdrawn ) %] >@@ -270,19 +270,19 @@ > <h5>Cannot check in</h5> > <p><strong>NOT CHECKED IN</strong></p> > [% END %] >- <p class="problem">Item is withdrawn.</p> >+ <p class="problem 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 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"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> >+ <p class="problem prevdebarred"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> > [% END %] > [% IF ( errmsgloo.foreverdebarred ) %] >- <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p> >+ <p class="problem foreverdebarred"><b>Reminder: </b>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 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 +294,7 @@ > [% ELSE %] > <div class="dialog message"> > [% END %] >- <p class="problem">[% checkinmsg | html_line_break %]</p> >+ <p class="problem 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