There are cases when both links "Show analytics" and "Show volumes" will show up on a record. At the moment the link for both is the same, searching for all records with the 001 of the record in a $w subfield of other records. By using the bib-level index the search links can be made more precise, so "Show analytics" will only bring up analytical records while "Show volumes" will find the linked volumes and monographical records. Bib-level is the index on LDR pos. 7: - For analytics: a, b - For Volumes: everything except a, b A record showing both links is: - A serial: LDR pos. 7 = s - Part of a traced series: LDR, pos. 19 = a or a monographic series 008, Continuing resource, pos. 21 = m
Created attachment 7896 [details] [review] Bug 7609: Improving links to find analytics and volumes when using UseControlnumber To test: - switch on UseControlnumber - add a serial record with 001 - ldr pos 19 = a or - 008 (continuing resource), pos 21 = m - add 2 analytics with with $w subfields containing the 001 of the serial - one with ldr pos 7 = a - one with ldr pos 7 = b - add 1-2 monographical records linked to the serial - 8xx $w subfield containing the 001 of the serial - 490 The serial should show 2 links: 'Show volumes' should only bring up the monographical records. 'Show analytics' should only find the analytical records. Without the patch both links would find all linked records, no difference between both links.
Created attachment 7897 [details] [review] Bug 7609: Improving links to find analytics and volumes when using UseControlnumber To test: - switch on UseControlnumber - add a serial record with 001 - ldr pos 19 = a or - 008 (continuing resource), pos 21 = m - add 2 analytics with with $w subfields containing the 001 of the serial - one with ldr pos 7 = a - one with ldr pos 7 = b - add 1-2 monographical records linked to the serial - 8xx $w subfield containing the 001 of the serial - 490 The serial should show 2 links: 'Show volumes' should only bring up the monographical records. 'Show analytics' should only find the analytical records. Without the patch both links would find all linked records, no difference between both links.
Looks good, but could you also add a patch for staff side?
Hi Marcel, thx for checking. I forgot about staff yesterday, will add another patch tonight.
Created attachment 7952 [details] [review] Bug 7609: Improving links to find analytics and volumes when using UseControlnumber Adds changes to XSLT in staff.
First patch is for OPAC, second patch is for staff interface.
Created attachment 8003 [details] [review] Bug 7609: Improving links to find analytics and volumes when using UseControlnumber To test: - switch on UseControlnumber - add a serial record with 001 - ldr pos 19 = a or - 008 (continuing resource), pos 21 = m - add 2 analytics with with $w subfields containing the 001 of the serial - one with ldr pos 7 = a - one with ldr pos 7 = b - add 1-2 monographical records linked to the serial - 8xx $w subfield containing the 001 of the serial - 490 The serial should show 2 links (in both OPAC and Intranet): 'Show volumes' should only bring up the monographical records. 'Show analytics' should only find the analytical records. Without the patch both links would find all linked records, no difference between both links. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
QA Comment: The remaining patch is for opac and staff. Small patch, touching few lines in xslt files. Looks good, works as described. Updating status. Just wondering about a line in the direct context of the change for volumes: The test substring($controlField008,22,1)='m' is only relevant when leader7=s. Now, it is used in general. (New report or a followup?)
This patch is specific to MARC21, i've pushed it without testing, and just added a (MARC21) at the end of the commit message
This bug will be included in the Koha 3.6.5 release.