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

--- Comment #5 from Olivia Reynolds <[email protected]> ---
Created attachment 202014
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202014&action=edit
Bug 43089: Allow filtering ILL requests by ILL group

This patch integrates the new ILL groups into the ILL requests index
page. The branchcodes for each group are included in the template, which
are then used in the API request to filter to libraries included in the
selected group.

Test plan:
1.  Enable the system preference "ILLModule".
2.  Create the following library group structure (using KTD sample
    libraries or otherwise):

    - Group A (ILL Group)
      - Centerville Library
      - Group B
        - Springfield Library

    - Group C (_not_ ILL group)
      - Pleasant Valley Library
3.  Ensure your user is in the Centerville library.
4.  Create three ILL requests from the OPAC, one for each library
    included in the group structure.

    - Navigate on the OPAC to
      /cgi-bin/koha/opac-illrequests.pl?op=add_form&backend=Standard
    - Choose the relevant destination library, and fill in the rest of
      the request with arbitrary data.

5.  On the intranet, navigate to Interlibrary loans > Requests.
6.  Verify all three ILL requests are initially displayed.
7.  Verify there is a "Group" filter in the left side-panel.
8.  Verify the only available group in this filter is "A".
    - the current user is not in group B, so it is hidden
    - group C is not an ILL group, so it is hidden
9.  Filter to only showing group A, and verify only the requests to
    Centerville and Springfield are displayed.
10. Additionally filter the library to Centerville, and verify only
    Centerville's request is shown.
11. Filter by group A and Pleasant Valley library, and verify no
    requests are displayed.

12. Swap Centerville and Springfield in the library group structure, so
    group A now looks like:

    - Group A (ILL Group)
      - Springfield Library
      - Group B
        - Centerville Library

13. Return to the ILL requests index.
14. Verify you can now filter to either group A or B.
15. Verify filtering by group A shows Centerville and Springfield
    requests.
15. Verify filtering by group B shows only Centerville requests.
16. Verify clearing the filter resets the group filter to "All groups".

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