]> git.koha-community.org Git - koha.git/commit
Bug 35906: Add bookable option on itemtype
authorThibaud Guillot <thibaud.guillot@biblibre.com>
Thu, 25 Jan 2024 13:14:07 +0000 (14:14 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 25 Oct 2024 13:34:40 +0000 (15:34 +0200)
commit39891095a63b43ad0cfa74acb192e186c8b68706
treea03d9ba4eed587602787249c5ef512a6bbc8938d
parent94210ae47111210739daf12d801d8b5b472b0932
Bug 35906: Add bookable option on itemtype

Actually new "booking" feature can be set on an item but no directly on
an itemtype. This patch adds this possibility.

Test plan:
1) Test this new feature on an item as it were currently working.
2) Apply this patch
3) Run updatedatabase.pl
4) Reload Schema by running update_dbix_class_files.pl
5) Change new syspref 'item-level_booking' to 'itemtype'
6) Edit an itemtype, there is a new checkbox to add 'bookable' option
7) Test it with item with this itemtype, if there is 1 item at least you
   will see 'Booking' tab.
8) You can change syspref to 'item' to see the current behavior

Note: When item-level_booking is set on 'itemtype' you can change
dropdown option to 'No' on item bookable option.

Sponsored by: Association de Gestion des Ĺ’uvres Sociales d'Inria (AGOS)
Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/ItemType.pm
Koha/Items.pm
Koha/REST/V1/Biblios.pm
admin/itemtypes.pl
installer/data/mysql/atomicupdate/Bug_35906_add-column-bookable-itemtype.pl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt