This is a follow-up to Bug 25037 that adds issues.checkout_type column for determining the type of checkout (currently only normal and on-site are supported). This Bug adds a new authorised value category, CHECKOUT_TYPE and adds the current checkout types as authorised values. Librarians can then add their own checkout types via authorised values user interface. However this does not yet add support for checking out items with dynamically created checkout types.
Created attachment 102667 [details] [review] Bug 25103: Add authorised value for checkout types This commit adds an authorised value category "CHECKOUT_TYPE" and an authorised value "ONSITE" (on-site) and "CHECKOUT" (normal checkout). To test: 1. perl installer/data/mysql/updatedatabase.pl Sponsored-by: The National Library of Finland
Created attachment 102668 [details] [review] Bug 25103: Add authorised values to sample data Sponsored-by: The National Library of Finland
Created attachment 102669 [details] [review] Bug 25103: Validate checkout_type in Koha::Checkout->store This patch adds a validation for checkout_type value when storing a Koha::Checkout To test: 1. prove t/db_dependent/Koha/Checkouts.t Sponsored-by: The National Library of Finland
Created attachment 102670 [details] [review] Bug 25103: Schema changes Sponsored-by: The National Library of Finland
Created attachment 102671 [details] [review] Bug 25103: Add authorised value for checkout types This commit adds an authorised value category "CHECKOUT_TYPE" and an authorised value "ONSITE" (on-site) and "CHECKOUT" (normal checkout). To test: 1. perl installer/data/mysql/updatedatabase.pl Sponsored-by: The National Library of Finland
Created attachment 102672 [details] [review] Bug 25103: Schema changes Sponsored-by: The National Library of Finland
Created attachment 102673 [details] [review] Bug 25103: Add authorised values to sample data Sponsored-by: The National Library of Finland
Created attachment 102674 [details] [review] Bug 25103: Validate checkout_type in Koha::Checkout->store This patch adds a validation for checkout_type value when storing a Koha::Checkout To test: 1. prove t/db_dependent/Koha/Checkouts.t Sponsored-by: The National Library of Finland
Changed to in discussion. Do we need dynamic checkout types? When I was working on Bug 25037 I thought why not have it - we could have a drop down list of checkout types in the checkout screen. If a library ever needs more types than normal and on-site, instead of adding more hardcoded code, they could simply add a new checkout type as an authorised value and the type would appear in the list. I don't consider this as a very important Bug so I won't get hurt much if it never moves on.