https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17007
Jiri Kozlovsky <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53825|0 |1 is obsolete| | --- Comment #7 from Jiri Kozlovsky <[email protected]> --- Created attachment 53834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53834&action=edit Bug 17007: REST API: add route to get biblio As Magnus Enger pointed out, we should hide all the items defined in the OpacHiddenItems syspref from all but staff. This patch adds this functionality. To test: 1. Open a browser tab on Koha staff and log in (to create CGISESSID cookie). 2. Send GET request to http://yourlibrary/api/v1/biblios/YYY where YYY is an existing biblionumber. 3. Make sure the returned data is correct. 4. Find items which are hidden in OPAC with OpacHiddenItems syspref, note their record's biblionumber and repeat point 2 with it. 5. Check that if you are logged in as staff, you see all the items (even those hidden from OPAC) 6. Check that if you are not logged in as staff, you see only the items which are not hidden from OPAC 7. Run unit tests in t/db_dependent/api/v1/biblios.t -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
