Bug 25705 - Make it possible to view full serials history in staff without serials permissions
Summary: Make it possible to view full serials history in staff without serials permis...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-10 06:21 UTC by David Cook
Modified: 2022-05-12 13:01 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2020-06-10 06:21:58 UTC
On the "/cgi-bin/koha/opac-detail.pl?biblionumber=X" page, there is a link "More Details" (/cgi-bin/koha/opac-serial-issues.pl?biblionumber=X), which shows the "Full subscription history" (ie received issues) for a subscription for a bib record.

The Staff Client does not have an equivalent. The "/cgi-bin/koha/catalogue/detail.pl?biblionumber=X" page has a "Subscription details" (/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=X) link, but that requires full Serials permissions. Plus, it's not really equivalent. The closest equivalent is "/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=X", but it also requires full Serials module permissions. 

It does not make sense that an OPAC user can see more data than a Staff Client user.
Comment 1 David Cook 2020-06-10 06:23:04 UTC
I think the answer is probably to make a "/cgi-bin/koha/catalogue/serial-issues.pl" script.

Rather than fiddling with permissions in the "serials" module, I figure we can just expose that data via the "catalogue" module.

We could create a Template::Toolkit include that works in both modules to reduce copy/paste template boilerplate.
Comment 2 David Cook 2020-06-10 06:36:10 UTC
Actually, now I'm thinking that we should add a /api/v1/serials/issues REST API endpoint. 

We could then refactor the Staff Client and OPAC to use that API endpoint (starting with the /cgi-bin/koha/catalogue/detail.pl page).
Comment 3 David Cook 2022-01-04 02:57:25 UTC
I don't think that I'll be working on this one, but it would be great to see an improvement in this area.