[Koha-bugs] [Bug 30200] Add customizable tabs to interlibrary loan requests list
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 2 14:36:48 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30200
Magnus Enger <magnus at libriotech.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #131960|0 |1
is obsolete| |
--- Comment #6 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 134466
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=134466&action=edit
Bug 30200: Add custom tabs to View ILL requests page
Prereqs:
1: Make sure you have enabled an ILL backend and enabled system
preferecnce ILLModule. For more information see
https://koha-community.org/manual/21.11/en/html/ILL_requests.html
To test:
1: Note, the following branchcodes, statuses and backends depend
on your test environment and which ILL backend you are using.
This example is for Libris backend.
Set system preference ILLRequestsTabs:
- name: tab1
status:
- IN_REM
- name: tab2
status:
- IN_UTEL
- IN_LEV
- name: tab3
status:
- IN_ANK
2. Add at least 4 ILL requests with the following SQL:
INSERT INTO `illrequests` (borrowernumber, branchcode, status, backend) VALUES
(1, 'CPL', 'IN_REM', 'Libris');
INSERT INTO `illrequests` (borrowernumber, branchcode, status, backend) VALUES
(1, 'CPL', 'IN_UTEL', 'Libris');
INSERT INTO `illrequests` (borrowernumber, branchcode, status, backend) VALUES
(1, 'CPL', 'IN_LEV', 'Libris');
INSERT INTO `illrequests` (borrowernumber, branchcode, status, backend) VALUES
(1, 'CPL', 'IN_ANK', 'Libris');
Note: Change values to whatever your test environment has set up.
3. Go to cgi-bin/koha/ill/ill-requests.pl
4. After the page loads, you should now see 4 different tabs:
"All", "tab1", "tab2" and "tab3"
5. Confirm all ILL requests are present under "All" tab
6. Confirm only ILL requests with the statuses you defined in
system preference ILLRequestsTabs are under tabs 1, 2 and 3
7. Go to cgi-bin/koha/members/ill-requests.pl?borrowernumber=1
8. Repeat steps 4-6
9. Clear system preference ILLRequestsTabs
10. Observe both ill/ill-requests.pl and members/ill-requests.pl
now have only one tab "All" under which correct ILL requests
are presented
11. Try some other status values in ILLRequestsTabs and observe
expected behavior
Signed-off-by: Magnus Enger <magnus at libriotech.no>
Works as advertised.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list