renderLOD($resource, $eadLevels); ?> relatedencoding="">
getCreators();
@@ -96,17 +100,21 @@
getPublicationStatus()) { ?>
getPublicationStatus())); ?>
- descriptionDetailId) { ?>
+
+ descriptionDetailId && ($sf_user->isAuthenticated() || sfConfig::get($levelOfDetail) == 1)) { ?>
descriptionDetailId))); ?>
descriptionStatusId) ? QubitTerm::getById($resource->descriptionStatusId) : ''; ?>
-
+
+ isAuthenticated() || sfConfig::get($status) == 1)) { ?>
- descriptionIdentifier) { ?>
+
+ descriptionIdentifier && ($sf_user->isAuthenticated() || sfConfig::get($descId) == 1)) { ?>
descriptionIdentifier)); ?>
- institutionResponsibleIdentifier) { ?>
+
+ institutionResponsibleIdentifier && ($sf_user->isAuthenticated() || sfConfig::get($instId) == 1)) { ?>
institutionResponsibleIdentifier)); ?>
@@ -152,7 +160,9 @@
if (0 < count($notes = $resource->getNotesByType(['noteTypeId' => $noteTypeId]))) {
foreach ($notes as $note) { ?>
- getMetadataParameter($xmlType))) { ?>encodinganalog="">getContent(['cultureFallback' => true]))); ?>
+ isAuthenticated() || sfConfig::get('app_element_visibility_rad_conservation_notes') == 1)) && (($xmlType == 'conservation' && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_rad_rights_notes') == 1)))) { ?>
+ getMetadataParameter($xmlType))) { ?>encodinganalog="">getContent(['cultureFallback' => true]))); ?>
+
- getPhysicalCharacteristics(['cultureFallback' => true]))) { ?>
+
+ getPhysicalCharacteristics(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get($physCond) == 1)) { ?>
- getAppraisal(['cultureFallback' => true]))) { ?>
+ getAppraisal(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_isad_appraisal_destruction') == 1)) { ?>
getMetadataParameter('appraisal'))) { ?>encodinganalog="">
- getAcquisition(['cultureFallback' => true]))) { ?>
+ getAcquisition(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_isad_archival_history') == 1)) { ?>
getAccruals(['cultureFallback' => true]))) { ?>
- getArchivalHistory(['cultureFallback' => true]))) { ?>
+ getArchivalHistory(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_isad_archival_history') == 1)) { ?>
getNotesByType(['noteTypeId' => QubitTerm::ARCHIVIST_NOTE_ID]); ?>
- getRevisionHistory(['cultureFallback' => true])) || 0 < count($archivistsNotes)) { ?>
-
+ getRevisionHistory(['cultureFallback' => true])) || 0 < count($archivistsNotes))) { ?>
+
-
+ isAuthenticated() || sfConfig::get($datesOfCreation) == 1)) { ?>
-
+ isAuthenticated() || sfConfig::get('app_element_visibility_isad_control_archivists_notes') == 1)) { ?>
getContent(['cultureFallback' => true]))); ?>
@@ -380,7 +391,7 @@
- getPhysicalCharacteristics(['cultureFallback' => true]))) { ?>
+ getPhysicalCharacteristics(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_rad_physical_condition') == 1)) { ?>
@@ -388,7 +399,7 @@
getMetadataParameter('appraisal'))) { ?>encodinganalog="">
- getAcquisition(['cultureFallback' => true]))) { ?>
+ getAcquisition(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_rad_immediate_source') == 1)) { ?>
@@ -396,7 +407,7 @@
- getArchivalHistory(['cultureFallback' => true]))) { ?>
+ getArchivalHistory(['cultureFallback' => true])) && ($sf_user->isAuthenticated() || sfConfig::get('app_element_visibility_rad_archival_history') == 1)) { ?>
diff --git a/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php b/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php
index de77bdacd7..04a227d166 100644
--- a/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php
+++ b/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyDidElement.xml.php
@@ -137,11 +137,14 @@
- sources) { ?>
+ getMetadataParameter('relatedencoding'); ?>
+
+ sources && ($sf_user->isAuthenticated() || sfConfig::get($controlSources) == 1)) { ?>
sources)); ?>
- getNotesByType(['noteTypeId' => QubitTerm::GENERAL_NOTE_ID]))) { ?>
+
+ getNotesByType(['noteTypeId' => QubitTerm::GENERAL_NOTE_ID])) && ($sf_user->isAuthenticated() || sfConfig::get($generalNotes) == 1)) { ?>
getMetadataParameter('generalNote'))) { ?>encodinganalog="">
getContent(['cultureFallback' => true]))); ?>