add subtitle to COinS for MARC21
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 12 May 2009 00:03:50 +0000 (19:03 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 12 May 2009 00:05:32 +0000 (19:05 -0500)
Preserves change added in the LTFL integration
while also switching to Nahuel's COinS implementation.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Biblio.pm

index 684fed5..27a2795 100644 (file)
@@ -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      = "&amp;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&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A$mtx$genre$title&amp;rft.isbn=$isbn&amp;rft.issn=$issn&amp;rft.aulast=$aulast&amp;rft.aufirst=$aufirst$oauthors&amp;rft.pub=$publisher&amp;rft.date=$pubyear";