add subtitle to COinS for MARC21
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 12 May 2009 00:03:50 +0000 (19:03 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:31 +0000 (21:15 +0200)
Preserves change added in the LTFL integration
while also switching to Nahuel's COinS implementation.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Biblio.pm

index 6249252..24c60ff 100755 (executable)
@@ -1040,6 +1040,7 @@ sub GetCOinSBiblio {
     my ($aulast, $aufirst);
     my $oauthors;
     my $title;
+    my $subtitle;
     my $pubyear;
     my $isbn;
     my $issn;
@@ -1120,10 +1121,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') || '';
 
     }
     $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";