Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Alex Buckley dd0d2fa1c9
Bug 22534: Added syspref for defining what guarantee fields are pre filled
Librarians should be able to define what sections in member entryfields in 'Main address',
'Contact' and 'Alternate contact' in member entry form for guarantee's are pre-filled from guarantor's record

The 'Guarantor surname, 'Guarantor first name' and 'relationship' fields
in the 'Contact' section should not be filled from guarantor patron
record as those fields are intended for guarantor's without patron
records in Koha.

Test plan:
1. On an adult patron's record (which has all fields filled out in the
'Main address', 'Contact' (Except for 'Guarantor surname', 'Guarantor
first name', and 'relationship'), 'Alternate address', and 'Alternate contact') select 'Add guarantee'

2. Observe:

* Fields in 'Main address' are all automatically pre-filled
from guarantor record

* Fields in 'Contact' (except 'Guarantor surname', 'Guarantor firstname'
and 'relationship') are all automatically pre-filled from guarantor
record

* Fields in 'Alternate address' (except for Contact note) are pre-filled from guarantor record

* None of the fields in 'Alternate contact' are pre-filled from guarantor

4. Apply patch

5. Run database updates
cd installer/data/mysql
sudo koha-shell <instancename>
./updatedatabase.pl

6. Restart plack:
sudo koha-plack --restart <instancename>

7. Go to Administration > Global system preferences and search for the
new PrefillGuaranteeField system preference

8. Observe this syspref contains checkboxes and the following are
selected by default:
Contact - Primary email
Contact - Primary phone
Main address - Address
Main address - City
Main address - Country
Main address - State
Main address - ZIP/Postal code
Main address - street number

Please note: 'Contact - Guarantor surname', 'Contact - Guarantor first
name', Contact - relationship' are not in PrefillGuaranteeField syspref
as they are for non Koha patrons and so should not be pre-filled from a Koha
patron.

9. Repeat step 1 and observe the following fields are prefilled from guarantor:
In Main address section -
streetnumber
address
city
state
zipcode/postal code
country

In Contact section -
Primary phone
Primary email

10. In the PrefillGuaranteeField syspref click '[Select all]' checkboxes

11. Repeat step 1 and observe all fields in 'Main address', 'Contact'
(except Guarantor surname, Guarantor first name, and relationship),
Alternate address and Alterate contact are filled from guarantor record.

i.e. The values in guarantor's 'Alternate address' fields fill the
guarantee's 'Alternate address' fields

12. Change a few of the prefilled field values and 'Save' and observe your changes
have been saved in addition to the unaltered pre-filled values in other
fields

13. Amend PrefillGuarantee field syspref to have no checkboxes selected

14. Repeat step 1 and observe none of the fields in Main address,
Contact, Alternate address and Alternate contact are pre-filled

15. Run tests:
sudo koha-shell <instancename>
prove xt
prove t

Sponsored-by: Waitaki Distict Council, NZ
Signed-off-by: Sally <sally.healey@cheshiresharedservices.go.uk>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-06 10:44:23 +01:00
..
acqui Bug 18177: remove aqbooksellers.booksellerurl 2020-03-27 12:15:47 +00:00
admin Bug 22534: Added syspref for defining what guarantee fields are pre filled 2020-04-06 10:44:23 +01:00
authorities Bug 25022: Display problem in authority editor with repeatable field 2020-04-03 14:29:00 +01:00
basket
batch
catalogue Bug 16547: Do not display "multi holds" view if only one is selected 2020-04-06 10:41:02 +01:00
cataloguing Bug 8595: (follow-up) Changing other occurrences of 'host item' to 'host record' 2020-03-20 15:35:25 +00:00
circ Bug 24829: ClaimReturnedWarningThreshold is always triggered if patron has one or more claims 2020-03-26 11:39:19 +00:00
clubs
common Bug 23590: (QA follow-up) Fix some problems created by recent changes and updatedatabase statement 2020-03-25 09:35:24 +00:00
course_reserves
errors
ill Bug 24518: Fix IE11 partner filtering 2020-03-18 17:52:13 +00:00
installer Bug 24131: Remove bullet points for secondary descriptions 2020-03-24 10:42:24 +00:00
labels
mana
members Bug 24988: Default to autorenew_checkouts for new patrons 2020-03-27 08:36:27 +00:00
offline_circ
onboarding
patron_lists
patroncards
plugins Bug 20415: add Koha.ArePluginsEnabled Template Toolkit method 2020-03-26 11:41:54 +00:00
pos Bug 24952: Add id to refund modals confirm buttons 2020-03-24 11:00:24 +00:00
reports Bug 24976: Guided report - "Save" button on last step is misleading 2020-03-27 08:33:59 +00:00
reserve Bug 16547: Do not display "multi holds" view if only one is selected 2020-04-06 10:41:02 +01:00
reviews
rotating_collections
serials Bug 24941: Serials - Fix link to basket from acquisition details information 2020-04-03 14:26:35 +01:00
services
suggestion Bug 23590: (QA follow-up) Fix links to patron records (TT variable confusion) 2020-03-25 09:35:57 +00:00
tags
test
tools Bug 25020: Preserve time part when batch extending due dates 2020-04-03 14:29:00 +01:00
virtualshelves Bug 16547: Do not display "multi holds" view if only one is selected 2020-04-06 10:41:02 +01:00
about.tt Bug 24455: Add Moment.js to About page 2020-03-25 13:54:18 +00:00
auth.tt
intranet-main.tt