? apply.sh
? apply_until_committed
? translations
Index: millennium.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/millennium/millennium.module,v
retrieving revision 1.13.2.33.2.2.2.47
diff -u -p -r1.13.2.33.2.2.2.47 millennium.module
--- millennium.module	7 Dec 2009 15:34:33 -0000	1.13.2.33.2.2.2.47
+++ millennium.module	9 Dec 2009 13:31:46 -0000
@@ -1549,16 +1549,6 @@ function millennium_marc_to_nodeobject($
   #$biblio["type_num"] = millennium_marcleader_to_bibtype($marc);
   $biblio["type"] = millennium_marcleader_to_mattype($marc);
 
-  // Title
-  $data = millennium_getFields_fixed($marc, "245");
-  list($subfield_a) = millennium_getSubfields($data[0], "a");
-  list($subfield_b) = millennium_getSubfields($data[0], "b");
-  list($subfield_p) = millennium_getSubfields($data[0], "p");
-  $biblio["title"] = $subfield_a["data"];
-  $biblio["title"] .= ($biblio["title"] ? " " : "") . $subfield_p["data"];
-  $biblio["title"] .= ($biblio["title"] ? " " : "") . $subfield_b["data"];
-  $biblio["title"] = millennium_trim_marc_value($biblio["title"]);
-
   // Get all "a" subfields for several fields...
   $tags = array(
     "short_title" => "210",
@@ -1567,6 +1557,10 @@ function millennium_marc_to_nodeobject($
     "authors" => "(100|7[02]0)",
     "corp_author" => "(11[01]|71[01])",
     "edition" => "250",
+    "title" => "245",           // Full, concatenated title
+    "title_head" => "245",      // First part of multipart title
+    "title_remainder" => "245", // Rest of multipart title
+    "title_author" => "245",    // Statement of responsibility
     "isbn" => "020",
     "issn" => "022",
     #"pages" => "300",
@@ -1578,6 +1572,10 @@ function millennium_marc_to_nodeobject($
   // Define subfield regexp for special cases
   // biblio field name => regexp
   $biblio_subfields = array(
+    "title" => "[abp]",
+    "title_head" => "[a]",
+    "title_remainder" => "[b]",
+    "title_author" => "[c]",
     "corp_author" => "[ab]",
     "alternate_title" => "[apb]",
     "translated_title" => "[apb]",
