[Koha-patches] [PATCH] add subtitle to COinS for MARC21
Tue May 12 02:05:23 CEST 2009
From: Galen Charlton <galen.charlton at liblime.com>
Preserves change added in the LTFL integration
while also switching to Nahuel's COinS implementation.
---
C4/Biblio.pm | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index 684fed5..27a2795 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -1052,6 +1052,7 @@ sub GetCOinSBiblio {
my ($aulast, $aufirst) = ('','');
my $oauthors;
my $title;
+ my $subtitle;
my $pubyear;
my $isbn;
my $issn;
@@ -1132,10 +1133,12 @@ sub GetCOinSBiblio {
}
}
$title = "&rft.btitle=".$record->subfield('245','a');
- $pubyear = $record->subfield("260","c") || "";
- $publisher = $record->subfield('260','b') || "";
- $isbn = $record->subfield('020','a') || "";
- $issn = $record->subfield('022','a') || "";
+ $subtitle = $record->subfield('245', 'b') || '';
+ $title .= $subtitle;
+ $pubyear = $record->subfield('260', 'c') || '';
+ $publisher = $record->subfield('260', 'b') || '';
+ $isbn = $record->subfield('020', 'a') || '';
+ $issn = $record->subfield('022', 'a') || '';
}
my $coins_value = "ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A$mtx$genre$title&rft.isbn=$isbn&rft.issn=$issn&rft.aulast=$aulast&rft.aufirst=$aufirst$oauthors&rft.pub=$publisher&rft.date=$pubyear";
--
1.5.6.5
More information about the Koha-patches
mailing list