[Bug 42763] New: ERM local title show page does not display link to local bibliographic record
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: jonathan.druart@gmail.com Reporter: adolfo.rodriguez@xercode.es QA Contact: testopia@bugs.koha-community.org CC: jonathan.druart@gmail.com, jonathan.field@openfifth.co.uk, martin.renvoize@openfifth.co.uk, matt.blenkinsop@openfifth.co.uk, pedro.amorim@openfifth.co.uk 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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 --- Comment #1 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Created attachment 199866 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199866&action=edit Display Local bibliographic record -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 199886 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199886&action=edit Bug 42763: ERM local title show page does not display link to local bibliographic record This patch adds the biblio_id field to the resourceAttrs array in EHoldingsLocalTitleResource.vue so that, when a local eHoldings title has a linked bibliographic record, a "Local bibliographic record" link is shown on the title's show page. The link was already implemented for EBSCO titles but was missing for local titles because the generic ResourceShow framework only renders fields explicitly declared in resourceAttrs. Test plan: 1. Go to E-resource management > eHoldings > Local > Titles and create a new title, checking the "Create bibliographic record" option. Save. 2. Result: No link to the local bibliographic record is shown anywhere on the page. 3. Apply patch, run yarn js:build, clear browser cache, and restart everthing (restart_all). 4. Open the show page of the title created in step 1. A "Local bibliographic record" link pointing to the catalogue detail page should now appear at the bottom of the fields list. 5. Open a local title that does NOT have a linked bibliographic record and verify that the "Local bibliographic record" row is not shown. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Attachment #199866|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jonathan.druart@gmail.com |adolfo.rodriguez@xercode.es Text to go in the| |This fixes local ERM release notes| |eHolding titles for local | |titles, so that a link to | |the local bibliographic | |record is shown if "Create | |bibliographic record" is | |selected when creating the | |title (ERM > eHoldings > | |Local > Titles). | | | |Before this, no link was | |shown on the local title | |page. Now a "Local | |bibliographic record" field | |is shown along with the | |bibliographic record ID | |linked to the record. --- Comment #3 from David Nind <david@davidnind.com> --- Thank you for the really good bug report! I think this may be a duplicate of bug 42522 and have put a note on that bug for the patch author to check. I think most developers use the community's development environment to prepare and submit patches: koha-testing-docker (https://gitlab.com/koha-community/koha-testing-docker). I am not a developer, so I would recommend asking about the right way to attach patches on the development channel in our Koha Community Chat (https://chat.koha-community.org/). I'm only mentioning this, as the patch did not appear the way normally expected for those of us signing off bugs, even though the details were in the patch (by clicking on the details link for the patch). I have: 1. Added you as the assignee for the bug 2. Reattached the patch as part of sign-off so that it appears the way expected. 3. Amended the commit message (see https://wiki.koha-community.org/wiki/Commit_messages) - Fixed the title: should start Bug XXXX: Title (note the colon instead of the hyphen) - Update the test plan slightly to show the result from step 1 4. I ran the qa script (just 'qa') in a koha-testing-docker shell - before I amended the commit message, it highlighted the bug title issue. Thanks again for the patch! David Nind New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=42522 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Adolfo, please confirm that the patch on bug 42522 fixes your issue. *** This bug has been marked as a duplicate of bug 42522 *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42763 --- Comment #5 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Yes, there are slight differences like the literal show on screen but the patch on bug 42522 fixes this issue. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org