On OPAC details page with XSLT, when a subject field has $3, $9 and other subfields, $9 is displayed instead of other subfields.
<datafield tag="606" ind1=" " ind2=" ">
This comes from UNIMARCslimUtils.xsl tag_onesubject template :
Subfields $2 and $3 stops the display variable computing.
Without XSLT, subjects are displayed with only non-numerical subfields [a-zA-Z]. So $2 and $3 should just be avoid in display var.
Example should be displayed :
Created attachment 12334 [details] [review]
> Example :
> <datafield tag="606" ind1=" " ind2=" ">
> <subfield code="9">331978</subfield>
> <subfield code="3">027214724</subfield>
> <subfield code="a">Revolution</subfield>
For me such a field is properly displayed with the current UNIMARC XSL. Could you provide a complete sample record (in ISO2709)?
Sorry I was wrong! I was testing with your patch already applied!
Created attachment 12687 [details] [review]
Bug 8791: OPAC UNIMARC XSLT details: subject with subfield 3
Signed-off-by: Frédéric Demians <firstname.lastname@example.org>
I can reproduce the bug, and confirm that this patch fix it. The issue arises
when $9 come first, and then $3, which is not that usual.
* tiny fix
* UNIMARC XSLT related only, no side-effect risk
* koha-qa.pl OK
Patch pushed to master
No string changes pushed to 3.8.x, will be in 3.8.6