Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Galen Charlton 556eb67718 Bug 108661: (follow-up) enshrine letting CardnumberLength specify just a maximum
This patch finishes the work started in one of the previous
follow-ups and allows CardnumberLength to be set to a value
like ',5'.  In conjunction with not including cardnumber in
BorrowerMandatoryField, this allows a cardnumber to not be
required but, if present, to not exceed the specified length.

This patch also updates t/db_dependent/Members.t so that
it runs in a transaction, tests the new return value
of checkcardnumber, and manages the CardnumberLength syspref.

To test:

[1] Verify that prove -v t/db_dependent/Members.t and
    prove -v t/Members/cardnumber.t pass.
[2] Set CardnumberLength to ",5" and take cardnubmer out of
    the BorrowerMandatoryField list.
[3] Verify that you can save a patron record without a cardnumber,
    but if you supply one, that it can be at most 5 characters long.
[4] Add cardnumber back to BorrowerMandatoryField.  This time, the
    minimum length is 1 even though CardnumberLength is ",5".

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-03-12 04:07:03 +00:00
..
acquisitions.pref
admin.pref
authorities.pref Bug 11611: Rephrase description and examples of 5 MARC related sysprefs 2014-02-20 19:08:11 +00:00
cataloguing.pref Bug 11611: Rephrase description and examples of 5 MARC related sysprefs 2014-02-20 19:08:11 +00:00
circulation.pref Bug 10452: make AllowHoldsOnDamagedItems control using damaged items to fulfill holds 2014-03-10 18:15:12 +00:00
creators.pref
enhanced_content.pref
i18n_l10n.pref
local_use.pref
logs.pref
opac.pref Bug 11256: (follow-up) tweak description of the OpacMaxItemsToDisplay syspref 2014-02-21 18:44:01 +00:00
patrons.pref Bug 108661: (follow-up) enshrine letting CardnumberLength specify just a maximum 2014-03-12 04:07:03 +00:00
searching.pref
serials.pref
staff_client.pref
tools.pref Bug 11343: tweak wording of the syspref editor for MaxItemsForBatch 2014-03-10 19:17:49 +00:00
web_services.pref Bug 8918: (follow-up) improve descriptions of two related sysprefs 2014-03-10 17:34:12 +00:00