Bug 38100 - Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems
Summary: Items with damaged status are shown in OPAC results as "Not available" even w...
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Janusz Kaczmarek
QA Contact: Paul Derscheid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-04 19:03 UTC by Janusz Kaczmarek
Modified: 2024-11-08 10:24 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems (1.72 KB, patch)
2024-10-04 19:40 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 38100: Unit tests (2.13 KB, patch)
2024-10-04 19:41 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems (1.77 KB, patch)
2024-10-05 10:56 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 38100: Unit tests (2.18 KB, patch)
2024-10-05 10:56 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems (1.83 KB, patch)
2024-11-07 11:13 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 38100: Unit tests (2.24 KB, patch)
2024-11-07 11:13 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 38100: (QA follow-up) Tidy changes in C4/XSLT.pm (958 bytes, patch)
2024-11-07 11:13 UTC, Paul Derscheid
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-10-04 19:03:37 UTC
Items with damaged status are shown on the OPAC results page as "Not available" even with AllowHoldsOnDamagedItems set to 'Allow', which is misleading for the users.  'other/Damaged' status should be assigned only if AllowHoldsOnDamagedItems is set to 'Don't allow'.
Comment 1 Janusz Kaczmarek 2024-10-04 19:40:58 UTC
Created attachment 172426 [details] [review]
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems

Items with damaged status are shown on the OPAC results page as "Not
available" even with AllowHoldsOnDamagedItems set to 'Allow', which is
misleading for the users.  'other/Damaged' status should be assigned
only if AllowHoldsOnDamagedItems is set to 'Don't allow'.

Test plan:
==========

1. Check that AllowHoldsOnDamagedItems system preference is set to
   'Allow'.
2. In librarian interface, change the damaged status of an item by
   setting it to 'Damaged'.
3. In OPAC, make a search for the record with this item attached.  Use
   common words from title to get a list and not a single record.
4. Note that the item in question is labelled as 'Not available'
   (Damaged).
5. Apply the patch; restart_all.
6. Repeat p. 3.  Note that the item is now labelled as 'available for
   loan'.
7. Set AllowHoldsOnDamagedItems system preference is set to 'Don't
   allow'.
8. Repeat p. 3.  Note that the item is now labelled as 'Not available'.
Comment 2 Janusz Kaczmarek 2024-10-04 19:41:00 UTC
Created attachment 172427 [details] [review]
Bug 38100: Unit tests
Comment 3 Roman Dolny 2024-10-05 10:56:49 UTC
Created attachment 172429 [details] [review]
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems

Items with damaged status are shown on the OPAC results page as "Not
available" even with AllowHoldsOnDamagedItems set to 'Allow', which is
misleading for the users.  'other/Damaged' status should be assigned
only if AllowHoldsOnDamagedItems is set to 'Don't allow'.

Test plan:
==========

1. Check that AllowHoldsOnDamagedItems system preference is set to
   'Allow'.
2. In librarian interface, change the damaged status of an item by
   setting it to 'Damaged'.
3. In OPAC, make a search for the record with this item attached.  Use
   common words from title to get a list and not a single record.
4. Note that the item in question is labelled as 'Not available'
   (Damaged).
5. Apply the patch; restart_all.
6. Repeat p. 3.  Note that the item is now labelled as 'available for
   loan'.
7. Set AllowHoldsOnDamagedItems system preference is set to 'Don't
   allow'.
8. Repeat p. 3.  Note that the item is now labelled as 'Not available'.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 4 Roman Dolny 2024-10-05 10:56:52 UTC
Created attachment 172430 [details] [review]
Bug 38100: Unit tests

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 5 Paul Derscheid 2024-11-07 11:13:36 UTC
Created attachment 174112 [details] [review]
Bug 38100: Items with damaged status are shown in OPAC results as "Not available" even with AllowHoldsOnDamagedItems

Items with damaged status are shown on the OPAC results page as "Not
available" even with AllowHoldsOnDamagedItems set to 'Allow', which is
misleading for the users.  'other/Damaged' status should be assigned
only if AllowHoldsOnDamagedItems is set to 'Don't allow'.

Test plan:
==========

1. Check that AllowHoldsOnDamagedItems system preference is set to
   'Allow'.
2. In librarian interface, change the damaged status of an item by
   setting it to 'Damaged'.
3. In OPAC, make a search for the record with this item attached.  Use
   common words from title to get a list and not a single record.
4. Note that the item in question is labelled as 'Not available'
   (Damaged).
5. Apply the patch; restart_all.
6. Repeat p. 3.  Note that the item is now labelled as 'available for
   loan'.
7. Set AllowHoldsOnDamagedItems system preference is set to 'Don't
   allow'.
8. Repeat p. 3.  Note that the item is now labelled as 'Not available'.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Comment 6 Paul Derscheid 2024-11-07 11:13:39 UTC
Created attachment 174113 [details] [review]
Bug 38100: Unit tests

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Comment 7 Paul Derscheid 2024-11-07 11:13:41 UTC
Created attachment 174114 [details] [review]
Bug 38100: (QA follow-up) Tidy changes in C4/XSLT.pm
Comment 8 Katrin Fischer 2024-11-08 10:15:17 UTC
I think if "Damaged" means available or not available is highly depending on the workflows of the library and how the status is used internally. But this makes it a bit more flexible, which is good.
Comment 9 Katrin Fischer 2024-11-08 10:24:58 UTC
Pushed for 24.11!

Well done everyone, thank you!