Index: millennium.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/millennium/millennium.module,v
retrieving revision 1.13.2.33.2.2.2.37
diff -u -p -r1.13.2.33.2.2.2.37 millennium.module
--- millennium.module	30 Oct 2009 22:22:49 -0000	1.13.2.33.2.2.2.37
+++ millennium.module	16 Nov 2009 10:28:13 -0000
@@ -2888,9 +2888,26 @@ function millennium_marcleader_to_mattyp
   $marc007 = millennium_getFields($marc, "007..");
   $record_type = substr($marc['LEADER'], 6, 1);
   $bibliographic_level = substr($marc['LEADER'], 7, 1);
-  $material_category = substr($marc007[0], 0, 1);
-  $material_designation = substr($marc007[0], 1, 1);
-  $video_format = substr($marc007[0], 4, 1);
+  /*
+a - Language material
+c - Notated music
+d - Manuscript notated music
+
+e - Cartographic material
+f - Manuscript cartographic material
+
+g - Projected medium
+
+i - Nonmusical sound recording
+j - Musical sound recording
+k - Two-dimensional nonprojectable graphic
+m - Computer file
+o - Kit
+p - Mixed materials
+r - Three-dimensional artifact or naturally occurring object
+t - Manuscript language material
+   */
   switch ($record_type) {
     case 'r':
       $format = 'Object';
@@ -2909,6 +2926,12 @@ function millennium_marcleader_to_mattyp
     case 'f':
       $format = 'Map';
       break;
+    case 'i':
+      $format = 'Sound recording';
+      break;
+    case 'j':
+      $format = 'Music';
+      break;
     case 'm':
       $format = 'Computer file';
       break;
@@ -2925,6 +2948,15 @@ function millennium_marcleader_to_mattyp
         $format = 'Book';
       }
   }
+  return $format;
+}
+
+function millennium_material_format($marc) {
+  $material_category = substr($marc007[0], 0, 1);
+  $material_designation = substr($marc007[0], 1, 1);
+  $video_format = substr($marc007[0], 4, 1);
+  $format = null;
+
   if ($material_category == 'v'){
     if ($video_format == 'v'){
       $format = 'DVD';
