[Koha-bugs] [Bug 20581] Allow manual selection of custom ILL request statuses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 3 15:21:11 CEST 2018


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

--- Comment #35 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Rebased on current master and provided an additional fix.

Test custom status creation:
1) Apply this bug's patches
2) Apply database updates
3) Ensure you have at least one ILL backend available:
   https://wiki.koha-community.org/wiki/ILL_backends
4) Ensure you have the "ILLModule" preference enabled
5) Log in as a user with the ability to add authorised values.
6) Depending on whether you opted to accept the "Default ILL request status
authorised value category name" data population during install, you may or may
not have an authorised values category ILLSTATUS, if not, create it.
7) Add some authorised values to the ILLSTATUS category, these can be custom
request statuses of your choice

Test custom status usage:
8) From the staff interface, create an ILL request from a backend of your
choice
9) On the resulting "Request details" page, observe that the request's status
is "New request"
10) Click the "Edit request" button
11) In the "Request details" pane, observe that the request's status is now
available in a drop down box, it should contain the current status PLUS your
custom statuses.
12) Select a custom status and Submit the form
13) In the resulting "View ILL requests" page, observe that your request is now
displaying your custom status.
14) Click the "Manage request" button for your new request
15) In the "Request details" page, observe that the request's status is
displaying as your custom status

Test custom status is overridden when request progresses through workflow:
16) Click "Confirm request", then the "Confirm request" confirmation
17) Observe that in the resulting "Request details" page, the request's status
is now no longer displaying your custom status but has switched to "Requested"

Test custom status is removed when authorised value is removed:
18) Observe that the request has the status "Requested", we are going to
override that with a custom status, then remove that custom status authorised
value
19) Click "Edit request"
20) Select a custom status and Submit the form
21) In the resulting "View ILL requests" page, observe that your request is now
displaying your custom status.
22) Go to the authorised values management page
23) Delete the custom status you previously selected in step 19
24) Return to the list of ILL requests
25) Observe that the request that previously had the custom status now has it's
former status of "Requested"

Test API response for View ILL requests view:
26) Modify an existing request and set a custom status as discussed above
27) Navigate to the "View ILL requests" page
28) Examine the response to the API call made to the
/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias
route
28) Observe that for requests with a custom status, the status_alias property
contains an object for the request's authorised value containing the custom
status
29) Observe that for requests without a custom status, status_alias is null

Test OPAC view:
30) Modify an existing request and set a custom status as discussed above
31) In the OPAC, navigate to "your interlibrary loan requests"
32) In the "Interlibrary loan requests" view, observe that the request's status
is displaying your custom value
33) Click "View" on the request with a custom value
34) In the "View Interlibrary loan request" view, observe that the request's
status is displaying your custom value

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list