Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
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
..
accounting.pref Bug 24646: Move RoundFinesAtPayment to 'Fines policy' section 2020-02-24 09:54:03 +00:00
acquisitions.pref Revert "Bug 22867: (QA follow-up) Build items.json for UniqueItemFields" 2019-06-06 17:28:35 +01:00
admin.pref Bug 24682: Make UsageStatsGeolocation readonly (and redirect to the config page) 2020-02-24 13:17:15 +00:00
authorities.pref Bug 12258: (QA follow-up) Add some missing rrrrrrs 2018-11-08 02:18:48 +00:00
cataloguing.pref Bug 24735: Remove QueryParser-related code 2020-03-02 11:13:03 +00:00
circulation.pref Bug 24474: (follow-up) Add onpayment to sysprefs file 2020-04-03 14:26:32 +01:00
enhanced_content.pref Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
i18n_l10n.pref Bug 20115: Add information about this feature in the pref descriptions 2018-04-04 15:45:44 -03:00
local_use.pref
logs.pref Bug 24103: Add option to dump search query to templates 2020-02-19 15:58:41 +00:00
opac.pref Bug 24759: CleanUp OpacRenewalBranch values 2020-03-24 10:48:00 +00:00
patrons.pref Bug 22534: Added syspref for defining what guarantee fields are pre filled 2020-04-06 10:44:23 +01:00
searching.pref Bug 14715: (QA follow-up) Remove limit on Zebra 2020-03-26 12:03:43 +00:00
serials.pref Bug 23416: Add PreserveSerialNotes system preference 2019-08-12 14:35:18 +01:00
staff_client.pref Bug 23315: (follow-up) Add configuration to enable CodeMirror 2019-07-19 09:33:37 +01:00
tools.pref Bug 22996: Add new preference BarcodeSeparators 2019-09-10 09:34:23 +01:00
web_services.pref Bug 24369: Add AccessControlAllowOrigin syspref 2020-03-05 12:59:31 +00:00