https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43141

--- Comment #14 from Olivia Reynolds <[email protected]> ---
Created attachment 211789
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211789&action=edit
Bug 43141: Allow filling in and clearing disclaimers

This patch allows clear and fill out the disclaimer on behalf of a
patron. It is possible to fill out only some of the disclaimer fields at
a time. Those remaining can be filled later, either by using the
"fill-in" functionality, or through the following disclaimer prompts.

Test plan:
1.  Enable the ILLModule syspref.
2.  Set the ILLModuleDisclaimerByType syspref to the following:

all:
 fields:
  - text: Field one
    av_category_code: YES_NO
    code: one
    interface: opac
  - text: Field two
    av_category_code: YES_NO
    code: two
    interface: opac

3.  Create an ILL request through the staff UI. Verify you are not
    prompted for a type disclaimer during creation.
4.  View the new ILL request in the staff UI. Verify there is a "Type
    disclaimer" row showing "Fill in disclaimer for patron".
5.  Click "Fill in disclaimer for patron", fill in the first field of
    the type declaration, and verify you return to viewing the ILL
    request.
6.  View the same ILL request in the OPAC, and verify there is a type
    disclaimer row with a link to "View details".
7.  Click "View details", and verify appropriate type disclaimer
    information for the first field is displayed in a modal.
8.  In the staff view of the ILL request, verify the "Type disclaimer"
    row also now has a link to "View details".
9.  Click "View details", and verify appropriate type disclaimer
    information is displayed in a modal.
9.  In the modal, click "Fill in disclaimer".
10. Verify only the second field is shown as available to fill in, and
    fill it in.
11. Return to the staff disclaimer modal, and verify it now displays
    both disclaimer field responses.
12. Verify the "Fill in disclaimer" option is no longer displayed in the
    modal, now that all disclaimer fields have been filled out.
13. Additionally confirm both responses are displayed in the OPAC modal.
14. In the staff modal, click "Clear disclaimer information".
15. Verify the disclaimer information is deleted, and the row once again
    shows "Fill in disclaimer for patron".

Sponsored-by: NHS England

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to