[Bug 42027] New: Implement "Show volumes" for serial records
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Bug ID: 42027 Summary: Implement "Show volumes" for serial records Initiative type: --- Sponsorship --- status: Product: Koha Version: 24.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: MARC Bibliographic data support Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: pascal.uphaus@gwdg.de Currently Koha can show the "Show volumes" link for set and traced series records. With a search in the background we check for existing volumes and display of the link depends on their existence. The same should be implemented for serial records that can also have separate records in some libraries for bound volumes of serial issues. Currently we use this XSLT to always show the link for serial records (or never, depending on CSS): <xsl:template name="serial_volumes"> <xsl:param name="gui"/> <xsl:param name="UseControlNumber" /> <xsl:variable name="SearchUrl"> <xsl:call-template name="SearchUrl"> <xsl:with-param name="gui"><xsl:value-of select="$gui" /></xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:if test="substring(marc:leader,8,1) = 's' and not(substring(marc:leader,20,1)='a' or substring(marc:controlfield[@tag=008],22,1)='m')"> <span class="results_summary serial_volumes"><span class="transl label en">Volumes: </span><span class="transl label de-DE">Bände: </span> <a> <xsl:choose> <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> <xsl:attribute name="href"><xsl:value-of select="$SearchUrl"/>q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+not+(bib-level:a+or+bib-level:b)</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="href"><xsl:value-of select="$SearchUrl"/>q=ti,phr:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <span class="transl en">Show volumes</span><span class="transl de-DE">Zeige Bände</span> </a> </span> </xsl:if> </xsl:template> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaela.sieber@kit.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |39287 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39287 [Bug 39287] Improve "Show volume" search with a more specialized search index -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|24.11 |Main CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |34482 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34482 [Bug 34482] Improve MARC21 7xx linking fields in bibliographic records [Omnibus] -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211482 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211482&action=edit Bug 42027: Show the "Show volumes" link for serials that have volumes Koha shows a "Show volumes" link for sets and traced series when a search in the background finds volumes of the record. Do the same for serials, as some libraries have records for the bound volumes of their serials. * get_volumes_query now also builds a query for serials (Leader/07 s), so that get_marc_volumes looks for their volumes. * The staff interface and OPAC detail stylesheets show the link for serials when volumes were found. Libraries that use their own stylesheet to always show the link for serials can remove it. This depends on bug 39287 (the rcn-volumes index). To test: 1. Set UseControlNumber to Use 2. Create a serial record (Leader/07 s) with a 001, for example SER1 3. Create a record for a bound volume of it: a monograph with 773$w SER1 (or 830$w SER1) 4. Create another serial record that has no volumes 5. Rebuild the search index 6. In the staff interface, open the first serial => There is a "Volumes: Show volumes" link 7. Click it => The volume is found 8. In the OPAC, open the first serial => There is a "Volumes: Show volumes" link => It finds the volume 9. Open the serial without volumes in both => There is no link 10. Run $ prove t/db_dependent/Koha/Biblio.t t/db_dependent/XSLT.t => SUCCESS: Tests pass! 11. Sign off -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42027 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk --- Comment #2 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Hi Katrin, I have attached a patch for this. It depends on bug 39287, because it uses the new rcn-volumes index. get_volumes_query now also builds a query for serials (Leader/07 s), so get_marc_volumes looks for their volumes, and the staff interface and OPAC detail stylesheets show the link for serials when volumes were found, as they do for sets and traced series. The stylesheet you use to always show the link for serials can then be dropped. Tests are added for the query and for both stylesheets. I also checked it on Elasticsearch 8 with a serial that has two bound volumes (linked through 773 and 830), a successor linked through 785 and an article linked through 773, and a serial without volumes: the first serial shows the link in both interfaces and finds only the two volumes, and the second has no link. One thing to be aware of: a serial's detail page now does one search in the background to see if it has volumes, as it already does for sets. I am setting this to Needs Signoff. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org