https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37502
--- Comment #12 from OpenFifth Sandboxes <[email protected]> --- Created attachment 200432 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200432&action=edit Bug 37502: Add ERM tab to catalog detail page Adds an "ERM (N)" tab to the bibliographic record detail page in the staff interface. The tab appears when the ERMModule system preference is enabled and the record has at least one local ERM title linked via biblio_id. For each linked ERM title, a DataTables table displays one row per package (resource) with: package name, vendor, start date, end date, and agreements. Each agreement includes an expandable "Licenses (N)" button (Bootstrap collapse) showing license name, type, status, and dates. Permission model: - Tab is visible to all staff with catalogue access - Links to ERM resources (titles, packages, agreements, licenses) require CAN_user_erm - Links to vendors require CAN_user_acquisition_vendors_manage The tab handles N packages per title and N ERM titles per biblio. It is strictly read-only and introduces no MARC record writes. To test: 1. Enable ERMModule system preference. 2. Go to ERM > eHoldings > Local > Titles, create a title and link it to a bibliographic record (check "Create bibliographic record"). 3. Add one or more packages to the title via the Packages section. 4. Optionally link an agreement to a package, and a license to that agreement. 5. Open the linked bibliographic record in the staff catalog (Cataloging > search for the record). 6. Verify an "ERM (1)" tab appears between Acquisition details and the next tab. 7. Click the ERM tab. Verify the table shows one row per package with package name, vendor, start/end dates and agreements. 8. If an agreement has a license, click "Licenses (N)" and verify the license details expand inline. 9. Log in as a user without the 'erm' permission. Verify the tab is still visible but package/agreement/license names appear as plain text without links. 10. Log in as a user without 'acquisition > vendors_manage'. Verify vendor names appear as plain text. Signed-off-by: Adolfo RodrÃguez <[email protected]> Signed-off-by: Michaela Sieber <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://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/
