Bug 41690: Add MARC21 245 (subtitle) to Cite option
The "Cite" option in the OPAC is missing the subtitle (245) in MARC21.
To recreate:
1. Add a record or find a record with a subtitle (in KTD, biblionumber 58 has a 245 http://localhost:8081/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=58
2. In the OPAC, go to the record
http://localhost:8080/cgi-bin/koha/opac-detail.pl?biblionumber=58
3. Click "Cite"
--> The subtitle is not in any of the citations
4. Apply the patch
5. Repeat step 2 and 3
--> The subtitle is now shown
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 412e4e4d95)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
1321bbc5c1
commit
126df2dd52
17
C4/Record.pm
17
C4/Record.pm
|
|
@ -931,6 +931,7 @@ sub marc2cites {
|
|||
if ( $marcflavour eq "UNIMARC" ) {
|
||||
%publication = (
|
||||
title => $record->subfield( "200", "a" ) || "",
|
||||
subtitle => $record->subfield( "200", "e" ) || "",
|
||||
place => $record->subfield( "210", "a" ) || "",
|
||||
publisher => $record->subfield( "210", "c" ) || "",
|
||||
date => $record->subfield( "210", "d" ) || $record->subfield( "210", "h" ) || ""
|
||||
|
|
@ -938,6 +939,7 @@ sub marc2cites {
|
|||
} else {
|
||||
%publication = (
|
||||
title => $record->subfield( "245", "a" ) || "",
|
||||
subtitle => $record->subfield( "245", "b" ) || "",
|
||||
place => $record->subfield( "264", "a" ) || $record->subfield( "260", "a" ) || "",
|
||||
publisher => $record->subfield( "264", "b" ) || $record->subfield( "260", "b" ) || "",
|
||||
date => $record->subfield( "264", "c" )
|
||||
|
|
@ -978,13 +980,16 @@ sub marc2cites {
|
|||
if ( $publication{date} ) {
|
||||
$cites{'Harvard'} .= ' (' . $publication{'date'} . '). ';
|
||||
$cites{'Chicago'} .= ' ' . $publication{'date'} . '. ';
|
||||
$cites{'MLA'} .= ' ' . $publication{'title'} . '. ';
|
||||
$cites{'APA'} .= ' (' . $publication{'date'} . '). ';
|
||||
$cites{'MLA'} .=
|
||||
' ' . $publication{'title'} . ( $publication{'subtitle'} ? ': ' . $publication{'subtitle'} : '' ) . '. ';
|
||||
$cites{'APA'} .= ' (' . $publication{'date'} . '). ';
|
||||
}
|
||||
$cites{'Harvard'} .= $publication{'title'} . '. ';
|
||||
$cites{'Chicago'} .= $publication{'title'} . '. ';
|
||||
$cites{'MLA'} .= $publication{'place'} . ': ';
|
||||
$cites{'APA'} .= $publication{'title'} . '. ';
|
||||
$cites{'Harvard'} .=
|
||||
$publication{'title'} . ( $publication{'subtitle'} ? ': ' . $publication{'subtitle'} : '' ) . '. ';
|
||||
$cites{'Chicago'} .=
|
||||
$publication{'title'} . ( $publication{'subtitle'} ? ': ' . $publication{'subtitle'} : '' ) . '. ';
|
||||
$cites{'MLA'} .= $publication{'place'} . ': ';
|
||||
$cites{'APA'} .= $publication{'title'} . ( $publication{'subtitle'} ? ': ' . $publication{'subtitle'} : '' ) . '. ';
|
||||
$cites{'Harvard'} .= $publication{'place'} . ': ';
|
||||
$cites{'Chicago'} .= $publication{'place'} . ': ';
|
||||
$cites{'MLA'} .= $publication{'publisher'} . '. ';
|
||||
|
|
|
|||
Loading…
Reference in New Issue