Bugzilla – Attachment 124227 Details for
Bug 28838
SCO impossible errors are hard to target with CSS/JS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28838: add unique IDs to sco-main.tt impossible errors
Bug-28838-add-unique-IDs-to-sco-maintt-impossible-.patch (text/plain), 6.17 KB, created by
Katrin Fischer
on 2021-08-29 11:54:35 UTC
(
hide
)
Description:
Bug 28838: add unique IDs to sco-main.tt impossible errors
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-08-29 11:54:35 UTC
Size:
6.17 KB
patch
obsolete
>From 44afca10c4cca101ef5485e2f4dcf4cb2e2588be Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 10 Aug 2021 14:18:23 +0000 >Subject: [PATCH] Bug 28838: add unique IDs to sco-main.tt impossible errors > >To test: >1. Apply patch >2. Go SCO and try to checkout some items that will generate some of the > following errors: > >The system does not recognize this barcode. >You have checked out too many items and can't check out any more. >This item is checked out to someone else. >You cannot renew this item again. >This item is not for loan. >You owe the library [% DEBT | $Price %] and cannot check out. >This item has been withdrawn from the collection. >This item is restricted. >This item is on hold for another patron. >This item belongs to another branch. >Your account has expired. >Your account has been suspended. >This card has been declared lost. >Your contact information seems to be incomplete. >Due date is not valid. >Item must be checked out at a circulation desk. > >3. The display should be exactly as it was without the patch but if you > use the browsers dev tools you should be able to inscept each error > message and see that it is now wrapped in a <span> with an ID. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 34 +++++++++++----------- > 1 file changed, 17 insertions(+), 17 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index 40521d7e00..2e5d352e43 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -60,39 +60,39 @@ > > <p> > [% IF ( circ_error_UNKNOWN_BARCODE ) %] >- The system does not recognize this barcode. >+ <span id="ce_unknown_barcode">The system does not recognize this barcode.</span> > [% ELSIF ( circ_error_max_loans_allowed ) %] >- You have checked out too many items and can't check out any more. >+ <span id="ce_max_loans_allowed">You have checked out too many items and can't check out any more.</span> > [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %] >- This item is checked out to someone else. >+ <span id="ce_issued_to_another">This item is checked out to someone else.</span> > [% ELSIF ( circ_error_NO_MORE_RENEWALS ) %] >- You cannot renew this item again. >+ <span id="ce_no_more_renewals">You cannot renew this item again.</span> > [% ELSIF ( circ_error_NOT_FOR_LOAN ) %] >- This item is not for loan. >+ <span id="ce_not_for_loan">This item is not for loan.</span> > [% ELSIF ( circ_error_DEBT ) %] >- You owe the library [% DEBT | $Price %] and cannot check out. >+ <span id="ce_too_much_debt">You owe the library [% DEBT | $Price %] and cannot check out.</span> > [% ELSIF ( circ_error_WTHDRAWN ) %] >- This item has been withdrawn from the collection. >+ <span id="ce_wthdrawn">This item has been withdrawn from the collection.</span> > [% ELSIF ( circ_error_RESTRICTED ) %] >- This item is restricted. >+ <span id="ce_restricted">This item is restricted.</span> > [% ELSIF ( circ_error_RESERVED ) %] >- This item is on hold for another patron. >+ <span id="ce_reserved">This item is on hold for another patron.</span> > [% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %] >- This item belongs to another branch. >+ <span id="ce_itemnotsamebranch">This item belongs to another branch.</span> > [% ELSIF ( circ_error_EXPIRED ) %] >- Your account has expired. >+ <span id="ce_expired">Your account has expired.</span> > [% ELSIF ( circ_error_DEBARRED ) %] >- Your account has been suspended. >+ <span id="ce_debarred">Your account has been suspended.</span> > [% ELSIF ( circ_error_CARD_LOST ) %] >- This card has been declared lost. >+ <span id="ce_card_lost">This card has been declared lost.</span> > [% ELSIF ( circ_error_GNA ) %] >- Your contact information seems to be incomplete. >+ <span id="ce_gna">Your contact information seems to be incomplete.</span> > [% ELSIF ( circ_error_INVALID_DATE ) %] >- Due date is not valid. >+ <span id="ce_invalid_date">Due date is not valid.</span> > [% ELSIF ( circ_error_ADDITIONAL_MATERIALS ) %] >- Item must be checked out at a circulation desk. >+ <span id="ce_addtional_materials">Item must be checked out at a circulation desk.</span> > [% END %] >- Please see a member of the library staff. >+ <span id ="ce_see_staff">Please see a member of the library staff.</span> > </p> > > [% IF ( returnitem && Koha.Preference('SCOAllowCheckin') ) %] >-- >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 28838
:
123700
|
123781
| 124227