}
        if ($vs_thumb) {
            print "</div></div><!-- end row -->";
        } else {
            print "<br/>";
        }
        print "<br/>";
    }
}
$va_collections = $t_item->get("ca_collections", array("returnAsArray" => true, "checkAccess" => $va_access_values));
if (sizeof($va_collections)) {
    print "<H6>Related collection" . (sizeof($va_collections) > 1 ? "s" : "") . "</H6>";
    $t_rel_collection = new ca_collections();
    foreach ($va_collections as $va_collection) {
        $t_rel_collection->load($va_collection["collection_id"]);
        $t_object_thumb->load($t_rel_collection->get("ca_objects.object_id", array("restrictToRelationshipTypes" => array("cover"), "checkAccess" => $va_access_values)));
        $vs_thumb = $t_object_thumb->get("ca_object_representations.media.icon", array("checkAccess" => $va_access_values));
        if ($vs_thumb) {
            print "<div class='row'><div class='col-sm-3 col-md-3 col-lg-3'>" . $vs_thumb . "</div>\n";
            print "<div class='col-sm-9 col-md-9 col-lg-9'>\n";
        }
        print $t_rel_collection->getWithTemplate("<b><l>^ca_collections.preferred_labels.name</l></b>");
        if ($vs_brief_description = $t_rel_collection->get("ca_collections.brief_description")) {
            print "<br/>" . $vs_brief_description;
        }
        if ($vs_thumb) {
            print "</div></div><!-- end row -->";
        } else {
            print "<br/>";
        }
        print "<br/>";
             }
             if ($vn_i < 4) {
                 while ($vn_i < 4) {
                     if ($vn_ii % 2 == 0) {
                         $vs_style = "style='margin-right:10px;'";
                     } else {
                         $vs_style = "";
                     }
                     print "<div class='exImage' {$vs_style}></div>";
                     $vn_i++;
                     $vn_ii++;
                 }
             }
         } else {
             $t_collection = new ca_collections($va_artworks[0]);
             $va_related_objects = $t_collection->get('ca_objects.object_id', array('returnAsArray' => true));
             $va_object_reps = caGetPrimaryRepresentationsForIDs($va_related_objects, array('versions' => array('exsingle'), 'return' => array('tags')));
             print "<div class='exImageSingle'>" . caNavLink($this->request, array_shift(array_values($va_object_reps)), '', '', 'Detail', 'Occurrences/' . $va_occurrence['occurrence_id']) . "</div>";
         }
         print "<div class='exTitle'>" . caNavLink($this->request, $va_occurrence['name'], '', '', 'Detail', 'Occurrences/' . $va_occurrence['occurrence_id']) . "</div>";
         print "<div class='exDate'>" . $t_occurrence->get('ca_occurrences.event_dates') . "</div>";
         print "</div><!-- end occurrenceResult -->";
     }
     print "</div></div>";
     print "</div><!-- end blockResults -->";
     print "</div><!-- end entitiesBlock -->";
 }
 # Related Objects Block
 if (sizeof($va_objects) > 0) {
     foreach ($va_objects as $va_object_id => $va_object) {
         $vn_object_ids[] = $va_object['object_id'];
 /**
  * Return array containing information about all hierarchies, including their root_id's
  * For non-adhoc hierarchies such as places, this call returns the contents of the place_hierarchies list
  * with some extra information such as the # of top-level items in each hierarchy.
  *
  * For an ad-hoc hierarchy like that of an collection, there is only ever one hierarchy to display - that of the current collection.
  * So for adhoc hierarchies we just return a single entry corresponding to the root of the current collection hierarchy
  */
 public function getHierarchyList($pb_dummy = false)
 {
     $vn_pk = $this->getPrimaryKey();
     $vs_template = $this->getAppConfig()->get('ca_collections_hierarchy_browser_display_settings');
     if (!$vn_pk) {
         $o_db = new Db();
         if (is_array($va_type_ids = caMergeTypeRestrictionLists($this, array())) && sizeof($va_type_ids)) {
             $qr_res = $o_db->query("\n\t\t\t\t\tSELECT o.collection_id, count(*) c\n\t\t\t\t\tFROM ca_collections o\n\t\t\t\t\tINNER JOIN ca_collections AS p ON p.parent_id = o.collection_id\n\t\t\t\t\tWHERE o.parent_id IS NULL AND o.type_id IN (?)\n\t\t\t\t\tGROUP BY o.collection_id\n\t\t\t\t", array($va_type_ids));
         } else {
             $qr_res = $o_db->query("\n\t\t\t\t\tSELECT o.collection_id, count(*) c\n\t\t\t\t\tFROM ca_collections o\n\t\t\t\t\tINNER JOIN ca_collections AS p ON p.parent_id = o.collection_id\n\t\t\t\t\tWHERE o.parent_id IS NULL\n\t\t\t\t\tGROUP BY o.collection_id\n\t\t\t\t");
         }
         $va_hiers = array();
         $va_collection_ids = $qr_res->getAllFieldValues('collection_id');
         $qr_res->seek(0);
         $va_labels = $this->getPreferredDisplayLabelsForIDs($va_collection_ids);
         while ($qr_res->nextRow()) {
             $va_hiers[$vn_collection_id = $qr_res->get('collection_id')] = array('item_id' => $vn_collection_id, 'collection_id' => $vn_collection_id, 'name' => caProcessTemplateForIDs($vs_template, 'ca_collections', array($vn_collection_id)), 'hierarchy_id' => $vn_collection_id, 'children' => (int) $qr_res->get('c'));
         }
         return $va_hiers;
     } else {
         // return specific collection as root of hierarchy
         $vs_label = $this->getLabelForDisplay(false);
         $vs_hier_fld = $this->getProperty('HIERARCHY_ID_FLD');
         $vs_parent_fld = $this->getProperty('PARENT_ID_FLD');
         $vn_hier_id = $this->get($vs_hier_fld);
         if ($this->get($vs_parent_fld)) {
             // currently loaded row is not the root so get the root
             $va_ancestors = $this->getHierarchyAncestors();
             if (!is_array($va_ancestors) || sizeof($va_ancestors) == 0) {
                 return null;
             }
             $t_collection = new ca_collections($va_ancestors[0]);
         } else {
             $t_collection =& $this;
         }
         $va_children = $t_collection->getHierarchyChildren(null, array('idsOnly' => true));
         $va_collection_hierarchy_root = array($t_collection->get($vs_hier_fld) => array('item_id' => $vn_pk, 'collection_id' => $vn_pk, 'name' => caProcessTemplateForIDs($vs_template, 'ca_collections', array($vn_pk)), 'hierarchy_id' => $vn_hier_id, 'children' => sizeof($va_children)));
         return $va_collection_hierarchy_root;
     }
 }
         $vs_date_link = "<p>" . $qr_res->get('ca_objects.dc_date', array('returnAsLink' => true, 'delimiter' => '; ', 'template' => '^dc_dates_value')) . "</p>";
     } else {
         $vs_date_link = "";
     }
     if ($qr_res->get('ca_objects.type_id') == 23 || $qr_res->get('ca_objects.type_id') == 26 || $qr_res->get('ca_objects.type_id') == 25 || $qr_res->get('ca_objects.type_id') == 24 || $qr_res->get('ca_objects.type_id') == 27) {
         $vs_type_link = "<p>" . $qr_res->get('ca_objects.type_id', array('convertCodesToDisplayText' => true)) . "</p>";
     } else {
         $vs_type_link = "";
     }
     if ($qr_res->get('ca_objects.type_id') == 23 || $qr_res->get('ca_objects.type_id') == 26 || $qr_res->get('ca_objects.type_id') == 25 || $qr_res->get('ca_objects.type_id') == 24 || $qr_res->get('ca_objects.type_id') == 27) {
         $va_collection_id = $qr_res->get('ca_collections.collection_id');
         $t_collection = new ca_collections($va_collection_id);
         $vn_parent_ids = $t_collection->getHierarchyAncestors($va_collection_id, array('idsOnly' => true));
         $vn_highest_level = end($vn_parent_ids);
         $t_top_level = new ca_collections($vn_highest_level);
         $vs_collection_link = "<p>" . caNavLink($this->request, $t_top_level->get('ca_collections.preferred_labels'), '', 'Detail', 'collections', $vn_highest_level) . "</p>";
     }
 }
 if ($vs_table == 'ca_objects') {
     if ($qr_res->get('ca_objects.type_id') == 25) {
         $va_icon = "<i class='glyphicon glyphicon-volume-up'></i>";
     } elseif ($qr_res->get('ca_objects.type_id') == 26) {
         $va_icon = "<i class='glyphicon glyphicon-film'></i>";
     } elseif ($qr_res->get('ca_objects.type_id') == 30 && !$qr_res->getMediaTag('ca_object_representations.media', 'medium', array('checkAccess' => $va_access_values))) {
         $va_icon = "<i class='glyphicon glyphicon-book'></i>";
     } elseif ($qr_res->get('ca_objects.type_id') == 1903) {
         $vn_parent_id = $qr_res->get('ca_objects.parent_id');
         $t_copy = new ca_objects($vn_parent_id);
         if (!$t_copy->get('ca_object_representations.media.medium', array('checkAccess' => $va_access_values))) {
             $va_icon = "<i class='glyphicon glyphicon-book'></i>";
         } else {
 /**
  * Override's BaseModel method to intercept calls for field 'idno'; uses the specified IDNumbering
  * plugin to generate HTML for idno. If no plugin is specified then the call is passed on to BaseModel::htmlFormElement()
  * Calls for fields other than idno are passed to BaseModel::htmlFormElement()
  */
 public function htmlFormElement($ps_field, $ps_format = null, $pa_options = null)
 {
     if (!is_array($pa_options)) {
         $pa_options = array();
     }
     foreach (array('name', 'form_name', 'request', 'field_errors', 'display_form_field_tips', 'no_tooltips', 'label', 'readonly') as $vs_key) {
         if (!isset($pa_options[$vs_key])) {
             $pa_options[$vs_key] = null;
         }
     }
     if (!$this->opo_idno_plugin_instance) {
         $this->loadIDNoPlugInInstance($pa_options);
     }
     if ($ps_field == $this->getProperty('ID_NUMBERING_ID_FIELD') && $this->opo_idno_plugin_instance && $pa_options['request']) {
         $vs_idno_fld = $this->getProperty('ID_NUMBERING_ID_FIELD');
         if ($this->tableName() == 'ca_objects' && $this->getAppConfig()->get('ca_objects_x_collections_hierarchy_enabled') && $pa_options['request'] && ($vn_collection_id = $pa_options['request']->getParameter('collection_id', pInteger))) {
             // Parent will be set to collection
             $t_coll = new ca_collections($vn_collection_id);
             if ($this->inTransaction()) {
                 $t_coll->setTransaction($this->getTransaction());
             }
             if ($t_coll->getPrimaryKey()) {
                 $this->opo_idno_plugin_instance->isChild(true, $t_coll->get('idno'));
                 if (!$this->opo_idno_plugin_instance->formatHas('PARENT')) {
                     $this->set($vs_idno_fld, $t_coll->get('idno'));
                 }
             }
         } elseif ($vn_parent_id = $this->get($this->getProperty('HIERARCHY_PARENT_ID_FLD'))) {
             // Parent will be set
             $t_parent = $this->getAppDatamodel()->getInstanceByTableName($this->tableName(), false);
             if ($this->inTransaction()) {
                 $t_parent->setTransaction($this->getTransaction());
             }
             if ($t_parent->load($vn_parent_id)) {
                 $this->opo_idno_plugin_instance->isChild(true, $t_parent->get($this->tableName() . ".{$vs_idno_fld}"));
                 if (!$this->getPrimaryKey() && !$this->opo_idno_plugin_instance->formatHas('PARENT')) {
                     $this->set($vs_idno_fld, $this->opo_idno_plugin_instance->makeTemplateFromValue($t_parent->get($vs_idno_fld), 1, true));
                 }
             }
         }
         // if it has a parent_id then set the id numbering plugin using "child_only" numbering schemes (if defined)
         $this->opo_idno_plugin_instance->setValue($this->get($ps_field));
         if (method_exists($this, "getTypeCode")) {
             $this->opo_idno_plugin_instance->setType($this->getTypeCode());
         }
         $vs_element = $this->opo_idno_plugin_instance->htmlFormElement($ps_field, $va_errors, array_merge($pa_options, array('error_icon' => $pa_options['request']->getThemeUrlPath() . "/graphics/icons/warning_small.gif", 'progress_indicator' => $pa_options['request']->getThemeUrlPath() . "/graphics/icons/indicator.gif", 'show_errors' => $this->getPrimaryKey() ? true : false, 'context_id' => isset($pa_options['context_id']) ? $pa_options['context_id'] : null, 'table' => $this->tableName(), 'row_id' => $this->getPrimaryKey(), 'check_for_dupes' => true, 'search_url' => caSearchUrl($pa_options['request'], $this->tableName(), ''))));
         if (is_null($ps_format)) {
             if (isset($pa_options['field_errors']) && is_array($pa_options['field_errors']) && sizeof($pa_options['field_errors'])) {
                 $ps_format = $this->_CONFIG->get('bundle_element_error_display_format');
                 $va_field_errors = array();
                 foreach ($pa_options['field_errors'] as $o_e) {
                     $va_field_errors[] = $o_e->getErrorDescription();
                 }
                 $vs_errors = join('; ', $va_field_errors);
             } else {
                 $ps_format = $this->_CONFIG->get('bundle_element_display_format');
                 $vs_errors = '';
             }
         }
         if ($ps_format != '') {
             $ps_formatted_element = $ps_format;
             $ps_formatted_element = str_replace("^ELEMENT", $vs_element, $ps_formatted_element);
             $va_attr = $this->getFieldInfo($ps_field);
             foreach (array('DISPLAY_DESCRIPTION', 'DESCRIPTION', 'LABEL', 'DESCRIPTION') as $vs_key) {
                 if (!isset($va_attr[$vs_key])) {
                     $va_attr[$vs_key] = null;
                 }
             }
             // TODO: should be in config file
             $pa_options["display_form_field_tips"] = true;
             if ($pa_options["display_form_field_tips"] || !isset($pa_options["display_form_field_tips"]) && $va_attr["DISPLAY_DESCRIPTION"] || !isset($pa_options["display_form_field_tips"]) && !isset($va_attr["DISPLAY_DESCRIPTION"]) && $vb_fl_display_form_field_tips) {
                 if (preg_match("/\\^DESCRIPTION/", $ps_formatted_element)) {
                     $ps_formatted_element = str_replace("^LABEL", isset($pa_options['label']) ? $pa_options['label'] : $va_attr["LABEL"], $ps_formatted_element);
                     $ps_formatted_element = str_replace("^DESCRIPTION", $va_attr["DESCRIPTION"], $ps_formatted_element);
                 } else {
                     // no explicit placement of description text, so...
                     $vs_field_id = '_' . $this->tableName() . '_' . $this->getPrimaryKey() . '_' . $pa_options["name"] . '_' . $pa_options['form_name'];
                     $ps_formatted_element = str_replace("^LABEL", '<span id="' . $vs_field_id . '">' . (isset($pa_options['label']) ? $pa_options['label'] : $va_attr["LABEL"]) . '</span>', $ps_formatted_element);
                     if (!$pa_options['no_tooltips']) {
                         TooltipManager::add('#' . $vs_field_id, "<h3>" . (isset($pa_options['label']) ? $pa_options['label'] : $va_attr["LABEL"]) . "</h3>" . $va_attr["DESCRIPTION"]);
                     }
                 }
             } else {
                 $ps_formatted_element = str_replace("^LABEL", isset($pa_options['label']) ? $pa_options['label'] : $va_attr["LABEL"], $ps_formatted_element);
                 $ps_formatted_element = str_replace("^DESCRIPTION", "", $ps_formatted_element);
             }
             $ps_formatted_element = str_replace("^ERRORS", $vs_errors, $ps_formatted_element);
             $vs_element = $ps_formatted_element;
         }
         return $vs_element;
     } else {
         return parent::htmlFormElement($ps_field, $ps_format, $pa_options);
     }
 }
if (sizeof($va_collections) > 0) {
    print "<h3>" . _t("Related Project/Silo") . (sizeof($va_collections) > 1 ? "s" : "") . "</h3>";
    #foreach($va_collections as $va_collection_info){
    #	print "<p>".(($this->request->config->get('allow_detail_for_ca_collections')) ? caNavLink($this->request, $va_collection_info['label'], '', 'Detail', 'Collection', 'Show', array('collection_id' => $va_collection_info['collection_id'])) : $va_collection_info['label'])." <span class='details'>(".$va_collection_info['relationship_typename'].")</span></p>";
    #}
    ?>
				<div class='scrollPane'>
<?php 
    $va_silos = array();
    $va_collection_links = array();
    $t_related_collection = new ca_collections();
    foreach ($va_collections as $va_collection_info) {
        if ($va_collection_info["item_type_id"] != $vn_silo_id) {
            # --- if the related collection is not a silo, check for a related silo to list it under
            $t_related_collection->load($va_collection_info['collection_id']);
            $va_related_silos = $t_related_collection->get("ca_collections", array("returnAsArray" => 1, 'checkAccess' => $va_access_values, 'restrictToTypes' => array('silo')));
            if (sizeof($va_related_silos)) {
                foreach ($va_related_silos as $va_related_silo) {
                    $va_silos[$va_related_silo["collection_id"]][] = $va_collection_info['collection_id'];
                    $va_collection_links[$va_related_silo["collection_id"]] = $this->request->config->get('allow_detail_for_ca_collections') ? caNavLink($this->request, $va_related_silo['label'], '', 'Detail', 'Collection', 'Show', array('collection_id' => $va_related_silo['collection_id'])) : $va_related_silo['label'];
                }
            } else {
                if (!$va_silos[$va_collection_info['collection_id']]) {
                    $va_silos[$va_collection_info['collection_id']] = array();
                }
            }
        } else {
            if (!$va_silos[$va_collection_info['collection_id']]) {
                $va_silos[$va_collection_info['collection_id']] = array();
            }
        }
			<div class='blockTitle'><?php 
        print $va_block_info['displayName'];
        ?>
</div>
			<div class='blockResults'>
				<div id="{{{block}}}scrollButtonPrevious" class="scrollButtonPrevious"><i class="fa fa-angle-left"></i></div><div id="{{{block}}}scrollButtonNext" class="scrollButtonNext"><i class="fa fa-angle-right"></i></div>
				<div id='{{{block}}}Results' class='scrollBlock'>
					<div class='blockResultsScroller'>
<?php 
    }
    $vn_count = 0;
    $vb_div_open = false;
    while ($qr_results->nextHit()) {
        $va_related_col_ids = $qr_results->get('ca_collections.collection_id', array('returnAsArray' => true, 'checkAccess' => $va_access_values));
        $t_collection = new ca_collections($va_related_col_ids[0]);
        $va_related_object_ids = $t_collection->get('ca_objects.object_id', array('returnAsArray' => true, 'checkAccess' => $va_access_values));
        print "<div class='{{{block}}}Result'>";
        $va_images = caGetPrimaryRepresentationsForIDs($va_related_object_ids, array('versions' => array('resultthumb'), 'return' => 'tags', 'checkAccess' => $va_access_values));
        if (sizeof($va_images) > 0) {
            foreach ($va_images as $vn_image_id => $vs_image) {
                print "<div class='objImage'>" . $qr_results->getWithTemplate("<l>{$vs_image}</l>") . "</div>";
                break;
            }
        } else {
            print caNavLink($this->request, "<div class='objImage'></div><!-- objImage-->", '', 'Detail', 'occurrences', $qr_results->get('ca_occurrences.occurrence_id'));
        }
        print "<div class=''>" . $qr_results->get('ca_occurrences.preferred_labels.name', array('returnAsLink' => true)) . "</div>";
        print "</div>";
        $vn_count++;
        if (!$vn_init_with_start && $vn_count == $vn_hits_per_block || $vn_init_with_start && $vn_count >= $vn_init_with_start) {
            break;
<?php

require_once __CA_MODELS_DIR__ . "/ca_collections.php";
require_once __CA_MODELS_DIR__ . '/ca_sets.php';
require_once __CA_MODELS_DIR__ . '/ca_lists.php';
$va_access_values = caGetUserAccessValues($this->request);
# --- most popular collections
$t_collections = new ca_collections();
$va_user_favorites_collections = $t_collections->getHighestRated(null, 5, $va_access_values);
if (is_array($va_user_favorites_collections) && sizeof($va_user_favorites_collections) > 0) {
    $va_most_popular_collections = array();
    foreach ($va_user_favorites_collections as $vn_fav_collection_id) {
        $t_collection = new ca_collections($vn_fav_collection_id);
        if ($t_collection->get("access") == 1) {
            $va_most_popular_collections[$vn_fav_collection_id] = $t_collection->getLabelForDisplay();
        }
    }
}
# - get staff picks sets
// get sets for public display
$t_list = new ca_lists();
$vn_public_set_type_id = $t_list->getItemIDFromList('set_types', 'Staff Pick');
// get value for public access status value
$va_tmp = $t_list->getItemFromList('access_statuses', 'public_access');
$vn_public_access = $va_tmp['item_value'];
$t_set = new ca_sets();
$va_staff_picks_sets = array();
#$va_staff_picks_sets = caExtractValuesByUserLocale($t_set->getSets('ca_collections', null, $va_access_values, null, $vn_public_set_type_id));
$va_staff_picks_sets = caExtractValuesByUserLocale($t_set->getSets(array('table' => 'ca_collections', 'checkAccess' => $va_access_values, "setType" => $vn_public_set_type_id)));
if (is_array($va_most_popular_collections) && sizeof($va_most_popular_collections) > 0) {
    ?>
    if ($va_scope = $t_collection->get('ca_collections.scope_content')) {
        print "<h6 id='scope'>Scope and Content</h6><div class='trimText'>" . $va_scope . "</div>";
        $va_table_contents[] = "<a href='#scope'>Scope and Content</a>";
    }
    if ($va_arrangement = $t_collection->get('ca_collections.arrangement')) {
        print "<h6 id='arrangement'>Arrangement</h6><div>" . $va_arrangement . "</div>";
        $va_table_contents[] = "<a href='#arrangement'>Arrangement</a>";
    }
}
if ($t_collection->get('ca_collections.children')) {
    print "<h6 id='contents'>Collection Contents</h6>";
    $va_table_contents[] = "<a href='#contents'>Collection Contents</a>";
    $va_hierarchy = $t_collection->hierarchyWithTemplate("<l>^ca_collections.preferred_labels.name</l>", array('collection_id' => $va_collection_id, 'sort' => 'ca_collections.preferred_labels.name'));
    foreach ($va_hierarchy as $vn_i => $va_hierarchy_item) {
        $t_collection_item = new ca_collections($va_hierarchy_item['id']);
        if ($t_collection_item->get('ca_collections.fa_access') != 261 && $va_hierarchy_item['level'] != 0) {
            $va_indent = "style='margin-left:" . ($va_hierarchy_item['level'] * 15 - 15) . "px;' ";
            if ($va_hierarchy_item['level'] == 1) {
                $vn_top_level_collection_id = $va_hierarchy_item['id'];
                $vn_text_class = "";
            } else {
                $vn_text_class = "text" . $vn_top_level_collection_id;
            }
            print "<div class='collName {$vn_text_class}' {$va_indent} >";
            if ($va_hierarchy_item['level'] == 1) {
                print "<i class='fa fa-square-o finding-aid down{$vn_top_level_collection_id}'  ></i>";
                ?>
					<script>
						$(function() {
						  $('.down<?php 
                print $vn_top_level_collection_id;
Exemple #10
0
                print "<a href='#'><i class='fa fa-angle-double-down finding-aid down{$vn_top_level_collection_id}'></i></a>";
            } else {
                $va_opacity = "style='opacity: ." . (90 - $va_hierarchy_item['level'] * 20) . "' ";
                print "<i class='fa fa-angle-right finding-aid' {$va_opacity}></i>";
            }
            print "{$va_hierarchy_item['display']}\n";
            if ($va_hierarchy_item['level'] == 0) {
                print "<div class='collBlock" . $vn_top_level_collection_id . "'>";
            }
            //
            // Output objects
            //
            $t_this_level = new ca_collections($va_hierarchy_item['id']);
            if ($t_parent) {
                if ($t_this_level && $t_parent->get('ca_collections.type_id') != 104 && $t_parent->get('ca_collections.type_id') != 281) {
                    if (is_array($va_ids = $t_this_level->get('ca_objects.object_id', array('returnAsArray' => true, 'sort' => 'ca_objects.preferred_labels', 'checkAccess' => array(1, 2)))) && sizeof($va_ids)) {
                        $qr_objects = caMakeSearchResult('ca_objects', $va_ids);
                        print '<table class="table findingaid">
								<thead>
									<tr>
										<th>BOX/DRAWER</th>
										<th>FOLDER/ITEM</th>
										<th>TITLE</th>
										<th>DATE</th>
									</tr>
								</thead>
								<tbody>';
                        while ($qr_objects->nextHit()) {
                            print "<tr>";
                            print "<td>" . ($qr_objects->get('ca_objects.location.box') ? "B " . $qr_objects->get('ca_objects.location.box') : "") . ' ' . ($qr_objects->get('ca_objects.location.drawer') ? "D " . $qr_objects->get('ca_objects.location.drawer') : "") . "</td>";
                            print "<td>" . ($qr_objects->get('ca_objects.location.folder') ? "F " . $qr_objects->get('ca_objects.location.folder') : "") . ' ' . ($qr_objects->get('ca_objects.location.item_location') ? "I " . $qr_objects->get('ca_objects.location.item_location') : "") . "</td>";
Exemple #11
0
print $vs_page_title;
?>
</h1>
		<div class='findingIntro'><?php 
print $vs_intro_text;
?>
</div>
		<div id='findingAidCont'>
	<?php 
if ($qr_top_level_collections) {
    while ($qr_top_level_collections->nextHit()) {
        $vn_top_level_collection_id = $qr_top_level_collections->get('ca_collections.collection_id', array('checkAccess' => caGetUserAccessValues($this->request)));
        $va_hierarchy = $t_collection->hierarchyWithTemplate($ps_template, array('collection_id' => $vn_top_level_collection_id));
        foreach ($va_hierarchy as $vn_i => $va_hierarchy_item) {
            $t_collection_item = new ca_collections($va_hierarchy_item['id']);
            if ($t_collection_item->get('ca_collections.fa_access') != 261 && $va_hierarchy_item['level'] == 0) {
                print "<div class='collHeader' >";
                print "<i class='fa fa-square-o finding-aid' {$va_opacity}></i>";
                if ($t_collection_item->get('ca_collections.fa_access') == 262) {
                    print "<div class='text'>" . caNavLink($this->request, $t_collection_item->get('ca_collections.preferred_labels') . " (" . $t_collection_item->get('ca_collections.idno') . ")", '', '', 'Detail', 'collections/' . $va_hierarchy_item['id']) . "</div><br/>";
                } else {
                    print "<div class='text'>" . caNavLink($this->request, $t_collection_item->get('ca_collections.preferred_labels.name') . " (" . $t_collection_item->get('ca_collections.idno') . ")", '', '', 'Detail', 'collections/' . $va_hierarchy_item['id']) . " <br/><div style='font-weight:200; width: auto; margin-left: 30px;' class='trimText'>" . $t_collection_item->get('ca_collections.abstract') . "</div></div><br/>";
                }
                print "</div><!-- end collHeader-->";
            }
        }
    }
} else {
    print _t('No collections available');
}
?>