Bugzilla – Attachment 182464 Details for
Bug 39902
"Cite" feature - UNIMARC : publisher in 214 is not taken into account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39902: Cite also look for publisher in 214 in Unimarc
Bug-39902-Cite-also-look-for-publisher-in-214-in-U.patch (text/plain), 1.80 KB, created by
David Nind
on 2025-05-14 18:20:28 UTC
(
hide
)
Description:
Bug 39902: Cite also look for publisher in 214 in Unimarc
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-05-14 18:20:28 UTC
Size:
1.80 KB
patch
obsolete
>From 442b7ab1bb5504b38af5145e7024994e3b03b75c Mon Sep 17 00:00:00 2001 >From: Marion Durand <marion.durand@biblibre.com> >Date: Wed, 14 May 2025 14:49:40 +0000 >Subject: [PATCH] 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> >--- > C4/Record.pm | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > >diff --git a/C4/Record.pm b/C4/Record.pm >index 30ce148868..b553d1a699 100644 >--- a/C4/Record.pm >+++ b/C4/Record.pm >@@ -931,9 +931,13 @@ sub marc2cites { > if ( $marcflavour eq "UNIMARC" ) { > %publication = ( > title => $record->subfield( "200", "a" ) || "", >- place => $record->subfield( "210", "a" ) || "", >- publisher => $record->subfield( "210", "c" ) || "", >- date => $record->subfield( "210", "d" ) || $record->subfield( "210", "h" ) || "" >+ place => $record->subfield( "214", "a" ) || $record->subfield( "210", "a" ) || "", >+ publisher => $record->subfield( "214", "c" ) || $record->subfield( "210", "c" ) || "", >+ date => $record->subfield( "214", "d" ) >+ || $record->subfield( "214", "h" ) >+ || $record->subfield( "210", "d" ) >+ || $record->subfield( "210", "h" ) >+ || "" > ); > } else { > %publication = ( >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39902
:
182455
| 182464