From ffb128037bcff6cb76708a4c16a5a59b2825a44d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 21 Nov 2024 13:32:02 +0000 Subject: [PATCH] Bug 38505: CirculateILL: Add UNKNOWN_BARCODE warning message Test plan, before applying patches: 1) Enable ILLModule system preferece. 2) Create a book ILL request: /cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 3) After creating a Book ILL request, go to its detail page and click on the newly created linked biblio 4) On the biblio detail, click 'NEW' -> 'New item', add type and home library + current library (dont enter a barcode) 5) Repeat 2) -> Click confirm request and continue. 6) Click "Check out" -> If theres a problem with the patron (expired or max checkouts hit) it'll say "A problem with patron occurred". Fix that adn click c"check out" again. 7) Notice the message "An unknown error occurred while trying to checkout the item" 8) Apply patches. Repeat. Notice the message you now get is 'The bibliographic record's item contains an unknown (or empty) barcode.'. This patch also adds a link to the respective biblio for Staff members' convenience. Signed-off-by: R --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 3e6790faa9..9ea645c73f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -183,6 +183,10 @@
Local use recorded
+ [% ELSIF whole.value.check_out_errors.error.UNKNOWN_BARCODE %] +
+ The bibliographic record's item contains an unknown (or empty) barcode. +
[% ELSE %]
There was a problem checking this item out, please check for problems with the patron's account @@ -196,7 +200,7 @@ Check out details [% items = whole.value.biblio.items.unblessed %] [% IF items.size == 1 %] -

The bibliographic record for this request already has an item attached to it, you are about to check it out

+

The bibliographic record for this request already has an item attached to it, you are about to check it out

[% ELSE %]

A bibliographic record for this request exists, but no item. You are about to create an item and check it out

[% END %] -- 2.39.5