function render_show_repository($label, $resource) { if (isset($resource->repository)) { return render_show($label, link_to(render_title($resource->repository), array($resource->repository, 'module' => 'repository'))); } foreach ($resource->ancestors->orderBy('rgt') as $item) { if (isset($item->repository)) { return render_show($label, link_to(render_title($item->repository), array($item->repository, 'module' => 'repository'), array('title' => __('Inherited from %1%', array('%1%' => $item))))); } } }
<?php echo render_title($resource); ?> <?php echo link_to(image_tag('printer-icon.png', array('alt' => __('Print'))), array($resource, 'module' => 'physicalobject', 'action' => 'boxList'), array('id' => 'print-button', 'title' => __('Print'))); ?> </h1> <div class="section"> <?php echo render_show(__('Type'), $resource->type); ?> <?php echo render_show(__('Location'), $resource->getLocation(array('cultureFallback' => true))); ?> <div class="field"> <h3><?php echo __('Related resources'); ?> </h3> <div> <ul> <?php foreach (QubitRelation::getRelatedObjectsBySubjectId('QubitInformationObject', $resource->id, array('typeId' => QubitTerm::HAS_PHYSICAL_OBJECT_ID)) as $item) { ?> <li><?php echo link_to(render_title($item), array($item, 'module' => 'informationobject')); ?>
echo __('View user profile'); ?> </h1> <?php echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 'user', 'action' => 'edit')), '<h1 class="label">' . render_title($resource) . '</h1>', array($resource, 'module' => 'user', 'action' => 'edit'), array('title' => __('Edit user'))); ?> <div class="section"> <?php echo render_show(__('User name'), $resource->username); ?> <?php echo render_show(__('Email'), $resource->email); ?> <?php if (!$sf_user->hasCredential('administrator')) { ?> <div class="field"> <h3><?php echo __('Password'); ?> </h3> <div><?php echo link_to(__('Reset password'), array($resource, 'module' => 'user', 'action' => 'passwordEdit')); ?> </div> </div>
<div> <div style="float: right;"> <?php echo get_component('digitalobject', 'show', array('iconOnly' => true, 'link' => public_path($representation->getFullPath()), 'resource' => $representation, 'usageType' => QubitTerm::THUMBNAIL_ID)); ?> </div> <div> <?php echo render_show(__('Filename'), $representation->name); ?> <?php echo render_show(__('Filesize'), hr_filesize($representation->byteSize)); ?> <?php echo link_to(__('Delete'), array($representation, 'module' => 'digitalobject', 'action' => 'delete'), array('class' => 'delete')); ?> </div> </div>
<?php echo link_to_if(QubitAcl::check($group, 'edit'), '<h1 class="label">' . render_title($group) . '</h1>', array($group, 'module' => 'aclGroup', 'action' => 'edit'), array('title' => __('Edit group'))); ?> <div class="section"> <?php echo render_show(__('Name'), $group->name); ?> <?php echo render_show(__('Description'), $group->description); ?> <?php echo render_show(__('Translate'), __($translate)); ?> </div> <?php if (QubitAcl::check($group, 'create') || QubitAcl::check($group, 'update') || QubitAcl::check($group, 'delete')) { ?> <div class="actions section"> <h2 class="element-invisible"><?php echo __('Actions'); ?> </h2>
echo $form->renderHiddenFields(); ?> <fieldset class="collapsible"> <legend><?php echo __('Master'); ?> </legend> <?php echo render_show(__('Filename'), $resource->name); ?> <?php echo render_show(__('Filesize'), hr_filesize($resource->byteSize)); ?> <?php echo $form->mediaType->renderRow(); ?> <?php if ($showCompoundObjectToggle) { ?> <?php echo $form->displayAsCompound->label(__('View children as a compound digital object?'))->renderRow(); ?> <?php } ?>
echo format_script($code); ?> </li> <?php } ?> </ul> </div> </div> <?php echo render_show(__('Sources'), render_value($resource->getSources(array('cultureFallback' => true)))); ?> <?php echo render_show(__('Maintenance notes'), render_value($isaar->maintenanceNotes)); ?> </div> <?php if (QubitAcl::check($resource, 'create') || QubitAcl::check($resource, 'delete') || QubitAcl::check($resource, 'update')) { ?> <div class="actions section"> <h2 class="element-invisible"><?php echo __('Actions'); ?> </h2> <div class="content">
} ?> <?php echo $form->renderHiddenFields(); ?> <fieldset class="collapsible collapsed" id="identityArea"> <legend><?php echo __('Identity area'); ?> </legend> <?php echo render_show(__('Reference code'), $isad->referenceCode); ?> <?php echo $form->identifier->help(__('Provide a specific local reference code, control number, or other unique identifier. The country and repository code will be automatically added from the linked repository record to form a full reference code. (ISAD 3.1.1)'))->label(__('Identifier') . ' <span class="form-required" title="' . __('This is a mandatory element.') . '">*</span>')->renderRow(); ?> <?php echo render_field($form->title->help(__('Provide either a formal title or a concise supplied title in accordance with the rules of multilevel description and national conventions. (ISAD 3.1.2)'))->label(__('Title') . ' <span class="form-required" title="' . __('This is a mandatory element.') . '">*</span>'), $resource); ?> <?php echo get_partial('event', $eventComponent->getVarHolder()->getAll()); ?> <?php
?> <?php echo render_show_repository(__('Relation (isLocatedAt)'), $resource); ?> <?php foreach ($dc->coverage as $item) { ?> <?php echo render_show(__('Coverage (spatial)'), link_to(render_title($item), array($item, 'module' => 'term', 'action' => 'browseTerm'))); } ?> <?php echo render_show(__('Rights'), render_value($resource->getAccessConditions(array('cultureFallback' => true)))); ?> <div class="section" id="rightsArea"> <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h2>' . __('Rights area') . '</h2>', array($resource, 'module' => 'informationobject', 'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights area'))); ?> <?php echo get_component('right', 'relatedRights', array('resource' => $resource)); ?> </div> <!-- /.section#rightsArea --> <?php
<?php if (sfConfig::get('app_multi_repository') && isset($item->repository)) { ?> <?php echo render_show(__('Repository'), link_to(render_title($item->repository), array($item->repository, 'module' => 'repository'))); ?> <?php } ?> <?php if ($item->getCollectionRoot() !== $item) { ?> <?php echo render_show(__('Part of'), link_to(render_title($item->getCollectionRoot()), array($item->getCollectionRoot(), 'module' => 'informationobject'))); ?> <?php } ?> </div> <?php } ?> </div> <?php echo get_partial('default/pager', array('pager' => $pager)); ?>
?> <?php echo render_show(__('Date'), render_value(Qubit::renderDate($resource->date))); ?> <?php echo render_show(__('Description'), render_value($resource->description)); ?> <?php echo render_show(__('Extent'), render_value($resource->extent)); ?> <?php echo render_show(__('Reason'), render_value($resource->reason)); ?> <div class="actions section"> <h2 class="element-invisible"><?php echo __('Actions'); ?> </h2> <div class="content"> <ul class="clearfix links"> <?php if (QubitAcl::check($resource, 'update') || QubitAcl::check($resource, 'translate')) { ?>
echo render_show(__('URL'), render_value($resource->path)); ?> <?php } else { ?> <?php echo render_show(__('Filename'), $resource->name); ?> <?php } } ?> <?php echo render_show(__('Media type'), $resource->mediaType); ?> <?php echo render_show(__('Mime-type'), $resource->mimeType); ?> <?php echo render_show(__('Filesize'), hr_filesize($resource->byteSize)); ?> <?php echo render_show(__('Uploaded'), format_date($resource->createdAt, 'f')); ?> </div>
<?php } ?> </ul> </div> </div> <?php echo render_show(__('Sources'), render_value($resource->getSources(array('cultureFallback' => true)))); ?> <?php foreach ($resource->getNotesByType(array('noteTypeId' => QubitTerm::ARCHIVIST_NOTE_ID)) as $item) { ?> <?php echo render_show(__('Archivist\'s note'), render_value($item->getContent(array('cultureFallback' => true)))); ?> <?php } ?> </div> <!-- /.section#descriptionControlArea --> <div class="section" id="rightsArea"> <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h2>' . __('Rights area') . '</h2>', array($resource, 'module' => 'informationobject', 'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights area'))); ?> <?php echo get_component('right', 'relatedRights', array('resource' => $resource));
?> <?php if (0 < count($resource->digitalObjects)) { ?> <?php if (QubitTerm::EXTERNAL_URI_ID == $resource->digitalObjects[0]->usageId) { ?> <?php echo render_show(__('URL'), link_to(null, $resource->digitalObjects[0]->path)); ?> <?php } else { ?> <?php echo render_show(__('URL'), link_to(null, public_path($resource->digitalObjects[0]->getFullPath(), true))); ?> <?php } } ?> <div class="field"> <h3><?php echo __('Physical location'); ?> </h3> <div> <?php if (isset($resource->repository)) { ?>
<?php } ?> </ul> </div> </div> <?php echo render_show(__('Sources'), render_value($resource->getDescSources(array('cultureFallback' => true)))); ?> <?php echo render_show(__('Maintenance notes'), render_value($isdiah->maintenanceNotes)); ?> <?php echo render_show(__('Priority'), render_value($isdiah->priorities[$isdiah->ehriPriority])); ?> <div class="field"> <h3><?php echo __('Copyright Issue'); ?> </h3> <div> <?php echo render_value($isdiah->ehriCopyrightIssue ? "Yes" : "No"); ?> </div> </div> </div>
?> <li><?php echo $error; ?> </li> <?php } ?> </ul> </div> <?php } ?> <?php echo render_show(__('Authorized form of name'), render_value($resource->getAuthorizedFormOfName(array('cultureFallback' => true)))); ?> <div class="section" id="contactArea"> <h2><?php echo __('Contact area'); ?> </h2> <?php foreach ($resource->contactInformations as $contactItem) { ?> <?php echo get_partial('contactinformation/contactInformation', array('contactInformation' => $contactItem)); ?>
<?php if (sfConfig::get('app_multi_repository') && null != $doc->repositoryId) { ?> <?php echo render_show(__('Repository'), link_to($doc->repositoryName, array('slug' => $doc->repositorySlug, 'module' => 'repository'))); ?> <?php } ?> <?php if ($doc->collectionRootId !== $doc->id) { ?> <?php echo render_show(__('Part of'), link_to($doc->collectionRootTitle, array('slug' => $doc->collectionRootSlug, 'module' => 'informationobject'))); ?> <?php } ?> </div> <?php } ?> </div> <?php if ('print' != $sf_request->getGetParameter('media')) { ?> <?php
</ul> </div> </div> <div class="field"> <h3><?php echo __('Hierarchical terms'); ?> </h3> <div> <?php if (QubitTerm::ROOT_ID != $resource->parent->id) { ?> <?php echo render_show(render_title($resource), __('BT %1%', array('%1%' => link_to(render_title($resource->parent), array($resource->parent, 'module' => 'term'))))); ?> <?php } ?> <div class="field"> <h3><?php echo render_title($resource); ?> </h3> <div> <ul> <?php foreach ($resource->getChildren(array('sortBy' => 'name')) as $item) { ?>
?> <?php echo render_show(__('Received extent units'), render_value($resource->getReceivedExtentUnits(array('cultureFallback' => true)))); ?> <?php echo render_show(__('Processing status'), render_value($resource->processingStatus)); ?> <?php echo render_show(__('Processing priority'), render_value($resource->processingPriority)); ?> <?php echo render_show(__('Processing notes'), render_value($resource->getProcessingNotes(array('cultureFallback' => true)))); ?> </div> <!-- /.section#administrativeArea --> <div class="section" id="rightsArea"> <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h2>' . __('Rights area') . '</h2>', array($resource, 'module' => 'accession', 'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights area'))); ?> <?php echo get_component('right', 'relatedRights', array('resource' => $resource)); ?> </div> <!-- /.section#rightsArea -->
echo $resource->__toString(); ?> </h1> <?php echo $form->renderGlobalErrors(); ?> <?php echo $form->renderFormTag(url_for(array($resource, 'module' => 'informationobject', 'action' => 'reports'))); ?> <div class="section"> <?php echo render_show(__('Select report'), $form->report); ?> </div> <div class="actions section"> <h2 class="element-invisible"><?php echo __('Actions'); ?> </h2> <div class="content"> <ul class="clearfix links"> <li><input class="form-submit" type="submit" value="<?php echo __('Continue');
<?php foreach ($resource->scriptOfDescription as $code) { ?> <li><?php echo format_script($code); ?> </li> <?php } ?> </ul> </div> </div> <?php echo render_show(__('Sources'), render_value($resource->getSources(array('cultureFallback' => true)))); ?> </div> <!-- /.section --> <div class="section" id="rightsArea"> <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h2>' . __('Rights area') . '</h2>', array($resource, 'module' => 'informationobject', 'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights area'))); ?> <?php echo get_component('right', 'relatedRights', array('resource' => $resource)); ?> </div> <!-- /.section#rightsArea -->
<div class="section" id="ehriMetadata"> <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 'informationObject'), '<h2>' . __('EHRI Metadata') . '</h2>', array($resource, 'module' => 'informationobject', 'action' => 'edit'), array('anchor' => 'ehriMetadata', 'title' => __('Edit EHRI Metadata'))); ?> <?php echo render_show(__('Scope'), render_value($isad->ehriScope)); ?> <?php echo render_show(__('Priority'), render_value($isad->priorities[$isad->ehriPriority])); ?> <?php echo render_show(__('Copyright Issue'), render_value($isad->ehriCopyrightIssue ? "Yes" : "No")); ?> </div> <!-- /.section#ehriMetadata --> <div class="section" id="rightsArea"> <?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h2>' . __('Rights area') . '</h2>', array($resource, 'module' => 'informationobject', 'action' => 'edit'), array('anchor' => 'rightsArea', 'title' => __('Edit rights area'))); ?> <?php echo get_component('right', 'relatedRights', array('resource' => $resource)); ?>
<?php echo render_show(__('License note'), render_value($resource->getLicenseNote(array('cultureFallback' => true)))); ?> <?php } elseif (QubitTerm::RIGHT_BASIS_STATUTE_ID == $resource->basisId) { ?> <?php echo render_show(__('Statute jurisdiction'), render_value($resource->getStatuteJurisdiction(array('cultureFallback' => true)))); ?> <?php echo render_show(__('Statute citation'), render_value($resource->getStatuteCitation(array('cultureFallback' => true)))); ?> <?php echo render_show(__('Statute determination date'), render_value($resource->statuteDeterminationDate)); ?> <?php echo render_show(__('Statute note'), render_value($resource->getStatuteNote(array('cultureFallback' => true)))); ?> <?php } ?> </div> </div>