• Wm. Nick Clemens's avatar
    Bug 3534 - Patron quick add form · 71d1e172
    Wm. Nick Clemens authored
    This patch adds a new system preference:
        PatronQuickAddFields
    
    When either this pref or BorrowerMandatoryField is populated this will add a new dropdown to the bew patron toolbar.
    When a category is chosen from this dropdown the fields in PatronQuickAddFields and BorrowerMandatoryField will be displayed.
    There will be a button allowing a user to switch from the quickadd to the full form and fields will be copied between the forms when toggling.
    
    The Quick add will only be displayed on add of a new patron, future edits should display the full form.
    
    Test plan:
     1 - Apply patch
     2 - run updatedatabase.pl
     3 - Add a new patron and ensure nothing has changed
     4 - Populate either PatronQuickAddFields or BorrowerMandatory fields
     and note the new button for adding a patron
     5 - Click the Quick add and choose a type
     6 - Only required or quick add fields should be displayed
     7 - Verify toggling forms copies information
     8 - Ensure you cannot save patron without filling required fields
     (quick add fields should be optional)
     9 - Ensure you can save patron with fields filled out
    10 - Ensure that a duplicate patron brings up the duplicate/add new
    buttons with full form displayed
    11 - Verify that subsequent edits use only full form
    12 - Verify that data on form submitted is the data saved to patron
    13 - Test with various values in both MandatoryBorrowerFields and PatronQuickAddFields
    
    Sponsored by: VOKAL (Vermont Organization of Koha Automated Libraries)
    
    Followed test plan, works as expected.
    Re-tested together with followup, works as expected (2016-06-02)
    Signed-off-by: default avatarMarc Véron <veron@veron.ch>
    Signed-off-by: joubu's avatarJonathan Druart <jonathan.druart@bugs.koha-community.org>
    Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
    71d1e172
Name
Last commit
Last update
..
boraccount.pl Loading commit data...
default_messageprefs.pl Loading commit data...
deletemem.pl Loading commit data...
discharge.pl Loading commit data...
discharges.pl Loading commit data...
files.pl Loading commit data...
guarantor_search.pl Loading commit data...
mancredit.pl Loading commit data...
maninvoice.pl Loading commit data...
member-flags.pl Loading commit data...
member-password.pl Loading commit data...
member.pl Loading commit data...
memberentry.pl Loading commit data...
members-home.pl Loading commit data...
members-update-do.pl Loading commit data...
members-update.pl Loading commit data...
mod_debarment.pl Loading commit data...
moremember.pl Loading commit data...
nl-search.pl Loading commit data...
notices.pl Loading commit data...
patronimage.pl Loading commit data...
pay.pl Loading commit data...
paycollect.pl Loading commit data...
print_overdues.pl Loading commit data...
printfeercpt.pl Loading commit data...
printinvoice.pl Loading commit data...
printslip.pl Loading commit data...
purchase-suggestions.pl Loading commit data...
readingrec.pl Loading commit data...
routing-lists.pl Loading commit data...
setstatus.pl Loading commit data...
statistics.pl Loading commit data...
summary-print.pl Loading commit data...
update-child.pl Loading commit data...