Bug 39902

Summary: "Cite" feature - UNIMARC : publisher in 214 is not taken into account
Product: Koha Reporter: Marion Durand <marion.durand>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: jonathan.druart, mathsabypro
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35203
GIT URL: 31717 Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 14670    
Bug Blocks:    
Attachments: Bug 39902: Cite also look for publisher in 214 in Unimarc
Bug 39902: Cite also look for publisher in 214 in Unimarc

Description Marion Durand 2025-05-14 14:16:43 UTC
For UNIMARC, citations often have no publisher information.

The publication information can also be in 214 field, it can still be in 210 field but this will become obsolete at some point. 

The cite function should look into 214 field for publisher information and if there is none, then look into 210).
Comment 1 Mathieu Saby 2025-05-14 14:30:33 UTC
Yes, both fields should be checked, with priority for 214
Comment 2 Marion Durand 2025-05-14 14:57:36 UTC
Created attachment 182455 [details] [review]
Bug 39902: Cite also look for publisher in 214 in Unimarc

In UNIMARC, publisher information can be in 214 and in 210.
The code was only looking in 210.
This patch add support for 214 field.

To test:
0. Make sure your instance is in Unimarc
1. Find or create a record with publisher information in 214 (and none in 210)
2. Search for that record in your OPAC
3. Click on the "Cite" button
4. Check that no publisher information appear
5. Apply the patch
6. Repeat step 2 and 3
7. Check that publisher information is now shown
Comment 3 David Nind 2025-05-14 18:20:28 UTC
Created attachment 182464 [details] [review]
Bug 39902: Cite also look for publisher in 214 in Unimarc

In UNIMARC, publisher information can be in 214 and in 210.
The code was only looking in 210.
This patch add support for 214 field.

To test:
0. Make sure your instance is in Unimarc
1. Find or create a record with publisher information in 214 (and none in 210)
2. Search for that record in your OPAC
3. Click on the "Cite" button
4. Check that no publisher information appear
5. Apply the patch
6. Repeat step 2 and 3
7. Check that publisher information is now shown

Signed-off-by: David Nind <david@davidnind.com>