Re: [Koha] Problems with barcodes in Koha 24.05.01
Michael, I don't know what the ultimate fix for this problem will be, but if you add this to your intranetuserjs system preference, it will work-around the problem until a patch is written. ----- $(document).ready(function () { $('#circ_view_holdsqueue .hq-barcode a').each(function() { var html = $(this).html(); $(this).html(html.replace('%2F', '/')); }); }); ----- We are about upgrade to 24.05 and are going to have the same problem for some of our records, so when I saw your post I wrote this to solve the problem for us. Thanks for the heads up, George On 9/5/2024 7:00 PM, koha-request@lists.katipo.co.nz wrote:
----------------------------------------------------------------------
Message: 1 Date: Thu, 5 Sep 2024 14:06:16 +0200 From: Michael Kuhn<mik@adminkuhn.ch> To: Koha<koha@lists.katipo.co.nz> Subject: [Koha] Problems with barcodes in Koha 24.05.01 Message-ID:<ef0753ca-613f-4535-a6c8-6c16d611297c@adminkuhn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed
Hi
1. We have barcodes containing the slash character "/", like: 03/07851-a03073
In Koha menu "Circulation > Holds queue" barcodes are now links, and the above barcode is shown as 03%2F07851-a03073 - is it possible to get rid of this unwanted HTML entity %2F and instead show the correct character "/" ?
2. We also have barcodes containing spaces, like: Soz 2432-b02732
In Koha menus "Circulation > Cataloging > Batch item modification" resp. "Batch item deletion" it is possible to insert barcodes into a list. But when inserting the above barcode Soz 2432-b02732 and clicking "Continue" the screen says:
Warning, the following barcodes were not found:
Barcodes not found Soz 2432-b02732
So it seems like in this specific menu (but not elsewhere) Koha is interpreting the space as a delimiter for a new barcode and thinks these are two barcodes which is not true. How can we teach Koha to accept "Soz 2432-b02732" as just one barcode like Koha does everywhere else? By the way this problem already existed in Koha 19.11.
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch ------------------------------
-- George Williams (he/him) Next Search Catalog Coordinator Northeast Kansas Library System 785-838-4090 gwilliams@nekls.org NEXT SEARCH CATALOG <https://nextkansas.org>
Hi George Thanks for your e-mail! The problem is fixed with https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36970 ((Bug 34160 follow-up) Barcode should be html filtered, not uri filtered in holds queue view) Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch Am 13.09.24 um 01:08 schrieb George Williams:
Michael,
I don't know what the ultimate fix for this problem will be, but if you add this to your intranetuserjs system preference, it will work-around the problem until a patch is written.
----- $(document).ready(function () {
$('#circ_view_holdsqueue .hq-barcode a').each(function() {
var html = $(this).html(); $(this).html(html.replace('%2F', '/'));
}); }); -----
We are about upgrade to 24.05 and are going to have the same problem for some of our records, so when I saw your post I wrote this to solve the problem for us.
Thanks for the heads up,
George
On 9/5/2024 7:00 PM, koha-request@lists.katipo.co.nz wrote:
----------------------------------------------------------------------
Message: 1 Date: Thu, 5 Sep 2024 14:06:16 +0200 From: Michael Kuhn<mik@adminkuhn.ch> To: Koha<koha@lists.katipo.co.nz> Subject: [Koha] Problems with barcodes in Koha 24.05.01 Message-ID:<ef0753ca-613f-4535-a6c8-6c16d611297c@adminkuhn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed
Hi
1. We have barcodes containing the slash character "/", like: 03/07851-a03073
In Koha menu "Circulation > Holds queue" barcodes are now links, and the above barcode is shown as 03%2F07851-a03073 - is it possible to get rid of this unwanted HTML entity %2F and instead show the correct character "/" ?
2. We also have barcodes containing spaces, like: Soz 2432-b02732
In Koha menus "Circulation > Cataloging > Batch item modification" resp. "Batch item deletion" it is possible to insert barcodes into a list. But when inserting the above barcode Soz 2432-b02732 and clicking "Continue" the screen says:
Warning, the following barcodes were not found:
Barcodes not found Soz 2432-b02732
So it seems like in this specific menu (but not elsewhere) Koha is interpreting the space as a delimiter for a new barcode and thinks these are two barcodes which is not true. How can we teach Koha to accept "Soz 2432-b02732" as just one barcode like Koha does everywhere else? By the way this problem already existed in Koha 19.11.
Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch ------------------------------
--
George Williams (he/him) Next Search Catalog Coordinator Northeast Kansas Library System 785-838-4090 gwilliams@nekls.org
NEXT
SEARCH CATALOG
participants (2)
-
George Williams -
Michael Kuhn