From 442b7ab1bb5504b38af5145e7024994e3b03b75c Mon Sep 17 00:00:00 2001 From: Marion Durand 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 --- 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