Bug 36970 - (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered in holds queue view
Summary: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered in ho...
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low trivial
Assignee: Janusz Kaczmarek
QA Contact: Testopia
URL:
Keywords:
: 37847 (view as bug list)
Depends on: 34160
Blocks:
  Show dependency treegraph
 
Reported: 2024-05-27 21:35 UTC by Janusz Kaczmarek
Modified: 2024-09-05 17:05 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This fixes the display of barcodes with spaces in the holds queue. Barcodes are now displayed correctly with a space, rather than with '%20'.
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered (2.41 KB, patch)
2024-05-27 21:51 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered (2.46 KB, patch)
2024-05-27 22:55 UTC, David Nind
Details | Diff | Splinter Review
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered (2.51 KB, patch)
2024-06-26 00:45 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Janusz Kaczmarek 2024-05-27 21:35:30 UTC
If a barcode (in rare cases) contains a space, with bug 34160, it is converted into %20 in holds queue view (because of mistakenly applied uri filter).
Comment 1 Janusz Kaczmarek 2024-05-27 21:51:06 UTC
Created attachment 167196 [details] [review]
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered

If a barcode (in rare cases) contains a space, with bug 34160, it is
converted into %20 in holds queue view (because of mistakenly applied
uri filter).

Nota bene, in parallel lines of view_holdsqueue.tt a right filter is
used for the barcode.

Test plan:
==========
1. Have an item with the barcode containing a space.
2. Make a hold on it, run build_holds_queue.pl
3. Go to Circulation > Holds queue ; select your branch etc.
4. You should see '%20' instead of the space in the barcode.
5. Apply the patch, restart_all.
6. Repeat p. 3.  You should now see the space in the barcode.
Comment 2 David Nind 2024-05-27 22:55:49 UTC
Created attachment 167197 [details] [review]
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered

If a barcode (in rare cases) contains a space, with bug 34160, it is
converted into %20 in holds queue view (because of mistakenly applied
uri filter).

Nota bene, in parallel lines of view_holdsqueue.tt a right filter is
used for the barcode.

Test plan:
==========
1. Have an item with the barcode containing a space.
2. Make a hold on it, run build_holds_queue.pl
3. Go to Circulation > Holds queue ; select your branch etc.
4. You should see '%20' instead of the space in the barcode.
5. Apply the patch, restart_all.
6. Repeat p. 3.  You should now see the space in the barcode.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2024-05-27 23:04:41 UTC
Testing notes (using KTD):

1. Running the holds queue builder: misc/cronjobs/holds/build_holds_queue.pl
Comment 4 Nick Clemens (kidclamp) 2024-06-26 00:45:11 UTC
Created attachment 168113 [details] [review]
Bug 36970: (Bug 34160 follow-up) Barcode should be html filtered, not uri filtered

If a barcode (in rare cases) contains a space, with bug 34160, it is
converted into %20 in holds queue view (because of mistakenly applied
uri filter).

Nota bene, in parallel lines of view_holdsqueue.tt a right filter is
used for the barcode.

Test plan:
==========
1. Have an item with the barcode containing a space.
2. Make a hold on it, run build_holds_queue.pl
3. Go to Circulation > Holds queue ; select your branch etc.
4. You should see '%20' instead of the space in the barcode.
5. Apply the patch, restart_all.
6. Repeat p. 3.  You should now see the space in the barcode.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 5 Katrin Fischer 2024-06-27 09:52:44 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 6 Phil Ringnalda 2024-09-05 17:05:13 UTC
*** Bug 37847 has been marked as a duplicate of this bug. ***