Bug 9525: Add option to define float groups and rules for float
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Wed, 8 Sep 2021 05:58:14 +0000 (08:58 +0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Oct 2023 20:40:10 +0000 (16:40 -0400)
commit7c22b12240a94413ccd6920e5b4fb5e4cc96bd1a
treec400cfe40f195665601c1a8dc7157a648ce42c61
parent2e5d60a83b80cae5ce0a78c747f722548d100fc5
Bug 9525: Add option to define float groups and rules for float

Bug 22284 introduced ability to create hold groups.
We should have ability to create float groups in
same manner. This patch adds checkbox "Is local
float group" to group creation feature and new return
policy "Item floats by librarygroup".

To test:
1. Add new float group and some libraries to it.
2. From circulation and fine rules, set default
return policy as "Item floats by library group".
3. Check out an item for a patron.
4. Set library as one that belongs in the same
float group.
5. Check in the item.
=> Observe that notice for transfer doesn't pop up.
6. Check out again.
7. This time set library as one that doen's
belong in the same float group.
8. Check in.
=> Observe that notice for transfer pops up.

Experiment this feature by changing return policy
per library, item type etc.

Also prove t/db_dependent/Koha/Libraries.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Lisette Scheer <lisettePalouse+Koha@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
Koha/Library.pm
admin/library_groups.pl
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
t/db_dependent/Koha/Libraries.t