Browse Source

ISLANDORA-227 Add title to object label.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
53af2c7f32
  1. 7
      ilives/book.inc

7
ilives/book.inc

@ -123,6 +123,13 @@ class IslandoraBook {
$mods_item = $mods_list_doc->getElementsByTagNameNS('http://www.loc.gov/mods/v3', 'mods')->item(0); $mods_item = $mods_list_doc->getElementsByTagNameNS('http://www.loc.gov/mods/v3', 'mods')->item(0);
$new_mods_item = $mods_item_doc->importNode($mods_item, TRUE); $new_mods_item = $mods_item_doc->importNode($mods_item, TRUE);
$mods_item_doc->appendChild($new_mods_item); $mods_item_doc->appendChild($new_mods_item);
$title_info = $mods_item_doc->getElementsByTagNameNS('http://www.loc.gov/mods/v3', 'titleInfo')->item(0);
$title = '';
foreach(array('nonSort', 'title') as $title_field) {
$title .= $title_info->getElementsByTagNameNS('http://www.loc.gov/mods/v3', $title_field)->item(0)->nodeValue;
}
$mods_text = $mods_item_doc->saveXML(); $mods_text = $mods_item_doc->saveXML();
global $user; global $user;
$mimetype = new MimeClass(); $mimetype = new MimeClass();

Loading…
Cancel
Save