https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763
Bug ID: 42763
Summary: ERM local title show page does not display link to
local bibliographic record
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: ERM
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected],
[email protected],
[email protected],
[email protected],
[email protected]
When a local eHoldings title has a linked bibliographic record (created via the
"Create bibliographic record" checkbox), the show page for that title does not
display the "Local bibliographic record" link, even though the biblio_id is
correctly stored in erm_eholdings_titles and returned by the REST API.
Steps to reproduce:
Go to E-resource management > eHoldings > Local > Titles
Create a new title, checking "Create bibliographic record"
Save and open the title's show page
Actual result:
No link to the local bibliographic record is shown anywhere on the page.
Expected result:
A "Local bibliographic record" link pointing to
/cgi-bin/koha/catalogue/detail.pl?biblionumber=<id> should appear, as it
already does for EBSCO titles in EHoldingsEBSCOTitlesShow.vue (line 21–25).
Root cause:
The local titles show page is rendered by EHoldingsLocalTitleResource.vue via
the generic ResourceShow framework, which only renders fields declared in
resourceAttrs. The biblio_id field is not declared there, so the link is never
shown — despite the data being present.
By contrast, EHoldingsEBSCOTitlesShow.vue uses a dedicated template that
explicitly checks v-if="title.biblio_id" and renders the link.
Fix:
Add biblio_id to the resourceAttrs array in EHoldingsLocalTitleResource.vue
with hideIn: ["List"], a hidden guard so it only shows when a biblio is linked,
and a link pointing to the catalogue detail page using the existing LinkWrapper
mechanism.
See also: Bug 35095 (related: the linked biblio record only maps the title
field, not other metadata).
--
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/