Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart b7d47ac66b Bug 10859: Alert if a borrower already has an issue for the same biblio
This patch adds a new system preference, AllowMultipleIssuesOnABiblio.

If this system preference is OFF, an alert is raised if a patron
tries to check out an item even when they already have a different
item checked out from that bib.

The librarian can force the checkout anyway.

It doesn't alert the librarian if the biblio is a subscription

Test plan:
1. Create a biblio with at least 2 items
2. Checkout the first item for a borrower
3. Set syspref AllowMultipleIssuesOnABiblio to OFF.
4. Try to checkout the second item with the same borrower. A message
should appear telling you that this borrower already borrowed an item
from this biblio.
If you have the permission 'force_checkout' You should also see two
buttons to confirm (or not) the checkout
5. Click on 'No'. The checkout is not done
6. Repeat step 4 and click 'Yes', the checkout is done.
7. Return the second item.
8. Set syspref AllowMultipleIssuesOnABiblio to ON
9. Try to checkout the second item with the same borrower. This time
the checkout is done without warnings.

Followed test plan. Works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass, works well. Tested:

* Permission to override
  * check out a second item from a record with subscriptions works
  * check out a second item from a 'normal' record is warned about,
  but can be done

* No permission to override
  * subscription item: can be checked out
  * normal item: can't be checked out

* Feature turned off
  * Check out never warns/blocks

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-21 05:28:05 +00:00
..
acqui Bug 7288: (follow-up) set a boolean if the invoice if linked to subscriptions 2014-04-21 05:02:48 +00:00
admin Bug 10859: Alert if a borrower already has an issue for the same biblio 2014-04-21 05:28:05 +00:00
authorities
basket
batch
catalogue Bug 11912: (refactoring followup) make GetMarcISBN implement its advertised API 2014-04-19 18:23:15 +00:00
cataloguing Bug 12071: improve generation of Z39.50 search links 2014-04-18 15:37:56 +00:00
circ Bug 10859: Alert if a borrower already has an issue for the same biblio 2014-04-21 05:28:05 +00:00
course_reserves Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
errors
help Bug 11403: (follow-up) Fix typo in renew help 2014-03-14 14:43:02 +00:00
installer
labels Bug 11946 - add table sorters to label batches 2014-03-31 14:22:26 +00:00
members Bug 11869: (follow-up) only display active fines 2014-04-18 14:55:36 +00:00
offline_circ
patron_lists Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
patroncards Bug 12018 - add table sorting to patron card batches 2014-04-03 14:59:30 +00:00
plugins
reports Bug 11718 - Use new DataTables include in reports templates 2014-03-12 17:33:25 +00:00
reserve Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
reviews
rotating_collections
serials Bug 12003: Do not calculate next pubdate for irregular subscriptions 2014-04-18 20:57:51 +00:00
services
sms
suggestion Bug 11686: make "please note your reason here..." translatable 2014-03-12 14:26:36 +00:00
tags Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
test
tools Bug 11253: tools/inventory.pl: fix handling of inventory date 2014-04-20 15:03:36 +00:00
virtualshelves Bug 8262: explicitly warn that database admin account cannot create lists 2014-04-20 22:55:22 +00:00
z3950
about.tt Bug 11596: (follow-up) ensure all warnings are reported 2014-04-20 17:07:48 +00:00
auth.tt
intranet-main.tt Bug 10415 - Add course reserves to staff client home page 2014-03-12 18:15:24 +00:00