Bug 39500

Summary: Subfield 111 $n is badly displayed in OPAC
Product: Koha Reporter: Janusz Kaczmarek <januszop>
Component: OPACAssignee: Janusz Kaczmarek <januszop>
Status: Pushed to main --- QA Contact: Marcel de Rooy <m.de.rooy>
Severity: trivial    
Priority: P5 - low CC: domm, m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.05.00
Circulation function:
Attachments: A screenshot illustrating the problem
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)

Description Janusz Kaczmarek 2025-03-31 14:01:45 UTC
Created attachment 180048 [details]
A screenshot illustrating the problem

If the main heading is 111 and id contains subfield $n, the content of this subfield is badly displayed in OPAC: at the beginning of the heading text (right after "By:"), and then correctly, as the part of the link.
Comment 1 Janusz Kaczmarek 2025-03-31 14:12:56 UTC
Created attachment 180051 [details] [review]
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)

If the main heading is 111 and id contains subfield $n, the content of
this subfield is badly displayed in OPAC: at the beginning of the
heading text (right after "By:"), and then correctly, as the part of
the link.

Test plan:
==========
1. Check if the 111 $n subfield is available in the framework you are
   using. If not, activate it (Editor checkbox).
2. Take any bibliographic record and replace the main heading with a
   conference heading (111), e.g.:
   111 $a Annual Koha Hackfest $n (13 : $c Marseille : $d 2025)
   Control in OPAC that the $n subfield is displayed twice (first time
   at the beginning)
3. Apply the patch ; restart_all
4. Check the result in OPAC: the main heading should be displayed
   correctly now.
Comment 2 Thomas Klausner 2025-03-31 15:12:57 UTC
Created attachment 180077 [details] [review]
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)

If the main heading is 111 and id contains subfield $n, the content of
this subfield is badly displayed in OPAC: at the beginning of the
heading text (right after "By:"), and then correctly, as the part of
the link.

Test plan:
==========
1. Check if the 111 $n subfield is available in the framework you are
   using. If not, activate it (Editor checkbox).
2. Take any bibliographic record and replace the main heading with a
   conference heading (111), e.g.:
   111 $a Annual Koha Hackfest $n (13 : $c Marseille : $d 2025)
   Control in OPAC that the $n subfield is displayed twice (first time
   at the beginning)
3. Apply the patch ; restart_all
4. Check the result in OPAC: the main heading should be displayed
   correctly now.

Signed-off-by: Thomas Klausner <domm@plix.at>
Comment 3 Marcel de Rooy 2025-04-18 09:33:47 UTC
Created attachment 181158 [details] [review]
Bug 39500: Subfield 111 $n is badly displayed in OPAC (MARC21)

If the main heading is 111 and id contains subfield $n, the content of
this subfield is badly displayed in OPAC: at the beginning of the
heading text (right after "By:"), and then correctly, as the part of
the link.

Test plan:
==========
1. Check if the 111 $n subfield is available in the framework you are
   using. If not, activate it (Editor checkbox).
2. Take any bibliographic record and replace the main heading with a
   conference heading (111), e.g.:
   111 $a Annual Koha Hackfest $n (13 : $c Marseille : $d 2025)
   Control in OPAC that the $n subfield is displayed twice (first time
   at the beginning)
3. Apply the patch ; restart_all
4. Check the result in OPAC: the main heading should be displayed
   correctly now.

Signed-off-by: Thomas Klausner <domm@plix.at>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Katrin Fischer 2025-04-22 06:50:44 UTC
Pushed for 25.05!

Well done everyone, thank you!