Koha/koha-tmpl/intranet-tmpl/prog/js
Andrew Isherwood 5f3c849014 Bug 7088: (follow-up) Modify checkbox enabling
As described in comment #50, we need to only enable renewal on items
that are disabled in line with which sysprefs are enabled. So we now
only enable renewal of on hold items if the AllowRenewalOnHoldOverride
syspref is on and we only enable renewal of all other limited items
when the AllowRenewalLimitOverride syspref is on.

NOTE: The test plan below has changed substantially from previous
iterations

Test plan (you might want to make a coffee first...):

- Apply patch
- Rebuild CSS

- Go to the Patron Details page for a patron who has an item on loan that would fulfil an outstanding loan request.
- The patron also needs to have an item on loan that cannot be renewed for some other reason, say renewal limit has been reached
=> TEST: Observe that it is NOT possible to select either item for renewal

- Enable the "AllowRenewalLimitOverride" syspref
- Return to the Patron Details page
- Check the "Override renewal restrictions" checkbox
=> TEST: Observe that it IS possible to select the the item that has reached the renewal limit, but not the item that is on hold

- Disable the "AllowRenewalLimitOverride" syspref
- Enable the "AllowRenewalOnHoldOverride" syspref
- Return to the Patron Details page
- Check the "Override renewal restrictions" checkbox
=> TEST: Observe that it is NOT possible to select the the item that has reached the renewal limit, but it IS possible to select the item on hold

- Enable the "AllowRenewalLimitOverride" syspref
- Enable the "AllowRenewalOnHoldOverride" syspref
- Return to the Patron Details page
- Check the "Override renewal restrictions" checkbox
=> TEST: Observe that it IS possible to select the the item that has reached the renewal limit, AND it IS possible to select the item on hold

- Select the item that is on hold
=> TEST: Observe that an additional "On hold due date" input box is displayed
- De-select the item
=> TEST: Observe that an additional "On hold due date" input box is hidden
- Select the item
- In the "On hold due date" input box, select a due date for the item
- Click "Renew or check in selected items"
=> TEST: Observe that the item is renewed as usual
- In the "Renewal due date" input box, select a due date
- Remove the contents of the "On hold due date" input box
- Click "Renew or check in selected items"
=> TEST: Observe that the item is renewed by falling back to the "Renewal due date" value if a value is not specified in the "On hold due date" input box
- Remove the contents of the "Renewal due date" input box
- Click "Renew or check in selected items"
=> TEST: Observe that the standard loan period is used for the renewal period if no due date is specified in either box
- In the "On hold due date" input box, select a due date for the item
- In the "Renewal due date" input box, select a different due date
- Click "Renew all"
=> TEST: Observe that all non on hold items are renewed using the value in "Renewal due date" and on hold items are renewed using the value in "On hold due date"
- From the main staff client from page, choose "Circulation", then choose "Renew"
- Enter the barcode of an item that you know to be on hold and submit
=> TEST: In the alert box that appears, observe that a date picker is
displayed
- Choose a due date for this item, then click "Override and renew"
=> TEST: In the "Item renewed" box, observe that the item has been
renewed to the date specified

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-05-09 14:40:49 +00:00
..
pages Bug 7088: Allow renew on hold items with due date 2019-05-09 14:40:49 +00:00
acq.js Bug 18639: (follow-up) Populate replacement price from list price during ordering 2018-08-31 12:46:51 +00:00
acquisitions-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
additem.js Bug 16939: Making all 'add to basket' actions buttons 2019-01-02 20:27:28 +00:00
addorderiso2709.js Bug 22734: Fund not marked as mandatory when ordering from a staged file 2019-04-25 11:36:23 +00:00
admin-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
ajax.js
audio_alerts.js
auth-finder-search.js Bug 20273: (follow-up) Autocomplete use start instead of contains 2018-07-19 17:25:16 +00:00
automatic_item_modification_by_age.js
background-job-progressbar.js Bug 19417: Make error just a wee more human 2019-03-13 05:31:34 +00:00
basket.js Bug 22023: (QA follow-up) Remove console.log used for debugging 2019-03-13 05:31:30 +00:00
basketgroup.js
biblio_framework.js
cart.js Bug 22419: Records listed twice when select/unselect all from the cart 2019-03-07 20:53:28 +00:00
catalog.js Bug 21556: Deleting same record twice leads to fatal software error 2018-11-01 19:05:12 +00:00
cataloging.js
cataloging_additem.js Bug 22669: Fix item editing on receiving an order 2019-04-26 10:17:21 +00:00
categories.js Bug 22190: Add column configuration to patron category administration 2019-01-30 12:01:34 +00:00
charts.js Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
checkouts.js Bug 7088: (follow-up) Modify checkbox enabling 2019-05-09 14:40:49 +00:00
circ-patron-search-results.js Bug 22330: (QA follow-up) Enable datatable in patron search 2019-03-21 16:22:56 +00:00
commons.js
datatables.js Bug 21506: DataTables four button pagination uses the wrong icon for First and Last buttons 2018-10-09 12:57:41 +00:00
file-upload.js
funds_sorts.js Bug 15184: Prepare the ground - Move funds and sort fields autoupdate 2018-11-08 15:52:56 +00:00
holds.js Bug 19630: Removed constant message from Status column 2019-04-11 13:52:09 +00:00
ill-list-table.js Bug 18589: (follow-up) Fix merge problem 2019-03-22 20:21:50 +00:00
item_search_fields.js
letter.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
localcovers.js Bug 19511: Local cover images not centered in table column in staff client search results 2018-08-21 12:48:36 +00:00
mana.js Bug 22250: Clean up Mana KB integration with serials and reports 2019-04-11 11:34:14 +00:00
marc_modification_templates.js Bug 21861: (follow-up) replace onchange() with jQuery equivalent 2018-11-29 18:32:49 +00:00
marc_subfields_structure.js
members-menu.js Bug 20809: Link patron image to patron image add/edit form 2019-02-04 15:54:34 +00:00
members.js Bug 3766: Cities/Towns only on one address 2019-04-17 12:25:25 +00:00
merge-record.js
messaging-preference-form.js Bug 21813: In-page JavaScript causes error on patron entry page 2019-01-08 14:09:14 +00:00
offlinecirc.js
onboarding.js
rotating-collections.js
serials-toolbar.js Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 15911: (follow-up) Allow enter to submit using the submit button 2019-03-13 03:42:10 +00:00
subscription-add.js Bug 22408: Subscription entry form cleanup 2019-04-30 12:54:30 +00:00
table_filters.js
tools-menu.js Bug 11897: (QA follow-up) Update of tools-menu.js 2018-10-09 15:46:08 +00:00
xmlControlfield.js
z3950_search.js