As our circulation GUI is not perfect (yet) it would be nice if it offered a similar feature to the bibliographic frameworks, allowing to export/import the rules using CSV or spreadsheet files. This would make it much easier to update rules in bulk and keep track of changes to them as you could archive different versions easily too.
This would be a very useful feature. The layout is currently so large that it is difficult to see all the relevant information for a circ rule on one screen.
The Loan Rules can be very complex and intricate. It would be nice to be able to export them, and be able to "slice" them different ways outside of Koha to understand their inter-relations. For bonus credit, once this is done someone could make a spreadsheet/database/application that would be a "Loan Rules Simulator" where one could alter Loan Rule parameters in the app, then enter a branch, an item type, a patron type, and a transaction type (checkin, checkout, renew, place a hold, etc.) to see what would happen.
Created attachment 133280 [details] [review] Bug 18392: use KohaTable for circ rules to allow export of matrix To test: 1 - Define some circ rules 2 - View them, note the appearance 3 - Apply patch 4 - Reload and note change of header 5 - Use the new button to export, try various formats 6 - Test the filter and export
Created attachment 133281 [details] [review] Bug 18392: Add noExport of rows and don't export 'edit' row
Created attachment 133283 [details] [review] Bug 18392: use KohaTable for circ rules to allow export of matrix To test: 1 - Define some circ rules 2 - View them, note the appearance 3 - Apply patch 4 - Reload and note change of header 5 - Use the new button to export, try various formats 6 - Test the filter and export Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Created attachment 133284 [details] [review] Bug 18392: Add noExport of rows and don't export 'edit' row Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Created attachment 133339 [details] [review] Bug 18392: use KohaTable for circ rules to allow export of matrix To test: 1 - Define some circ rules 2 - View them, note the appearance 3 - Apply patch 4 - Reload and note change of header 5 - Use the new button to export, try various formats 6 - Test the filter and export Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 133340 [details] [review] Bug 18392: Add noExport of rows and don't export 'edit' row Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 22.05, thanks to everybody involved [U+1F984]
I have filed a new bug 30589 to cover importing as I think this would make editing much more fun :)
Pushed to 21.11.x for 21.11.06
Backported by request!
Not backported to 21.05. Please request if needed.
Documentation merge request merged.