[Bug 38666] New: New feature: closed stack requests
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Bug ID: 38666 Summary: New feature: closed stack requests Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: new feature Priority: P5 - low Component: Circulation Assignee: julian.maurice@biblibre.com Reporter: julian.maurice@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #1 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 175354 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175354&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply patch, run updatedatabase.pl and update_dbix_class_files.pl, and restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaela.sieber@kit.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175354|0 |1 is obsolete| | --- Comment #2 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 175371 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175371&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply patch, run updatedatabase.pl and update_dbix_class_files.pl, and restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #3 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 175372 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175372&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #4 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 175373 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175373&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #5 from Julian Maurice <julian.maurice@biblibre.com> --- This isn't ready for QA, as there is no unit tests yet, but it is ready for testing. I'd really like to have some feedback on the feature itself before spending time writing tests. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored CC| |sonia.bouis@univ-lyon3.fr Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Esther Melander <esther.melander@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |esther.melander@bywatersolu | |tions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibault Keromnès <thibault.keromnes@univ-paris8.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |thibault.keromnes@univ-pari | |s8.fr --- Comment #6 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- On step one I ran "dbic", "updatedatabase" and "restart_all" On step 2 of the test plan, after creating the items I have an error when i go back to the biblio details page. The logs read : ==> /var/log/koha/kohadev/plack-api-error.log <== [2025/01/14 13:28:29] [WARN] OpenAPI >>> GET api/v1/biblios/272/items [{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/0"},{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/1"},{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/2"}] ==> /var/log/koha/kohadev/plack.log <== 172.18.0.1 - - [14/Jan/2025:13:28:29 +0000] "GET /api/v1/app.pl/api/v1/biblios/272/items?&_page=1&_per_page=20&_match=contains&_order_by= HTTP/1.1" 500 - "http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=272&searchid=scs_1736860462163" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0" Really interested by what I can see of the feature though. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|New feature: closed stack |Closed stack requests |requests | -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175371|0 |1 is obsolete| | --- Comment #7 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 178977 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178977&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply patch, run updatedatabase.pl and update_dbix_class_files.pl, and restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175372|0 |1 is obsolete| | --- Comment #8 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 178978 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178978&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175373|0 |1 is obsolete| | --- Comment #9 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 178979 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178979&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #10 from Julian Maurice <julian.maurice@biblibre.com> --- Patches rebased on main (In reply to Thibault Keromnès from comment #6)
On step one I ran "dbic", "updatedatabase" and "restart_all" On step 2 of the test plan, after creating the items I have an error when i go back to the biblio details page. The logs read : ==> /var/log/koha/kohadev/plack-api-error.log <== [2025/01/14 13:28:29] [WARN] OpenAPI >>> GET api/v1/biblios/272/items [{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/0"},{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/1"},{"message":"Properties not allowed: is_closed_stack.","path":"\/body\/2"}]
Not sure what was causing that since is_closed_stack is defined in the OpenAPI spec. And I cannot reproduce after the rebase. Can you try again ? -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178977|0 |1 is obsolete| | --- Comment #11 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 179466 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179466&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply patch, run updatedatabase.pl and update_dbix_class_files.pl, and restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178978|0 |1 is obsolete| | --- Comment #12 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 179467 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179467&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #178979|0 |1 is obsolete| | --- Comment #13 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 179468 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179468&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #14 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- After applying - update_dbix_class_files.pl ends with : DBIx::Class::Schema::Loader::make_schema_at(): Checksum mismatch in './/Koha/Schema/Result/Deleteditem.pm', the auto-generated part of the file has been modified outside of this loader. Aborting. If you want to overwrite these modifications, set the 'overwrite_modifications' loader option. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibault Keromnès <thibault.keromnes@univ-paris8.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #15 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- When loading a biblio i get an error : Something went wrong when loading the table. 500: Internal Server Error. Properties not allowed: is_closed_stack. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #16 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- Test plan needs an update: no need for update_dbix_class_files.pl. Error on comment 14 was solved by running `yarn run api:bundle` and restarting Koha. On step 12 I get a error when loading closed-stack-requests.pl page. Log reads: Template process failed: file error - columns_settings.inc: not found at /kohadevbox/koha/C4/Templates.pm line 134. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #17 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- (In reply to Thibault Keromnès from comment #16)
Test plan needs an update: no need for update_dbix_class_files.pl. Error on comment 14 was solved by running `yarn run api:bundle` and restarting Koha.
Made a mistake, sorry : `yarn run api:bundle` solves the comment 15 problem We still have the dbic issue (comment 14) -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179466|0 |1 is obsolete| | --- Comment #18 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180309 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180309&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply patch, run updatedatabase.pl and update_dbix_class_files.pl, and restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179467|0 |1 is obsolete| | --- Comment #19 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180310&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179468|0 |1 is obsolete| | --- Comment #20 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180311 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180311&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #21 from Julian Maurice <julian.maurice@biblibre.com> --- Patches rewritten to use kohaTable instead of KohaTable. This fixes error raised in comment 16. Error in comment 14 can be ignored by re-generating dbic schema with --force option So it's ready for testing again. -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180309|0 |1 is obsolete| | --- Comment #22 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180321 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180321&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180310|0 |1 is obsolete| | --- Comment #23 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180322 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180322&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180311|0 |1 is obsolete| | --- Comment #24 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 180323 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180323&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #25 from Julian Maurice <julian.maurice@biblibre.com> --- Re-upload with updated test plan (1st step only) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Amaury GAU <amaury.gau@bulac.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amaury.gau@bulac.fr --- Comment #26 from Amaury GAU <amaury.gau@bulac.fr> --- (In reply to Julian Maurice from comment #22)
Created attachment 180321 [details] [review] Bug 38666: Closed stack requests
A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document.
Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield.
An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer
If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds.
Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC
There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in the same page.
The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage:
[% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]">
Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request.
Why the request can be cancelled as "not found" before printing the slip. I guess this is a user practice to avoid.
15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button
There is a problem here. If the syspref `SuspendHoldsOpac` is allowed, a button 'Suspend all holds' will appear. I'm pretty sure this is not a wanted behaviour as librarians could be searching for the book while it gets cancelled.
18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests
It seems weird that a notforloan item can be asked from a patron. The main purpose of a notforloan item, is exactly the contrary. it should not be requestable. Otherwise, it might need a syspref to overrule this behaviour. I'd gladly ask other librarians about this.
20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests.
Sponsored-by: Université de Lyon 3
Thanks for the dev :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #27 from Esther Melander <esther.melander@bywatersolutions.com> --- It is exciting to see work on this! The archives I have worked with have all asked for the holds slips to auto print. This development adds a special print holds slip button, which would still be a great benefit. I did file this bug about the auto print holds slip. Bug 35355 -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180321|0 |1 is obsolete| | --- Comment #28 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 180822 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180822&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180322|0 |1 is obsolete| | --- Comment #29 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 180823 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180823&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180323|0 |1 is obsolete| | --- Comment #30 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 180824 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180824&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibault Keromnès <thibault.keromnes@univ-paris8.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #31 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- A few remarks : CLOSED_STACK_SLIP : Works with "hungry alligators" variables but I didn't test with Template Toolkit (and I'd love to have a default TT notice;) ) To actually use it I need to be able to batch edit items, so I tested and I can if I first : - add it to the Marc framework - add it to the koha2marclinks I don't know if it's worth adding to the manual? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #32 from Thibault Keromnès <thibault.keromnes@univ-paris8.fr> --- (In reply to Amaury GAU from comment #26)
(In reply to Julian Maurice from comment #22)
19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests
It seems weird that a notforloan item can be asked from a patron. The main purpose of a notforloan item, is exactly the contrary. it should not be requestable. Otherwise, it might need a syspref to overrule this behaviour. I'd gladly ask other librarians about this.
I think it depends on local setups. Part of our collection is not for "loan" but still needs to be requested for local use. We could use onsite checkouts for it (and i think i will change to that) but it could make sense to have a notforloan status, for instance if you don't need a library account to ask for the item and don't register the local use as a checkout. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Marie <marie.hedbom@musikverket.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marie.hedbom@musikverket.se -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #33 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> --- (In reply to Amaury GAU from comment #26)
It seems weird that a notforloan item can be asked from a patron. The main purpose of a notforloan item, is exactly the contrary. it should not be requestable. Otherwise, it might need a syspref to overrule this behaviour. I'd gladly ask other librarians about this.
We asked for this feature because we need that users can ask for these books that that can't borrow outside of the library but can read inside. If you don't want that some books can be asked from the closed stacks, don't tick the flag "closed stack" on the item.
Why the request can be cancelled as "not found" before printing the slip. I guess this is a user practice to avoid.
I can understand but it's not blocking for me
There is a problem here. If the syspref `SuspendHoldsOpac` is allowed, a button 'Suspend all holds' will appear. I'm pretty sure this is not a wanted behaviour as librarians could be searching for the book while it gets cancelled.
I totally agree on this one -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrew Auld <andrew.auld@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.auld@openfifth.co.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Pedro Amorim <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k --- Comment #34 from Pedro Amorim <pedro.amorim@openfifth.co.uk> --- Hey all, we set up a branch with this development for testing. According to Andrew's testing I believe we're ready to sign-off as well, but there's a CSRF error when you submit the 'cancel marked holds' buttons. This form needs a CSRF token input: https://github.com/openfifth/koha/commit/82eafa48f791280da225b8bd556dd90151d... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrew Auld <andrew.auld@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Failed QA --- Comment #35 from Andrew Auld <andrew.auld@openfifth.co.uk> --- So with Pedro Amorim's help, we got this installed on a sandbox on a branch where the patches still applied. I really like the functionality, and it mostly works as described in the test plan. I have one or two UI comments which I will add in due course. However, it currently has a bug in the staff side interface. If you cancel the 'closed stack request' in the patron record by selecting 'Yes' in the 'delete?' column, you get a 403 error: Error 403 Programming error - No CSRF token passed for POST http://localhost:33122/intranet/reserve/modrequest.pl (referer: https://staff-andrew38666.sandboxes.ptfs-europe.co.uk/cgi-bin/koha/members/m...) I think this is to do with the CSRF changes but Pedro has commented with a suggestion as to where the fix needs to be applied. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #36 from Andrew Auld <andrew.auld@openfifth.co.uk> --- This is a UI comment and may not be possible, given that the development is using Holds functionality currently. In the staff side, from the biblio record, when the staff member clicks on the 'Closed stack request' button and selects a patron, it would be good if rather than 'Hold a specific item' and 'Place hold', the UI could say 'Request a specific item' and 'Place request'. This would be clearer and distinguish the workflow from a normal hold. On the OPAC, it would also be better on the closed stack request confirmation screen (effectively the hold confirmation screen) if the wording on screen could say 'Place a request for' rather than 'Place a hold on', and 'Confirm request' rather than 'Confirm hold'. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #37 from Andrew Auld <andrew.auld@openfifth.co.uk> --- With these patches applied, the 'Holds to pull' report, no longer works. Gives a 500 error: Column 'itemnumber' in WHERE is ambiguous at /kohadevbox/koha/Koha/Objects.pm line 401 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #38 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> --- (In reply to Andrew Auld from comment #36)
This is a UI comment and may not be possible, given that the development is using Holds functionality currently. In the staff side, from the biblio record, when the staff member clicks on the 'Closed stack request' button and selects a patron, it would be good if rather than 'Hold a specific item' and 'Place hold', the UI could say 'Request a specific item' and 'Place request'. This would be clearer and distinguish the workflow from a normal hold. On the OPAC, it would also be better on the closed stack request confirmation screen (effectively the hold confirmation screen) if the wording on screen could say 'Place a request for' rather than 'Place a hold on', and 'Confirm request' rather than 'Confirm hold'.
+1 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180822|0 |1 is obsolete| | --- Comment #39 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 187995 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187995&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180823|0 |1 is obsolete| | --- Comment #40 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 187996 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187996&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180824|0 |1 is obsolete| | --- Comment #41 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 187997 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187997&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #42 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 187998 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187998&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #43 from Julian Maurice <julian.maurice@biblibre.com> --- Patches rebased + fix for comment 34 / comment 35 Back to needs signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #44 from Andrew Auld <andrew.auld@openfifth.co.uk> --- I have retested this patch and confirm that all steps in the test plan work. The holds to pull report now runs, but the closed stack request hold doesn't show up in the report - is this deliberate? My UI comments above are still valid. I am happy to sign this off once I understand whether it is intended that the closed stack requests don't appear in the holds to pull report. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #45 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> --- (In reply to Andrew Auld from comment #44)
I have retested this patch and confirm that all steps in the test plan work.
The holds to pull report now runs, but the closed stack request hold doesn't show up in the report - is this deliberate?
My UI comments above are still valid.
I am happy to sign this off once I understand whether it is intended that the closed stack requests don't appear in the holds to pull report.
Hello, yes, it is intended. As the principle is that closed stacks request and holds will not be handled in the same workflow, we don't want that closed stacks to appear in "holds to pull" but only on the closed stacks request table. I hope it makes sense for everyone. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Mathieu Saby <mathsabypro@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathsabypro@gmail.com --- Comment #46 from Mathieu Saby <mathsabypro@gmail.com> --- I agree with this behavior ;-) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrew Auld <andrew.auld@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #47 from Andrew Auld <andrew.auld@openfifth.co.uk> --- As above, tested and signed off and I understand the reasoning for keeping holds and closed stack requests separate on the staff side reporting. I would still encourage the UI improvement suggestions to be added as follow-up patches. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187995|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187996|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187997|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187998|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #48 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191040 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191040&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #49 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191041 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191041&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #50 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191042 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191042&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #51 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191043 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191043&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request Patch from commit bbffd70 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #52 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191044 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191044&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #53 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 191045 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191045&action=edit Bug 38666: Make checked out closed stack items holdable Patch from commit 5bb4ed9 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #54 from Julian Maurice <julian.maurice@biblibre.com> --- Patches rebased + 2 small fixes added -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |victor@tuxayo.net Status|Signed Off |Patch doesn't apply --- Comment #55 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Unsuccessful rebase attempt. I forgot could just stay at the autorebase result ( 2026-01-09 main + patches on top) and already review a lot of stuff there. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Failed QA --- Comment #56 from Victor Grousset/tuxayo <victor@tuxayo.net> --- test plan:
5. Notice there is now a "closed stack requests" tab on the left
It was already there.
and a "closed stack request" button in the toolbar
I don't have it :( Redid the test plan and same result. Anyone getting a different result? (patches applied on top of old main at fc1104c9125. Due to not applying on current main) ------ QA script finds issues with untidy stuff and http:// usage. -------- I guess we are still in the state of comment 5, so ignoring the need for tests for now. ---- Testing note: TODO test later if this is still valid:
There is a problem here. If the syspref `SuspendHoldsOpac` is allowed, a button 'Suspend all holds' will appear. I'm pretty sure this is not a wanted behaviour as librarians could be searching for the book while it gets cancelled.
--- QA note: db rev and kohastructure changes look ok -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #57 from Victor Grousset/tuxayo <victor@tuxayo.net> ---
8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made
It is weird to have hold everywhere on the page but if there is no actual confusion (it's not a thing I can really give feedback on) then it's worth not having to mess everywhere with the templates. Does anyone uses a language where the way they would translate "closed stack request" will not work well with their translation of "holds" still being everywhere around? The concepts might be close enough that this is never an issue. I'm merely highlighting this so people with functional backgrounds can dismiss or confirm the potential issue. ----
12. Go to Circulation » Closed stack requests
"The following holds have not been filled." Maybe just there it feel more clear that it's worth having the right term to be sure to not go search something in the wrong place. -----
and a "closed stack request" button in the toolbar
I previously reported that in staff I don't seed the button in the toolbar when an item is marked for closed stack. But at least here it works in the OPAC. -----
18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1".
I don't see it :o /cgi-bin/koha/circ/closed-stack-requests.pl report none. But the patrons OPAC page and the record staff page indeed list the CS request. DB: MariaDB [koha_kohadev]> select * from reserves\G *************************** 1. row *************************** reserve_id: 4 borrowernumber: 5 reservedate: 2026-03-08 biblionumber: 295 deleted_biblionumber: NULL item_group_id: NULL branchcode: FPL desk_id: NULL notificationdate: NULL reminderdate: NULL cancellationdate: NULL cancellation_reason: NULL reservenotes: priority: 1 found: NULL timestamp: 2026-03-08 03:17:03 itemnumber: 656 waitingdate: NULL expirationdate: NULL patron_expiration_date: NULL lowestPriority: 0 suspend: 0 suspend_until: NULL itemtype: NULL item_level_hold: 1 non_priority: 0 closed_stack_request_slip_printed: 0 hold_group_id: NULL -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Sonia Bouis <sonia.bouis@univ-lyon3.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |Université Jean Moulin Lyon list of Sponsors| |3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191040|0 |1 is obsolete| | Attachment #191041|0 |1 is obsolete| | Attachment #191042|0 |1 is obsolete| | Attachment #191043|0 |1 is obsolete| | Attachment #191044|0 |1 is obsolete| | Attachment #191045|0 |1 is obsolete| | --- Comment #58 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201180&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #59 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201181 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201181&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #60 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201182 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201182&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #61 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201183 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201183&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #62 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201184 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201184&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #63 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201185 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201185&action=edit Bug 38666: Make checked out closed stack items holdable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #64 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201186 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201186&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #65 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201187 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201187&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #66 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 201188 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201188&action=edit Bug 38666: Fix terminology on closed stack requests page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thibaud.guillot@biblibre.co | |m --- Comment #67 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Hello, I’m trying to continue the development work started by Julian; I’ve now rebased onto a fresh main branch. I spotted a few issues during my tests, so I’ve made some fixes: in the API, I’ve added a missing property; I’ve removed the button on the OPAC side that allowed users to ‘Suspend all holds’ – precisely because, as I understand it, there shouldn’t be any suspensions on the OPAC side. And I’ve changed some labelling to make the page dedicated to closed stack requests clearer. If this is on the right track, I’ll be able to add the unit tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #68 from Victor Grousset/tuxayo <victor@tuxayo.net> ---
If this is on the right track
That's best to be confirmed with the libraries that expressed interest in this feature. (also, I see earlier comments from people at Open Fifth and ByWater showing interest) Once confirmed or adjusted. The safest before investing more work might be to reach the wider community to confirm there isn't a **functional blocker**. Hopefully not, then your **functional scope will be secured and locked**. Otherwise, there will only be small adjustments. But if it's more complicated, there will be negotiations for more extensive changes. 1. On what needs to be done here. (actual blockers) 2. Or what should be in follow-up tickets with a commitment from someone/their company/library to work on it after these patches make it. (*no blockers* but very valuable to complete the feature, split in separate ticket to avoid stalling the the core patches) If it's hard to lock the functional scope, you could also if possible extract stuff from the current patches to make a minimum viable product. To avoid a stall. 3. Or just follow-up tickets without a commitment and if someone really wants an addition or change, then they would need to drive the effort. (to deflect stuff more suited for a christmas shopping list ^^) So, the game of balance between avoiding scope creep and avoiding design choices that would unnecessarily close doors for some workflows. In the hope that helps getting to accepted, stable, not overblown specs for this feature. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Sonia Bouis <sonia.bouis@univ-lyon3.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #69 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> --- Hello, I can't apply the patches on a ktd : kohadev-koha@kohadevbox:koha(closedstacks)$ git bz apply 38666 📋 Bug 38666 - Closed stack requests • 201180 - Bug 38666: Closed stack requests • 201181 - Bug 38666: [DO NOT PUSH] Update DBIC schema • 201182 - Bug 38666: Flag new columns as boolean (SQL12) • 201183 - Bug 38666: Fix CSRF error when cancelling closed stack request • 201184 - Bug 38666: Fix DBI error in pendingreserves.pl • 201185 - Bug 38666: Make checked out closed stack items holdable • 201186 - Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema • 201187 - Bug 38666: Disable hold suspension for closed stack requests at OPAC • 201188 - Bug 38666: Fix terminology on closed stack requests page Apply? [(y)es, (n)o, (i)nteractive] y Preparing 9 patch(es): ✓ Prepared 9 patch(es) Applying 9 patch(es): Patch application failed for attachment 201180 - Bug 38666: Closed stack requests Patches left in /tmp/3NB_re4sM9 for manual application if needed To resolve: 1. Fix conflicts (use 'git mergetool' or edit files manually) 2. Stage resolved files with 'git add' 3. Continue with 'git bz apply --continue' or 'git am --continue' 4. Or skip this patch with 'git bz apply --skip' 5. Or abort with 'git bz apply --abort' Error: Apply failed: Git command (git am -3 /tmp/3NB_re4sM9/0001-201180.patch) failed: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch hint: When you have resolved this problem, run "git am --continue". hint: If you prefer to skip this patch, run "git am --skip" instead. hint: To restore the original branch and stop patching, run "git am --abort". hint: Disable this message with "git config advice.mergeConflict false" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Irene Tortorella <i.tortorella@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i.tortorella@arts.ac.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 i.gray@arts.ac.uk <i.gray@arts.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i.gray@arts.ac.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #70 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207878 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207878&action=edit Bug 38666: Closed stack requests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #71 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207879 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207879&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #72 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207880 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207880&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #73 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207881 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207881&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #74 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207882 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207882&action=edit Bug 38666: Fix DBI error in pendingreserves.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #75 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207883 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207883&action=edit Bug 38666: Make checked out closed stack items holdable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #76 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207884 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207884&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #77 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207885 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207885&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #78 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207886 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207886&action=edit Bug 38666: Fix terminology on closed stack requests page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #79 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207887 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207887&action=edit Bug 38666: Resolve QA issues in the closed stack request series -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #201180|0 |1 is obsolete| | Attachment #201181|0 |1 is obsolete| | Attachment #201182|0 |1 is obsolete| | Attachment #201183|0 |1 is obsolete| | Attachment #201184|0 |1 is obsolete| | Attachment #201185|0 |1 is obsolete| | Attachment #201186|0 |1 is obsolete| | Attachment #201187|0 |1 is obsolete| | Attachment #201188|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #80 from Andrii Nugged <nugged@gmail.com> --- Rebased the original nine patches onto community main (1328267f64c78382d5048b66ecdba8905ed73f8d), preserving the original authors and commit messages. Added a separate QA follow-up for POD coverage, HTTPS GPL references, CSP nonces and formatting. No new functionality or request-processing changes are included in that follow-up. koha-qa.pl -c 10 reports no failures; the additional checks pass. The unchanged spelling warning concerns the copyright name Provence. The existing POD check for Koha/Template/Plugin/Biblio.pm is skipped because the file has no POD. Full-file formatter checks match all applicable touched files. The earlier nine attachments are retained as obsolete history. The Signed-off-by trailers in the original patches are historical; no new sign-off of this rebase is claimed. Functional review and sign-off of the new series are still needed. Would the community prefer closed stack requests to be optional through a system preference? We have a separate follow-up candidate that enables or disables the feature, restoring ordinary request behaviour when disabled. If that option is wanted, we can prepare and submit the follow-up separately. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #81 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207922&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #82 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207923 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207923&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #83 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207924 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207924&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #84 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207925 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207925&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #85 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207926 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207926&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #86 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207927 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207927&action=edit Bug 38666: Make checked out closed stack items holdable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #87 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207928 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207928&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #88 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207929 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207929&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #89 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207930 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207930&action=edit Bug 38666: Fix terminology on closed stack requests page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #90 from Andrii Nugged <nugged@gmail.com> --- Created attachment 207931 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207931&action=edit Bug 38666: Resolve QA issues in the closed stack request series Document the existing closed stack filter and custom attribute helpers, use HTTPS in the GPL references, and add the standard CSP nonce to the existing inline scripts. Apply Koha's formatter to the affected method chain, template text and template parameter hash. This follow-up leaves the preceding nine patches and their original messages intact. It adds no functionality or request processing changes. Automated checks: 1. Apply the preceding nine patches and this follow-up. 2. Run koha-qa.pl -c 10 on the complete series. 3. Run misc/devel/tidy.pl --silent --no-write for the touched files. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207878|0 |1 is obsolete| | Attachment #207879|0 |1 is obsolete| | Attachment #207880|0 |1 is obsolete| | Attachment #207881|0 |1 is obsolete| | Attachment #207882|0 |1 is obsolete| | Attachment #207883|0 |1 is obsolete| | Attachment #207884|0 |1 is obsolete| | Attachment #207885|0 |1 is obsolete| | Attachment #207886|0 |1 is obsolete| | Attachment #207887|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #91 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> --- Hello, Thank you Andrii for reviewing these patches! I tested once again and everything seems ok : 1. Place an item in closed stacks -> OK 2. The button to request a closed stacks item is displayed via the OPAC -> OK 3. The request appears in the patron’s account under a “closed stacks” tab -> OK 4. You cannot request an item from the stacks if it has already been requested -> OK 5. You can place a hold on an item that has already been requested from the stacks -> OK 6. Add a CLOSED_STACK_SLIP notification (configuration in the Print section) -> OK 7. On the staff interface, if you’re logged into the branch where the item is held, you can see the pending request on the home page -> OK 8. There is a new “Closed Stacks Requests” section on the circulation homepage -> OK 9. The request is in the table dedicated to the closed stacks in the pending tab 10. Print the notification -> OK 11. Once the notification is printed, the request moves to the “printed slip” tab -> OK 11. The request can be viewed in a specific tab on the reader’s page -> OK 12. The request can be viewed in the “closed stacks” tab of the library record -> OK 13. Return the book -> it is set aside for the user and disappears from the circulation desk request tracking table -> OK Additionals tests : 14. If there are two items , one in closed stacks and the other in openshelves, only the one on closed stacks appears in the list of items that can be requested via the OPAC -> OK 15. You can place a hold on an item with a “not for loan” status 16. If there is one item on loan from the open shelves and one item available in closed stacks, in the OPAC, only the item on loan appears when you click “Holds,” and only the item in closed stacks appears when you click “Closed Stacks” -> OK 17. You can request a book from closed stacks using the “Closed Stacks” link on the staff interface -> OK -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Community Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207922|0 |1 is obsolete| | Attachment #207923|0 |1 is obsolete| | Attachment #207924|0 |1 is obsolete| | Attachment #207925|0 |1 is obsolete| | Attachment #207926|0 |1 is obsolete| | Attachment #207927|0 |1 is obsolete| | Attachment #207928|0 |1 is obsolete| | Attachment #207929|0 |1 is obsolete| | Attachment #207930|0 |1 is obsolete| | Attachment #207931|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #92 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208197 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208197&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #93 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208198 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208198&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #94 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208199&action=edit Bug 38666: Flag new columns as boolean (SQL12) Signed-off-by: thibault <thibault.keromnes@univ-paris8.fr> Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #95 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208200 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208200&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #96 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208201 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208201&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #97 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208202&action=edit Bug 38666: Make checked out closed stack items holdable Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #98 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208203 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208203&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #99 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208204 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208204&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #100 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208205 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208205&action=edit Bug 38666: Fix terminology on closed stack requests page Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #101 from Community Sandboxes <sandboxes@biblibre.com> --- Created attachment 208206 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208206&action=edit Bug 38666: Resolve QA issues in the closed stack request series Document the existing closed stack filter and custom attribute helpers, use HTTPS in the GPL references, and add the standard CSP nonce to the existing inline scripts. Apply Koha's formatter to the affected method chain, template text and template parameter hash. This follow-up leaves the preceding nine patches and their original messages intact. It adds no functionality or request processing changes. Automated checks: 1. Apply the preceding nine patches and this follow-up. 2. Run koha-qa.pl -c 10 on the complete series. 3. Run misc/devel/tidy.pl --silent --no-write for the touched files. Co-Authored-By: Loontik <loontik@nugged.team> Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Community Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #102 from Community Sandboxes <sandboxes@biblibre.com> --- Signed off using a sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nugged@gmail.com --- Comment #103 from Andrii Nugged <nugged@gmail.com> --- (In reply to Andrii Nugged from comment #80)
Would the community prefer closed stack requests to be optional through a system preference? We have a separate follow-up candidate that enables or disables the feature, restoring ordinary request behaviour when disabled. If that option is wanted, we can prepare and submit the follow-up separately.
Closed stack requests: on/off setting We have prepared an optional system preference, EnableClosedStackRequests, that turns the closed stack request feature on or off. When it is off, the closed stack options are hidden in the staff interface and the OPAC, and holds on these items follow the ordinary hold rules. Existing data is kept, so the feature can be switched back on later. It is on by default, so nothing changes for you unless you switch it off. Would you/anyone like this setting included in your Koha? Some our librarians not using this feature and confused to have it in interfase and asked to have it off. I can attach two extra commits with this feature here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nugged@gmail.com --- Comment #103 from Andrii Nugged <nugged@gmail.com> --- (In reply to Andrii Nugged from comment #80)
Would the community prefer closed stack requests to be optional through a system preference? We have a separate follow-up candidate that enables or disables the feature, restoring ordinary request behaviour when disabled. If that option is wanted, we can prepare and submit the follow-up separately.
Closed stack requests: on/off setting We have prepared an optional system preference, EnableClosedStackRequests, that turns the closed stack request feature on or off. When it is off, the closed stack options are hidden in the staff interface and the OPAC, and holds on these items follow the ordinary hold rules. Existing data is kept, so the feature can be switched back on later. It is on by default, so nothing changes for you unless you switch it off. Would you/anyone like this setting included in your Koha? Some our librarians not using this feature and confused to have it in interfase and asked to have it off. I can attach two extra commits with this feature here. --- Comment #104 from Andrii Nugged <nugged@gmail.com> --- (In reply to Andrii Nugged from comment #80)
Would the community prefer closed stack requests to be optional through a system preference? We have a separate follow-up candidate that enables or disables the feature, restoring ordinary request behaviour when disabled. If that option is wanted, we can prepare and submit the follow-up separately.
Closed stack requests: on/off setting We have prepared an optional system preference, EnableClosedStackRequests, that turns the closed stack request feature on or off. When it is off, the closed stack options are hidden in the staff interface and the OPAC, and holds on these items follow the ordinary hold rules. Existing data is kept, so the feature can be switched back on later. It is on by default, so nothing changes for you unless you switch it off. Would you/anyone like this setting included in your Koha? Some our librarians not using this feature and confused to have it in interfase and asked to have it off. I can attach two extra commits with this feature here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #105 from Sonia Bouis <sonia.bouis@univ-lyon3.fr> ---
Closed stack requests: on/off setting
Would you/anyone like this setting included in your Koha? Some our librarians not using this feature and confused to have it in interfase and asked to have it off.
We don't need it now but it can be nice to be able to switch it off. I will test it again with this setting. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #106 from Irene Tortorella <i.tortorella@arts.ac.uk> --- I'd like to support the proposal to introduce an optional EnableClosedStackRequests system preference on behalf of the University of the Arts London (UAL). Having the ability to enable or disable closed stack requests would be useful, particularly for libraries that may not need the functionality immediately but might wish to adopt it in the future. Thanks for considering this addition! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #107 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Irene Tortorella from comment #106)
I'd like to support the proposal to introduce an optional EnableClosedStackRequests system preference on behalf of the University of the Arts London (UAL).
Having the ability to enable or disable closed stack requests would be useful, particularly for libraries that may not need the functionality immediately but might wish to adopt it in the future.
Thanks for considering this addition!
I believe an on/off switch should be mandatory if the controls cannot be hidden in the OPAC by configuration otherwise. I haven't tested, but maybe this could be taken into account for QA or the devs/testers could add a comment? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #108 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212004 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212004&action=edit Bug 38666: Add EnableClosedStackRequests preference Allow libraries to switch off closed stack requests when the feature is not needed. Default to enabled to preserve the behavior of the existing proposed feature series. Add the fresh-install seed, an idempotent atomic update that preserves configured values, and the administration UI definition. Test plan: 1. Apply the existing Bug 38666 series and these follow-ups. 2. Run the database updater. With no existing preference, confirm EnableClosedStackRequests defaults to Enable. 3. Save Disable, rerun the atomic update and confirm it remains disabled. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #109 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212005 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212005&action=edit Bug 38666: Gate closed stack requests with a system preference The proposed feature always exposes its controls and applies special rules to flagged items. Libraries need to turn it off while retaining item flags and existing requests. Use the effective item predicate for circulation rules and request availability. Hide staff and OPAC controls when disabled, reject direct queue entry before actions, and treat existing requests as ordinary holds. Preserve stored flags, holds and printed-slip state. Ignore the closed-stack field in staff and queued batch edits while disabled. Apply ordinary edits normally without rewriting saved job arguments or frozen target IDs. Existing API data and permissions remain unchanged. False or missing preference values disable the feature; the preference definition installs the enabled default before this code. Test plan: Use the existing Bug 38666 series and its workflow to prepare a closed stack item. Rebase that series onto current main when needed. Before applying these follow-ups: 1. Open Circulation. Closed stack requests is visible and accessible. 2. Open the item's OPAC detail page. Closed stack request is available. 3. Search for EnableClosedStackRequests. The switch is not defined. Apply the follow-ups and run the database updater. After applying these follow-ups: 1. Set EnableClosedStackRequests to Disable in system preferences. 2. Open Circulation. Confirm Closed stack requests is absent, while Holds queue and Holds to pull remain available. 3. Visit /cgi-bin/koha/circ/closed-stack-requests.pl directly. Confirm it returns to the Circulation home page. 4. Open the same OPAC detail page. Confirm Closed stack request is absent and the ordinary Place hold link remains. 5. Open an old OPAC reserve URL with closed_stack_request=1. Confirm it shows the ordinary Placing a hold form. 6. Set the preference to Enable. Confirm both staff and OPAC controls return and the same OPAC URL shows the Closed stack request form. 7. With existing requests, toggle OFF then ON and confirm stored flags, holds and printed-slip state survive without converting title-level holds into closed stack requests. Automated tests: prove -v t/db_dependent/ClosedStackRequests.t Run t/cypress/integration/KohaTable/ClosedStackRequestsPreference_spec.ts. The DB suite also covers eligibility, ordinary holds, transfers, direct queue actions, item edit fields, and queued direct/regex batch edits. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #110 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212006 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212006&action=edit Bug 38666: Mark the closed stack regression test executable Match the Community QA file-permission rule for Perl tests with a shebang by setting the executable flag on ClosedStackRequests.t. Test plan: Run koha-qa.pl on the complete follow-up series and confirm the file_permissions check and DB-dependent regression both pass. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #111 from Andrii Nugged <nugged@gmail.com> --- In reply to Irene Tortorella (comment #106) and Katrin Fischer (comment #107): Thank you both. Attachments 212004-212006 add the proposed EnableClosedStackRequests preference to address this. Setting it to Disable hides the closed stack request controls in both the staff interface and the OPAC and disables the special request handling. Ordinary holds remain available. Existing item flags, requests and printed-slip state are preserved, so the feature can be enabled again later without losing that information. The preference defaults to Enable to preserve the behavior of the existing proposed series; the database update preserves any value already configured. I tested switching it off and back on in both interfaces, including an old OPAC request URL: while disabled, that URL opens the ordinary hold form. The test plan is in comment #109. The ten existing signed patches are unchanged; these new follow-ups need a fresh sign-off. Irene, Katrin, feedback on whether this meets your needs would be very welcome. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #112 from Irene Tortorella <i.tortorella@arts.ac.uk> --- (In reply to Andrii Nugged from comment #111)
In reply to Irene Tortorella (comment #106) and Katrin Fischer (comment #107):
Thank you both. Attachments 212004-212006 add the proposed EnableClosedStackRequests preference to address this.
Setting it to Disable hides the closed stack request controls in both the staff interface and the OPAC and disables the special request handling. Ordinary holds remain available. Existing item flags, requests and printed-slip state are preserved, so the feature can be enabled again later without losing that information.
The preference defaults to Enable to preserve the behavior of the existing proposed series; the database update preserves any value already configured.
I tested switching it off and back on in both interfaces, including an old OPAC request URL: while disabled, that URL opens the ordinary hold form. The test plan is in comment #109. The ten existing signed patches are unchanged; these new follow-ups need a fresh sign-off.
Irene, Katrin, feedback on whether this meets your needs would be very welcome.
Hi Andrii, Thanks for adding this preference. This is my first time trying to sign off a patch, so I’m still learning the process! I created a sandbox for bug 38666, but provisioning failed with: "Patch application failed for attachment 208197 - Bug 38666: Closed stack requests" "Failed to merge in the changes." Is there an existing test environment I could use, or a particular branch I should specify when creating the sandbox? I’d be happy to follow the test plan once I have it running. Thanks, Irene -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #113 from Andrii Nugged <nugged@gmail.com> --- In reply to Irene Tortorella from comment #112: Hi Irene, Thank you for trying this, and for sharing the error. I have reproduced the patch application failure, so this is not something you did wrong when creating the sandbox. The older base patches, which I left unchanged when adding the preference, have fallen behind current main. We are updating the complete series against the current codebase and will upload a rebased set of patches. I will post here again when the updated series is ready for another sandbox attempt. There is no need to troubleshoot your sandbox setup or choose a different branch in the meantime. Thank you for taking this on as your first sign-off! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #114 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212027 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212027&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #115 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212028 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212028&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #116 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212029 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212029&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #117 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212030 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212030&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #118 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212031 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212031&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #119 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212032 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212032&action=edit Bug 38666: Make checked out closed stack items holdable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #120 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212033 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212033&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #121 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212034 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212034&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #122 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212035 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212035&action=edit Bug 38666: Fix terminology on closed stack requests page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #123 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212036 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212036&action=edit Bug 38666: Resolve QA issues in the closed stack request series Document the existing closed stack filter and custom attribute helpers, use HTTPS in the GPL references, and add the standard CSP nonce to the existing inline scripts. Apply Koha's formatter to the affected method chain, template text and template parameter hash. This follow-up leaves the preceding nine patches and their original messages intact. It adds no functionality or request processing changes. Automated checks: 1. Apply the preceding nine patches and this follow-up. 2. Run koha-qa.pl -c 10 on the complete series. 3. Run misc/devel/tidy.pl --silent --no-write for the touched files. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #124 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212037 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212037&action=edit Bug 38666: Add EnableClosedStackRequests preference Allow libraries to switch off closed stack requests when the feature is not needed. Default to enabled to preserve the behavior of the existing proposed feature series. Add the fresh-install seed, an idempotent atomic update that preserves configured values, and the administration UI definition. Test plan: 1. Apply the existing Bug 38666 series and these follow-ups. 2. Run the database updater. With no existing preference, confirm EnableClosedStackRequests defaults to Enable. 3. Save Disable, rerun the atomic update and confirm it remains disabled. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #125 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212038 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212038&action=edit Bug 38666: Gate closed stack requests with a system preference The proposed feature always exposes its controls and applies special rules to flagged items. Libraries need to turn it off while retaining item flags and existing requests. Use the effective item predicate for circulation rules and request availability. Hide staff and OPAC controls when disabled, reject direct queue entry before actions, and treat existing requests as ordinary holds. Preserve stored flags, holds and printed-slip state. Ignore the closed-stack field in staff and queued batch edits while disabled. Apply ordinary edits normally without rewriting saved job arguments or frozen target IDs. Existing API data and permissions remain unchanged. False or missing preference values disable the feature; the preference definition installs the enabled default before this code. Test plan: Use the existing Bug 38666 series and its workflow to prepare a closed stack item. Rebase that series onto current main when needed. Before applying these follow-ups: 1. Open Circulation. Closed stack requests is visible and accessible. 2. Open the item's OPAC detail page. Closed stack request is available. 3. Search for EnableClosedStackRequests. The switch is not defined. Apply the follow-ups and run the database updater. After applying these follow-ups: 1. Set EnableClosedStackRequests to Disable in system preferences. 2. Open Circulation. Confirm Closed stack requests is absent, while Holds queue and Holds to pull remain available. 3. Visit /cgi-bin/koha/circ/closed-stack-requests.pl directly. Confirm it returns to the Circulation home page. 4. Open the same OPAC detail page. Confirm Closed stack request is absent and the ordinary Place hold link remains. 5. Open an old OPAC reserve URL with closed_stack_request=1. Confirm it shows the ordinary Placing a hold form. 6. Set the preference to Enable. Confirm both staff and OPAC controls return and the same OPAC URL shows the Closed stack request form. 7. With existing requests, toggle OFF then ON and confirm stored flags, holds and printed-slip state survive without converting title-level holds into closed stack requests. Automated tests: prove -v t/db_dependent/ClosedStackRequests.t Run t/cypress/integration/KohaTable/ClosedStackRequestsPreference_spec.ts. The DB suite also covers eligibility, ordinary holds, transfers, direct queue actions, item edit fields, and queued direct/regex batch edits. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #126 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212039 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212039&action=edit Bug 38666: Mark the closed stack regression test executable Match the Community QA file-permission rule for Perl tests with a shebang by setting the executable flag on ClosedStackRequests.t. Test plan: Run koha-qa.pl on the complete follow-up series and confirm the file_permissions check and DB-dependent regression both pass. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #127 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212040 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212040&action=edit Bug 38666: Reuse model policy for closed stack request controls Let data-driven controls rely on the existing model filters instead of checking EnableClosedStackRequests again in templates. Static navigation and server-side entry guards keep their own checks. Reuse the existing item resultset filter in forced_hold_level while retaining its early disabled return and its existing hold rules. The public hold filters already handle disabled requests before building SQL, so their private condition builder needs no second guard. Test the public filters rather than the private builder. Stored flags, disabled editing policy, queued edits and the handling of existing holds are unchanged. No new policy framework is added. Test plan: Before applying the patch: 1. Apply the existing Bug 38666 series and enable closed stack requests. 2. Prepare a closed stack item and a request using the original plan. 3. View its staff catalogue record and the patron's details. Confirm the closed stack request links and tabs are present. 4. View the staff home page, the OPAC record and the patron's OPAC account. Confirm their closed stack request controls are present. 5. Disable EnableClosedStackRequests. Revisit the same pages and confirm those controls disappear while ordinary holds remain. Apply the patch. After applying the patch: 1. Repeat the same checks with the preference enabled and disabled. 2. Confirm the visible results match those before applying the patch. Automated tests: prove -v t/db_dependent/ClosedStackRequests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #208197|0 |1 is obsolete| | Attachment #208198|0 |1 is obsolete| | Attachment #208199|0 |1 is obsolete| | Attachment #208200|0 |1 is obsolete| | Attachment #208201|0 |1 is obsolete| | Attachment #208202|0 |1 is obsolete| | Attachment #208203|0 |1 is obsolete| | Attachment #208204|0 |1 is obsolete| | Attachment #208205|0 |1 is obsolete| | Attachment #208206|0 |1 is obsolete| | Attachment #212004|0 |1 is obsolete| | Attachment #212005|0 |1 is obsolete| | Attachment #212006|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #128 from Andrii Nugged <nugged@gmail.com> --- In reply to Irene Tortorella from comment #112: Hi Irene, The complete series has been refreshed against current main. I checked that all 14 patches apply from a clean checkout without manual conflict resolution. The earlier versions remain available as obsolete attachments; this refreshed series needs a new sign-off. Please try creating the sandbox for bug 38666 again using main, then follow the preference test plan in comment #109. No special branch should be needed. Thank you for your patience! For developers: the database regression test and template compilation checks pass. The full QA run still reports three tt_valid failures for conditional HTML attributes, including unchanged attributes at shifted line numbers, and four tidiness warnings in generated DBIC files. Those outstanding checks are not being reported as a clean QA result. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #129 from Andrii Nugged <nugged@gmail.com> --- Hi Irene, Please hold off on testing and signing off this series for now. I am addressing the remaining template and generated-schema QA findings and will upload a refreshed series before asking you to try again. I will confirm here when it is ready. Sorry for the premature request to retry. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #130 from Andrii Nugged <nugged@gmail.com> --- Hi Irene, Please hold off on testing and signing off this series for now. I am addressing the remaining template and generated-schema QA findings and will upload a refreshed series before asking you to try again. I will confirm here when it is ready. Sorry for the premature request to retry. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #131 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212080 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212080&action=edit Bug 38666: (QA follow-up) Resolve template and DBIC style findings Keep conditional classes inside quoted HTML attribute values. Capture item status once and put the conditional data-order attribute on two balanced cell wrappers, without duplicating the cell body or adding an attribute to items without a loan. Align the four new DBIC column declarations with generated-file indentation. Do not reformat unrelated generated metadata. Test plan: 1. Apply the complete series and run the Community QA tools over it. 2. Confirm template validation and DBIC tidiness checks pass. 3. Confirm closed stack links, tabs and item status cells retain their existing enabled and disabled behavior. Regression evidence includes template compilation, all conditional class combinations, and item status rendering with escaped values and single execution of the original cell body. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #132 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212081 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212081&action=edit Bug 38666: Preserve the retrieval queue across hold operations Do not automatically mark a new closed stack request as waiting when ReservesNeedReturns allows ordinary local holds to become waiting. The item must first pass through retrieval. Use an item membership subquery instead of a has-many reserves join in filter_by_for_hold, so multiple holds do not multiply item rows. Exclude current closed stack requests from bulk suspension. Keep bulk resume inclusive so an already suspended hold can still be resumed. Disabled behavior and existing hold classification are unchanged. Test plan: Before applying this follow-up, with the preceding CSR patches applied: 1. Enable EnableClosedStackRequests. 2. Set ReservesNeedReturns to Automatically. 3. Prepare a checked-in closed stack item without another hold. 4. Open its staff record's Closed stack requests view. 5. Select a patron, select the item, and click Place hold with pickup at the item's holding library. 6. Observe that the item is already Waiting, before retrieval. 7. In the OPAC, use a patron with an ordinary hold and a pending closed stack request. 8. Open Holds and click Suspend all holds. 9. Confirm Yes, suspend all holds. Observe that the closed stack request also becomes suspended and leaves its separate tab. Apply this follow-up. After applying this follow-up: 1. Repeat the placement flow with a fresh checked-in closed stack item. 2. Confirm it remains a closed stack request and is not Waiting. 3. Repeat Suspend all holds for an ordinary hold and a pending request. 4. Confirm only the ordinary hold is suspended; the closed stack request remains pending in its separate tab. 5. Resume all suspended holds and confirm ordinary holds can resume. Automated regression also covers both item-level_itypes settings, multiple holds per item, caller filters, ordinary holds, disabled mode, and resuming previously suspended holds: prove -v t/db_dependent/ClosedStackRequests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #133 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212082 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212082&action=edit Bug 38666: Restrict queue actions to eligible closed stack requests Resolve print and cancel targets through the same closed stack and library filters used to display the retrieval queue. Reject missing or out-of-scope targets with 404 before preparing a slip, marking it as printed, or cancelling the hold. Authentication and CSRF checks remain in place. Ordinary holds and requests outside the active library scope must not become action targets merely because their reserve_id was submitted. Test plan: Before applying this follow-up: 1. Apply the preceding closed stack request patches. 2. Run the new regression test without this handler change. The ordinary and foreign-library print/cancel cases fail because they are accepted. Apply this follow-up. After applying this follow-up: 1. Run the same regression test and confirm it passes. 2. Confirm eligible requests still print and cancel successfully. 3. Confirm rejected requests leave the hold and printed state unchanged. Automated regression: prove -v t/db_dependent/ClosedStackRequestActions.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #134 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212083 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212083&action=edit Bug 38666: Separate closed stack requests in record hold tables Apply the selected view to the actual REST rows as well as the visible hold count. Add an optional closed_stack_request selector to the current holds endpoint; omitted selectors preserve the existing all-holds list. Old holds reject this active classification selector. Use a filtered ID subquery so the model's item join does not make public query parameters such as biblio_id ambiguous. Keep priority choices based on the complete record queue, including holds outside the visible view. Test plan: Before applying this follow-up, with the preceding CSR patches applied: 1. Prepare one ordinary hold and one pending closed stack request on different items of the same record. 2. Open the record's Holds view in the staff interface. 3. Observe that both holds appear although the navigation count is one. 4. Open Closed stack requests. Observe the same mixed table. Apply this follow-up and rebuild the normal API assets. After applying this follow-up: 1. Open the same record's Holds view. 2. Confirm it contains only the ordinary hold. 3. Open Closed stack requests. 4. Confirm it contains only the closed stack request. 5. Open a priority selector and confirm the complete queue's priorities remain available in either view. Automated regression covers true, false and omitted selectors with the preference enabled and disabled, query parameters, embeds, pagination, and old-hold compatibility: prove -v t/db_dependent/api/v1/closed_stack_requests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #135 from Andrii Nugged <nugged@gmail.com> --- QA issues fixed. I also found and fixed problems with request placement, bulk suspension, queue actions and mixed hold tables. The whole 18-patch series now passes QA: no failures or warnings. Please try a fresh sandbox from main and follow the test plan in comment #109, plus the new follow-up plans. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #136 from Irene Tortorella <i.tortorella@arts.ac.uk> --- (In reply to Andrii Nugged from comment #135)
QA issues fixed. I also found and fixed problems with request placement, bulk suspension, queue actions and mixed hold tables.
The whole 18-patch series now passes QA: no failures or warnings.
Please try a fresh sandbox from main and follow the test plan in comment #109, plus the new follow-up plans.
Hi Andrii, Just a quick update: I’m waiting for Open Fifth to give me contributor access to their new sandbox system. Once that’s set up, I’ll try testing the patches there and follow the test plan. Thanks for your patience! Irene -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #137 from Irene Tortorella <i.tortorella@arts.ac.uk> --- Hi Andrii, I've just tried creating a fresh sandbox on main (MARC21) and the patches no longer apply. Patch application fails on attachment 212027 with the following error: error: Failed to merge in the changes. Could you please rebase the patches when you have a chance? I'd be happy to test again once they're ready. Thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #138 from Andrii Nugged <nugged@gmail.com> --- Koha moves now on release days faster and patches requires rebase more often. Doing... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #139 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212818 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212818&action=edit Bug 38666: Closed stack requests A closed stack request is a special kind of hold that can only be placed on a closed stack item. A closed stack item is an item that is not available publicly in the library but can be made available on demand. When a request is made, a librarian will print a slip then will go retrieve the document and place the slip in place of the document. Internally, a closed stack item is an item that is flagged as "closed stack" (new column items.is_closed_stack). The flag can be modified on the biblio "Items" tab. The new column can also be mapped to an item MARC subfield. An item is available for a closed stack request only if: - it is flagged as "closed stack" - there is no holds on it - it is not checked out - it is not in transfer If any of the above conditions is false, it is not available for a closed stack request but it can be available for a regular hold. In particular this means that once a closed stack request has been made on a particular item, this item can now be reserved using regular holds. Closed stack requests behave like regular holds, with the following exceptions: - They can only be placed on a specific item (item-level hold is forced) - They can be placed on "not for loan" items - They bypass the "onshelfholds" circulation rule - They cannot be cancelled from OPAC There is a new page "Closed stack requests" accessible from the circulation menu that lists all pending closed stack requests. From there it is possible to cancel requests or to print a slip (letter code CLOSED_STACK_SLIP in 'reserves' module) Once the slip is printed, closed stack requests move to another tab in the same page. The patch also adds a template plugin 'GD.Barcode' that allows to include a barcode image inside a letter. Useful to be able to scan the printed closed stack request slip. Example usage: [% USE GD.Barcode %] <img src="[% GD.Barcode.create_as_data_url('Code39', hold.item.barcode) | html %]"> Test plan: 1. Apply the patch: a. apply patch, b. run updatedatabase.pl and `update_dbix_class_files.pl --force`, c. run `yarn run build`, d. and finally restart koha 2. Create a biblio with two items. 3. On the biblio detail page, click on the "Items" tab 4. For one of the two items, change the "Closed stack" status from No to Yes 5. Notice there is now a "closed stack requests" tab on the left, and a "closed stack request" button in the toolbar 6. Click on "Place hold" and select a patron. Notice there is only one item displayed in the table (the non-"closed stack" item) 7. Go back to the biblio detail view and click on the "Closed stack request" button. Select a patron. Notice there is only one item displayed in the table (the "closed stack" item). 8. Select this item and click on "Place hold". You should be redirected to the "Closed stack requests" tab where you can see the request that you just made 9. Try to place a regular hold again. This time you should see both items in the table. 10. Go to Tools » Notices and slips 11. Create a new notice in the Holds module with code CLOSED_STACK_SLIP. Add content in the "Print" message. 12. Go to Circulation » Closed stack requests 13. You have two tabs: "Pending" and "Slip printed", you should have one request under the pending tab, and zero under the other one. 14. Click on the "Print closed stack request slip" button, in the "pending" table. A printer dialog should open, close it. The "Closed stack requests" should have been automatically refreshed, showing you an empty "pending" tab, while the "Slip printed" tab now contains the previously pending request. 15. Cancel the closed stack request. 16. Login to OPAC, find your biblio record and place a closed stack request. Like from the staff interface, only the closed stack item should be in the items table, and it should not be possible to place a biblio-level request 17. In your account page, verify that the closed stack request appear under the new tab "Closed stack requests" and that there is no "Cancel" button 18. Go back to the staff interface main page. You should see an alert at the bottom: "Pending closed stack requests: 1". Clicking on it should redirect you to the closed stack requests page seen earlier (step 12) 19. Set the closed stack item as "notforloan", either by editing the item or its item type. Verify that you can still do closed stack requests 20. Change circulation rules to forbid on-shelf holds on the closed stack item and verify that you can still do closed stack requests. Sponsored-by: Université de Lyon 3 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #140 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212819 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212819&action=edit Bug 38666: [DO NOT PUSH] Update DBIC schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #141 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212820 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212820&action=edit Bug 38666: Flag new columns as boolean (SQL12) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #142 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212821 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212821&action=edit Bug 38666: Fix CSRF error when cancelling closed stack request -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #143 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212822 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212822&action=edit Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #144 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212823 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212823&action=edit Bug 38666: Make checked out closed stack items holdable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #145 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212824 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212824&action=edit Bug 38666: Add closed_stack_request_slip_printed to OpenAPI hold schema -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #146 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212825 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212825&action=edit Bug 38666: Disable hold suspension for closed stack requests at OPAC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #147 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212826 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212826&action=edit Bug 38666: Fix terminology on closed stack requests page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #148 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212827 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212827&action=edit Bug 38666: Resolve QA issues in the closed stack request series Document the existing closed stack filter and custom attribute helpers, use HTTPS in the GPL references, and add the standard CSP nonce to the existing inline scripts. Apply Koha's formatter to the affected method chain, template text and template parameter hash. This follow-up leaves the preceding nine patches and their original messages intact. It adds no functionality or request processing changes. Automated checks: 1. Apply the preceding nine patches and this follow-up. 2. Run koha-qa.pl -c 10 on the complete series. 3. Run misc/devel/tidy.pl --silent --no-write for the touched files. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #149 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212828 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212828&action=edit Bug 38666: Add EnableClosedStackRequests preference Allow libraries to switch off closed stack requests when the feature is not needed. Default to enabled to preserve the behavior of the existing proposed feature series. Add the fresh-install seed, an idempotent atomic update that preserves configured values, and the administration UI definition. Test plan: 1. Apply the existing Bug 38666 series and these follow-ups. 2. Run the database updater. With no existing preference, confirm EnableClosedStackRequests defaults to Enable. 3. Save Disable, rerun the atomic update and confirm it remains disabled. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #150 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212829 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212829&action=edit Bug 38666: Gate closed stack requests with a system preference The proposed feature always exposes its controls and applies special rules to flagged items. Libraries need to turn it off while retaining item flags and existing requests. Use the effective item predicate for circulation rules and request availability. Hide staff and OPAC controls when disabled, reject direct queue entry before actions, and treat existing requests as ordinary holds. Preserve stored flags, holds and printed-slip state. Ignore the closed-stack field in staff and queued batch edits while disabled. Apply ordinary edits normally without rewriting saved job arguments or frozen target IDs. Existing API data and permissions remain unchanged. False or missing preference values disable the feature; the preference definition installs the enabled default before this code. Test plan: Use the existing Bug 38666 series and its workflow to prepare a closed stack item. Rebase that series onto current main when needed. Before applying these follow-ups: 1. Open Circulation. Closed stack requests is visible and accessible. 2. Open the item's OPAC detail page. Closed stack request is available. 3. Search for EnableClosedStackRequests. The switch is not defined. Apply the follow-ups and run the database updater. After applying these follow-ups: 1. Set EnableClosedStackRequests to Disable in system preferences. 2. Open Circulation. Confirm Closed stack requests is absent, while Holds queue and Holds to pull remain available. 3. Visit /cgi-bin/koha/circ/closed-stack-requests.pl directly. Confirm it returns to the Circulation home page. 4. Open the same OPAC detail page. Confirm Closed stack request is absent and the ordinary Place hold link remains. 5. Open an old OPAC reserve URL with closed_stack_request=1. Confirm it shows the ordinary Placing a hold form. 6. Set the preference to Enable. Confirm both staff and OPAC controls return and the same OPAC URL shows the Closed stack request form. 7. With existing requests, toggle OFF then ON and confirm stored flags, holds and printed-slip state survive without converting title-level holds into closed stack requests. Automated tests: prove -v t/db_dependent/ClosedStackRequests.t Run t/cypress/integration/KohaTable/ClosedStackRequestsPreference_spec.ts. The DB suite also covers eligibility, ordinary holds, transfers, direct queue actions, item edit fields, and queued direct/regex batch edits. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #151 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212830 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212830&action=edit Bug 38666: Mark the closed stack regression test executable Match the Community QA file-permission rule for Perl tests with a shebang by setting the executable flag on ClosedStackRequests.t. Test plan: Run koha-qa.pl on the complete follow-up series and confirm the file_permissions check and DB-dependent regression both pass. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #152 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212831 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212831&action=edit Bug 38666: Reuse model policy for closed stack request controls Let data-driven controls rely on the existing model filters instead of checking EnableClosedStackRequests again in templates. Static navigation and server-side entry guards keep their own checks. Reuse the existing item resultset filter in forced_hold_level while retaining its early disabled return and its existing hold rules. The public hold filters already handle disabled requests before building SQL, so their private condition builder needs no second guard. Test the public filters rather than the private builder. Stored flags, disabled editing policy, queued edits and the handling of existing holds are unchanged. No new policy framework is added. Test plan: Before applying the patch: 1. Apply the existing Bug 38666 series and enable closed stack requests. 2. Prepare a closed stack item and a request using the original plan. 3. View its staff catalogue record and the patron's details. Confirm the closed stack request links and tabs are present. 4. View the staff home page, the OPAC record and the patron's OPAC account. Confirm their closed stack request controls are present. 5. Disable EnableClosedStackRequests. Revisit the same pages and confirm those controls disappear while ordinary holds remain. Apply the patch. After applying the patch: 1. Repeat the same checks with the preference enabled and disabled. 2. Confirm the visible results match those before applying the patch. Automated tests: prove -v t/db_dependent/ClosedStackRequests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #153 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212832 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212832&action=edit Bug 38666: (QA follow-up) Resolve template and DBIC style findings Keep conditional classes inside quoted HTML attribute values. Capture item status once and put the conditional data-order attribute on two balanced cell wrappers, without duplicating the cell body or adding an attribute to items without a loan. Align the four new DBIC column declarations with generated-file indentation. Do not reformat unrelated generated metadata. Test plan: 1. Apply the complete series and run the Community QA tools over it. 2. Confirm template validation and DBIC tidiness checks pass. 3. Confirm closed stack links, tabs and item status cells retain their existing enabled and disabled behavior. Regression evidence includes template compilation, all conditional class combinations, and item status rendering with escaped values and single execution of the original cell body. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #154 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212833 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212833&action=edit Bug 38666: Preserve the retrieval queue across hold operations Do not automatically mark a new closed stack request as waiting when ReservesNeedReturns allows ordinary local holds to become waiting. The item must first pass through retrieval. Use an item membership subquery instead of a has-many reserves join in filter_by_for_hold, so multiple holds do not multiply item rows. Exclude current closed stack requests from bulk suspension. Keep bulk resume inclusive so an already suspended hold can still be resumed. Disabled behavior and existing hold classification are unchanged. Test plan: Before applying this follow-up, with the preceding CSR patches applied: 1. Enable EnableClosedStackRequests. 2. Set ReservesNeedReturns to Automatically. 3. Prepare a checked-in closed stack item without another hold. 4. Open its staff record's Closed stack requests view. 5. Select a patron, select the item, and click Place hold with pickup at the item's holding library. 6. Observe that the item is already Waiting, before retrieval. 7. In the OPAC, use a patron with an ordinary hold and a pending closed stack request. 8. Open Holds and click Suspend all holds. 9. Confirm Yes, suspend all holds. Observe that the closed stack request also becomes suspended and leaves its separate tab. Apply this follow-up. After applying this follow-up: 1. Repeat the placement flow with a fresh checked-in closed stack item. 2. Confirm it remains a closed stack request and is not Waiting. 3. Repeat Suspend all holds for an ordinary hold and a pending request. 4. Confirm only the ordinary hold is suspended; the closed stack request remains pending in its separate tab. 5. Resume all suspended holds and confirm ordinary holds can resume. Automated regression also covers both item-level_itypes settings, multiple holds per item, caller filters, ordinary holds, disabled mode, and resuming previously suspended holds: prove -v t/db_dependent/ClosedStackRequests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #155 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212834&action=edit Bug 38666: Restrict queue actions to eligible closed stack requests Resolve print and cancel targets through the same closed stack and library filters used to display the retrieval queue. Reject missing or out-of-scope targets with 404 before preparing a slip, marking it as printed, or cancelling the hold. Authentication and CSRF checks remain in place. Ordinary holds and requests outside the active library scope must not become action targets merely because their reserve_id was submitted. Test plan: Before applying this follow-up: 1. Apply the preceding closed stack request patches. 2. Run the new regression test without this handler change. The ordinary and foreign-library print/cancel cases fail because they are accepted. Apply this follow-up. After applying this follow-up: 1. Run the same regression test and confirm it passes. 2. Confirm eligible requests still print and cancel successfully. 3. Confirm rejected requests leave the hold and printed state unchanged. Automated regression: prove -v t/db_dependent/ClosedStackRequestActions.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #156 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212835 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212835&action=edit Bug 38666: Separate closed stack requests in record hold tables Apply the selected view to the actual REST rows as well as the visible hold count. Add an optional closed_stack_request selector to the current holds endpoint; omitted selectors preserve the existing all-holds list. Old holds reject this active classification selector. Use a filtered ID subquery so the model's item join does not make public query parameters such as biblio_id ambiguous. Keep priority choices based on the complete record queue, including holds outside the visible view. Test plan: Before applying this follow-up, with the preceding CSR patches applied: 1. Prepare one ordinary hold and one pending closed stack request on different items of the same record. 2. Open the record's Holds view in the staff interface. 3. Observe that both holds appear although the navigation count is one. 4. Open Closed stack requests. Observe the same mixed table. Apply this follow-up and rebuild the normal API assets. After applying this follow-up: 1. Open the same record's Holds view. 2. Confirm it contains only the ordinary hold. 3. Open Closed stack requests. 4. Confirm it contains only the closed stack request. 5. Open a priority selector and confirm the complete queue's priorities remain available in either view. Automated regression covers true, false and omitted selectors with the preference enabled and disabled, query parameters, embeds, pagination, and old-hold compatibility: prove -v t/db_dependent/api/v1/closed_stack_requests.t Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212027|0 |1 is obsolete| | Attachment #212028|0 |1 is obsolete| | Attachment #212029|0 |1 is obsolete| | Attachment #212030|0 |1 is obsolete| | Attachment #212031|0 |1 is obsolete| | Attachment #212032|0 |1 is obsolete| | Attachment #212033|0 |1 is obsolete| | Attachment #212034|0 |1 is obsolete| | Attachment #212035|0 |1 is obsolete| | Attachment #212036|0 |1 is obsolete| | Attachment #212037|0 |1 is obsolete| | Attachment #212038|0 |1 is obsolete| | Attachment #212039|0 |1 is obsolete| | Attachment #212040|0 |1 is obsolete| | Attachment #212080|0 |1 is obsolete| | Attachment #212081|0 |1 is obsolete| | Attachment #212082|0 |1 is obsolete| | Attachment #212083|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666 --- Comment #157 from Irene Tortorella <i.tortorella@arts.ac.uk> --- We noticed something when testing Closed stack requests. With a regular title-level reservation/hold pending, we checked in/returned a closed stack item attached to the same bibliographic record. Koha identified that item as available to fulfil the reservation/hold. Is that the expected behaviour? If an item is a closed stack item, making it available to fulfil a regular reservation/hold seems to defeat the purpose of its closed stack status. A user should be able to request that specific item for consultation through Closed stack requests. A regular title-level reservation/hold should stay pending until an eligible reservable item is available. Can we configure Koha to issue an item through Closed stack requests but keep that item with Closed stack status out of fulfilment for regular title-level reservations/holds? -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org