From f49a33d06f5ce8c20fc1100844e9dc96135fd765 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Mon, 22 Jul 2024 15:55:56 +0000 Subject: [PATCH] Bug 37407: Fill barcode field when fast cataloging from patron checkout This patch fills the barcode field on the patron checkout screen when an item is fast cataloged at checkout. Test plan: 1. Apply patch 2. Enter a barcode not in the system, eg 99999 3. Click '+ Add record using fast cataloging' 4. Fill required bib fields 000, 008 and 245a and click 'Save' 5. Add required item field y - Koha item type and click 'Add item' 6. Notice the barcode you entered previously is filled in the barcode field 7. Hit 'Enter' or click 'Checkout' and verify the item is checked out --- circ/circulation.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index acabfa4d1d..09f8d5a568 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -716,6 +716,7 @@ $template->param( branch => $branch, was_renewed => scalar $query->param('was_renewed') ? 1 : 0, barcodes => $barcodes, + fa_barcode => $barcode, stickyduedate => $stickyduedate, duedatespec => $duedatespec, restoreduedatespec => $restoreduedatespec, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index b790401fdf..db616229b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -753,12 +753,12 @@ [% IF NEEDSCONFIRMATION %] - + [% ELSE %] [% IF Koha.Preference('itemBarcodeFallbackSearch') %] - + [% ELSE %] - + [% END %] [% END %] -- 2.39.2