# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: millennium.module
--- millennium.module Base (1.13.2.33.2.2.2.94)
+++ millennium.module Locally Modified (Based On 1.13.2.33.2.2.2.94)
@@ -30,8 +30,7 @@
     'short_title' => t('Short title'),
     'translated_title' => t('Translated title'),
     'authors' => t('Author(s)'),
-    'corp_author' => t('Corporate author'),
-    'secondary_authors' => t('Secondary author(s)'),
+    'corp_author' => t('Corporate author(s)'),
     'series' => t('Series'),
     'edition' => t('Edition'),
     'imprint' => t('Imprint'),
@@ -785,11 +784,7 @@
     case 'view':
       // Authors
       $authors_output = array();
-      if (sizeof($node->millennium_biblio_data['authors']) > 0) {
-        $authors_output += $node->millennium_biblio_data['authors'];
-      }
-      $author_fields = explode('|', 'secondary_authors|tertiary_authors|corp_author');
-      foreach ($author_fields as $field) {
+      foreach (array('authors', 'corp_author') as $field) {
         $author = $node->millennium_biblio_data[$field];
         if (sizeof($author) > 0) {
           $authors_output += $author;
@@ -1856,18 +1851,12 @@
   }
 
   // Check if author found
-  if ($biblio["authors"] == "") {
+  if (!$biblio["authors"]) {
     if ($biblio["corp_author"]) {
       $biblio["authors"] = $biblio["corp_author"];
       unset($biblio["corp_author"]);
     }
-    else {
-      if ($biblio["secondary_authors"]) {
-        $biblio["authors"] = $biblio["secondary_authors"];
-        unset($biblio["secondary_authors"]);
       }
-    }
-  }
 
   // Imprint -> Editor, place, date edited
   $found_data = millennium_getFields_fixed($marc, "260");
@@ -2056,21 +2045,14 @@
   }
 
   // Authors
-  $author_fields = explode('|', 'authors|secondary_authors|tertiary_authors|corp_author');
-  unset($authors);
-  foreach ($author_fields as $field) {
+  $authors = array();
+  foreach (array('authors', 'corp_author') as $field) {
     $value = $nodeobject->millennium_biblio_data[$field];
-    if ($value != "")
-      if (strpos($value, ";")) {
-        $tmp = explode(';', $value);
-        foreach ($tmp as $author)
-          $authors[] = $author;
+    if ($value) {
+      $authors += $value;
       }
-      else {
-        $authors[] = $value;
       }
-  }
-  if (is_array($authors)) {
\ No newline at end of file
+  if ($authors) {
     millennium_add_node_taxonomy_terms($nodeobject, variable_get('millennium_marc_vid_author', -1), $authors);
   }
 
