language; ?>
$value): ?>

"

{$value['title_link']}

",'class'=> array("title-cell"))); ?> 'table', '#header' => array('title' => t('Title')), '#rows' => $rows, '#empty' =>t('Your table is empty'), '#sticky' => false, '#attributes' => array('id' => 'islandora-collection-table') ); if (count($rows)>0) : echo "

".t('Collections')."

"; print drupal_render($table_element); endif; ?>

dc); if (isset($variables['islandora_dublin_core']->dc)) : $dc_array = $variables['islandora_dublin_core']->dc; endif; ?> label, "islandora/object/{$parent_collections[0]->id}"); ?>

$value): //dpm($associated_objects_array_mods[$key]["mods_array"]["typeOfResource"]); //dpm($associated_objects_array_mods[$key]["mods_array"]); //dpm($associated_objects_array_mods[$key]["pid"]); $pid = $associated_objects_array_mods[$key]["pid"]; $object = islandora_object_load($pid); //dpm($object->relationships->get()); //dpm($object->relationships->get('info:fedora/fedora-system:def/model#', 'hasModel')); //dpm($object["dsid"]); if (!$object) { drupal_set_message("Fedora Object isn't in the repo!"); } //dpm($object['models']); isset($associated_objects_array_mods[$key]["mods_array"]["typeOfResource"])? $type=$associated_objects_array_mods[$key]["mods_array"]["typeOfResource"] : $type='Unknown'; if (isset($associated_objects_array_mods[$key]["mods_array"]["part"])) : $part=$associated_objects_array_mods[$key]["mods_array"]["part"]; $part = explode(' ',trim($part)); //$num = 'n.'.$part[0]; $num = $part[0]; else: $num=''; endif; /* Path */ isset($associated_objects_array_mods[$key]["path"]) ? $url = "/".$associated_objects_array_mods[$key]["path"] : $url = "/"; /* Abstract */ isset($value['mods_array']['abstract'])? $ab = views_trim_text(array('max_length'=> 150, 'word_boundary'=>true, 'ellipsis'=>true),$value['mods_array']['abstract']) : $ab =""; /* Name part */ if (isset($value['mods_array']['name'])): //dpm(explode(',',$value['mods_array']['name'])); //if (count(explode(',',$value['mods_array']['name']))>1) : // $name=t('Various'); //else : $name = $value['mods_array']['name']; //endif; else : $name = t('Anonimous'); endif; /* Origin */ isset($value['mods_array']['originInfo'])? $date = $value['mods_array']['originInfo'] : $date = t('No date'); if (!isset($value['title_link'])) : $value['title_link']="Sin titulo"; endif; if (!isset($associated_objects_array_mods[$key]["mods_array"])): $value['title_link']="Objeto sin MODS (eliminar!)"; endif; // http://artxibo.arteleku.net/es/islandora/object/arteleku%3A3886/datastream/OBJ/download $link_download = ""; if ($type!="mixed material"): $link_download='
'; endif; $rows[] = array( '
', array('data' => "

{$value['title_link']}

", 'class' => array("title-cell")), //$name, $num, $ab, $date, $link_download ); //$nums[] = array ($num); endforeach; /* cargamos el MODS para descarga */ //http://artxibo.arteleku.net/es/islandora/object/arteleku%3A3893/datastream/MODS/download /*$rows[] = array( "
", array('data' => "

MODS

", 'class' => array("title-cell")), "", "", "", "
" );*/ ?> 'table', //'#header' => $header, '#header' => array('type'=>t(''), 'title' => t('Title'), 'part' => t(''), 'abstract' => t('Abstract'), 'date' => t('Origin'), 'download' => t('')), '#rows' => $rows, '#empty' =>t('Your table is empty'), '#sticky' => false, '#attributes' => array('id' => 'islandora-collection-table') ); print drupal_render($table_element); ?>