function caExportAddDownloadLink($po_request) { print "<script type='text/javascript'>"; print "jQuery('#exportDownloadLink').html(\"" . caNavLink($po_request, _t("Set up export download"), null, 'manage', 'MetadataExport', 'SetupBatchExport', null, array('style' => 'font-size: 14px;')) . "\");"; print "</script>"; caFlushOutput(); }
function caExportAddDownloadLink($po_request, $vs_filename) { print "<script type='text/javascript'>"; print "jQuery('#exportDownloadLink').html(\"" . caNavLink($po_request, _t("Download export"), null, 'manage', 'MetadataExport', 'DownloadExport', array('file' => $vs_filename), array('style' => 'font-size: 14px;')) . "\");"; print "</script>"; caFlushOutput(); }
?> </div> <?php } else { if (!is_array($va_facet_info['content']) || !sizeof($va_facet_info['content'])) { continue; } print "<H5>" . $va_facet_info['label_singular'] . "</H5>"; switch ($va_facet_info["group_mode"]) { case "alphabetical": case "list": default: $vn_facet_size = sizeof($va_facet_info['content']); $vn_c = 0; foreach ($va_facet_info['content'] as $va_item) { print "<div>" . caNavLink($this->request, $va_item['label'], '', '*', '*', '*', array('key' => $vs_key, 'facet' => $vs_facet_name, 'id' => $va_item['id'], 'view' => $vs_view)) . "</div>"; $vn_c++; if ($vn_c == $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size <= $vn_facet_display_length_maximum) { print "<div id='{$vs_facet_name}_more' style='display: none;'>"; } else { if ($vn_c == $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_maximum) { break; } } } if ($vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size <= $vn_facet_display_length_maximum) { print "</div>\n"; $vs_link_open_text = _t("and %1 more", $vn_facet_size - $vn_facet_display_length_initial); $vs_link_close_text = _t("close", $vn_facet_size - $vn_facet_display_length_initial); print "<div><a href='#' class='more' id='{$vs_facet_name}_more_link' onclick='jQuery(\"#{$vs_facet_name}_more\").slideToggle(250, function() { jQuery(this).is(\":visible\") ? jQuery(\"#{$vs_facet_name}_more_link\").text(\"" . addslashes($vs_link_close_text) . "\") : jQuery(\"#{$vs_facet_name}_more_link\").text(\"" . addslashes($vs_link_open_text) . "\")}); return false;'><em>{$vs_link_open_text}</em></a></div>"; } elseif ($vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_maximum) {
?> <div id="newsList" style="width:200px; margin-top:30px;"> <div class="item detail"> <?php # print $this->render('Splash/splash_intro_text_html.php'); ?> </div> <div class="item detail"><div class="description" style="margin-top:20px;"><?php print caNavLink($this->request, '<img src="' . $this->request->getThemeUrlPath(true) . '/graphics/feed.gif" border="0" title="' . _t('Get alerted to newly added items by RSS') . '" width="14" height="14"/> ' . _t('Get alerted to newly added items by RSS'), '', '', 'Feed', 'recentlyAdded'); ?> </div></div> </div> <?php TooltipManager::add('#splashRandomObject', $this->getVar("random_object_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('random_object_title') . "</div>"); TooltipManager::add('#splashRecentlyViewed', $this->getVar("recently_viewed_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('recently_viewed_title') . "</div>"); TooltipManager::add('#splashRecentlyAdded', $this->getVar("recently_added_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('recently_added_title') . "</div>"); ?> <!--<script type="text/javascript"> $(document).ready(function() { $('#hpFeatured').cycle({ fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... speed: 1000,
* * ---------------------------------------------------------------------- */ $vo_result = $this->getVar('result'); $vn_items_per_page = $this->getVar('current_items_per_page'); if ($vo_result) { print '<div id="placeResults">'; $vn_item_count = $vn_items_output = 0; $va_tooltips = array(); $t_list = new ca_lists(); while ($vn_items_output < $vn_items_per_page && $vo_result->nextHit()) { $vs_idno = $vo_result->get('ca_places.idno'); $vs_class = ""; $vn_item_count++; $vn_items_output++; if ($vn_item_count == 2) { $vs_class = "resultBg"; $vn_item_count = 0; } $vn_place_id = $vo_result->get('ca_places.place_id'); $va_labels = $vo_result->getDisplayLabels($this->request); print "<div" . ($vs_class ? " class='{$vs_class}'" : "") . ">"; print caNavLink($this->request, join($va_labels, "; "), '', 'Detail', 'Place', 'Show', array('place_id' => $vn_place_id)); if ($vs_idno) { print ", " . $vs_idno; } print "</div>\n"; $vn_item_count++; } print "</div>\n"; }
# --- make column on right with all sets if (sizeof($va_set_list) > 1) { ?> <div id="allSets"><H3><?php print _t("More Galleries"); ?> </H3> <?php foreach ($va_set_list as $vn_set_id => $va_set_info) { if ($vn_set_id == $t_set->get("set_id")) { continue; } print "<div class='setInfo'>"; $va_item = $va_first_items_from_sets[$vn_set_id][array_shift(array_keys($va_first_items_from_sets[$vn_set_id]))]; print "<div class='setImage'>" . caNavLink($this->request, $va_item["representation_tag"], '', 'simpleGallery', 'Show', 'displaySet', array('set_id' => $vn_set_id)) . "</div><!-- end setImage -->"; print "<div class='setTitle'>" . caNavLink($this->request, strlen($va_set_info["name"]) > 120 ? substr($va_set_info["name"], 0, 120) . "..." : $va_set_info["name"], '', 'simpleGallery', 'Show', 'displaySet', array('set_id' => $vn_set_id)) . "</div>"; print "<div style='clear:left; height:1px;'><!-- empty --></div><!-- end clear --></div><!-- end setInfo -->"; } ?> </div><!-- end allSets --> <?php } # --- selected set info - descriptiona dn grid of items with links to open panel with more info ?> <H1><?php print $this->getVar('set_title'); ?> </H1> <?php print "<div id='setItemsGrid'>"; if ($vs_set_description = $this->getVar('set_description')) {
{{{_fulltext%width=220px&height=100px}}} </div> <br style="clear: both;"/> <div style="float: right; margin-left: 20px;">{{{reset%label=Reset}}}</div> <div style="float: right;">{{{submit%label=Search}}}</div> {{{/form}}} <div class='clearfix'></div> </div> </div><!--end col-sm-8--> <div class="col-sm-6"> <div class="exhibitions"> <h1>Glenstone Exhibitions</h1> <?php $o_exhibition_search = new OccurrenceSearch(); $o_exhibition_search->setTypeRestrictions(array('exhibition')); $qr_exhibitions = $o_exhibition_search->search("*", array('checkAccess' => $va_access_values, 'sort' => 'ca_occurrences.exh_dates', 'sort_direction' => 'desc')); if ($qr_exhibitions->numHits()) { while ($qr_exhibitions->nextHit()) { print "<div class='exhibition'>" . caNavLink($this->request, $qr_exhibitions->get('ca_occurrences.preferred_labels'), '', '', 'Detail', 'occurrences/' . $qr_exhibitions->get('ca_occurrences.occurrence_id')) . "</div>"; } } ?> </div> </div> <!--end col-sm-4--> </div><!--end row--> </div> <!--end container-->
/** * Formats communication for display in messages list * * @param RequestHTTP $po_request * @param array $pa_data * @param array $pa_options * viewContentDivID = * additionalMessages = * isAdditionalMessage = * * @return string */ function caClientServicesFormatMessageSummary($po_request, $pa_data, $pa_options = null) { $vb_is_additional_message = (bool) (isset($pa_options['isAdditionalMessage']) && $pa_options['isAdditionalMessage']); $vb_is_unread = !(bool) $pa_data['read_on']; $vs_unread_class = $vb_is_unread ? "caClientCommunicationsMessageSummaryUnread" : ""; if ($pa_data['source'] == __CA_COMMERCE_COMMUNICATION_SOURCE_INSTITUTION__) { $vb_is_unread = false; $vs_unread_class = ''; } // institution-sent messages are never unread in Providence if ($vb_is_additional_message) { $vs_class = $vb_is_unread ? "caClientCommunicationsAdditionalMessageSummary caClientCommunicationsMessageSummaryUnread" : "caClientCommunicationsAdditionalMessageSummary"; $vs_buf = "<div class='{$vs_class}' id='caClientCommunicationsMessage_" . $pa_data['communication_id'] . "'>"; } else { $vs_class = $vb_is_unread ? "caClientCommunicationsMessageSummary caClientCommunicationsMessageSummaryUnread" : "caClientCommunicationsMessageSummary"; $vs_buf = "<div class='{$vs_class}'>"; } $vs_buf .= "<div class='caClientCommunicationsMessageSummaryContainer' id='caClientCommunicationsMessage_" . $pa_data['communication_id'] . "'>"; $vs_buf .= "<div class='caClientCommunicationsViewMessageIcon'>+</div>"; TooltipManager::add(".caClientCommunicationsViewMessageIcon", _t("View entire message and associated media")); $vs_buf .= "<div class='caClientCommunicationsMessageSummaryFrom {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("From") . ":</span> " . caClientServicesGetSenderName($pa_data); $vs_buf .= $vb_is_unread ? " <img src='" . $po_request->getThemeUrlPath() . "/graphics/icons/envelope.gif' border='0'>" : ""; $vs_buf .= "</div>"; $vs_buf .= "<div class='caClientCommunicationsMessageSummaryDate {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("Date") . ":</span> " . caGetLocalizedDate($pa_data['created_on'], array('dateFormat' => 'delimited')) . "</div>"; $vs_buf .= "<div class='caClientCommunicationsMessageSummarySubject {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("Subject") . ":</span> " . $pa_data['subject'] . "</div>"; $vs_buf .= "<div class='caClientCommunicationsMessageSummaryText'>" . (mb_strlen($pa_data['message']) > 100 ? mb_substr($pa_data['message'], 0, 100) . "..." : $pa_data['message']) . "</div>"; $vn_num_additional_messages = is_array($pa_options['additionalMessages']) ? sizeof($pa_options['additionalMessages']) : 0; // are there orders linked to this thread? if ($vn_num_orders = sizeof($va_order_ids = ca_commerce_orders::getOrderIDsForTransaction($pa_data['transaction_id']))) { $vs_buf .= "<div class='caClientCommunicationsMessageSummaryThreadButton'>" . caNavLink($po_request, ($vn_num_orders == 1 ? _t('%1 order', $vn_num_orders) : _t('%1 orders', $vn_num_orders)) . " ›", 'button', 'client', 'Orders', 'Index', array('transaction_id' => $pa_data['transaction_id'])) . "</div>\n"; } if ($vn_num_additional_messages) { $vs_buf .= "<div class='caClientCommunicationsMessageSummaryThreadButton' id='caClientCommunicationsMessageAdditionalCount" . $pa_data['communication_id'] . "'><a href='#' onclick='jQuery(\"#caClientCommunicationsMessageAdditional" . $pa_data['communication_id'] . "\").slideToggle(250, function(){ if(jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html() == \"" . _t("view thread") . " ›\") {jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html(\"" . _t("hide thread") . " ›\")}else{jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html(\"" . _t("view thread") . " ›\")}}); return false;' id='caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "' class='button'>" . _t("view thread") . " ›</a></div>\n"; } $vs_buf .= "</div>"; if ($vn_num_additional_messages) { $vs_buf .= "<div class='caClientCommunicationsMessageAdditional' id='caClientCommunicationsMessageAdditional" . $pa_data['communication_id'] . "'>"; $pa_additional_options = $pa_options; unset($pa_additional_options['additionalMessages']); $pa_additional_options['isAdditionalMessage'] = true; foreach ($pa_options['additionalMessages'] as $va_additional_message) { $vs_buf .= caClientServicesFormatMessageSummary($po_request, $va_additional_message, $pa_additional_options); } $vs_buf .= "</div>"; } $vs_buf .= "</div>\n"; return $vs_buf; }
</div><!-- end unit --> <?php TooltipManager::add("#subject", "<div class='infoTooltip'>Term(s) identifying what the work or collection is about.</div>"); } # --- places $va_geoferences = $t_occurrence->getAttributesByElement('georeference'); if (is_array($va_geoferences) && sizeof($va_geoferences) > 0) { print "\n<div class='unit'><div class='infoButton' id='place'><img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/b_info.gif' width='14' height='14' border='0' style='vertical-align:sub;'></div><div class='heading'>" . _t("Place(s)") . "</div>"; $o_map = new GeographicMap(390, 300, 'map'); $o_map->mapFrom($t_occurrence, 'georeference'); print "<div class='collectionMap'>" . $o_map->render('HTML') . "</div>"; print "<div class='collectionMapLabel'>"; foreach ($va_geoferences as $o_georeference) { foreach ($o_georeference->getValues() as $o_value) { $va_coord = $o_value->getDisplayValue(array('coordinates' => true)); print caNavLink($this->request, trim($va_coord['label']), '', '', 'Browse', 'clearAndAddCriteria', array('target' => 'ca_collections', 'facet' => 'geoloc_facet', 'id' => trim($va_coord['label']))); } print "<br/>"; } print "</div>"; print "</div><!-- end unit -->"; } # --- rights if ($vs_tmp = $t_occurrence->get("ca_occurrences.RightsSummaryNHF.NHFRightsSummaryPub", array('convertCodesToDisplayText' => true))) { print "\n<div class='unit'><div class='infoButton' id='rights'><img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/b_info.gif' width='14' height='14' border='0' style='vertical-align:sub;'></div><div class='heading'>" . _t("Rights") . "</div><div>{$vs_tmp}</div></div><!-- end unit -->"; TooltipManager::add("#rights", "<div class='infoTooltip'>Rights description.</div>"); } # --- dislay list of items associated to this occ - film ?> <div id="resultBox"> <?php
<div id="title"><?php print _t("Years"); ?> </div> <div class="browseSelectPanelContentArea"> <div class="browseSelectPanelList"> <table class='browseSelectPanelListTable'> <?php $i = 1; for ($vn_year = 1904; $vn_year <= 1988; $vn_year++) { if ($i == 1) { print "<tr>"; } print "<td>" . caNavLink($this->request, $vn_year, 'browseSelectPanelLink', 'Chronology', 'Detail', '', array('year' => $vn_year)) . "</td>"; if ($i == 5) { print "</tr>"; $i = 0; } $i++; } if ($i > 1) { while ($i <= 5) { print "<td>x</td>"; $i++; } print "</tr>"; } ?> </table></div><!-- end browseSelectPanelList -->
/** * Generates standard-format inspector panels for exporters * * @param View $po_view Inspector view object * * @return string HTML implementing the inspector */ function caBatchMetadataExportInspector($po_view) { $vs_color = "444444"; $vs_buf .= "<h3 class='nextPrevious'>" . caNavLink($po_view->request, _t('Back to list'), '', 'manage', 'MetadataExport', 'Index', $pa_other_params = null, $pa_attributes = null) . "</h3>"; $vs_buf .= "<h4><div id='caColorbox' style='border: 6px solid #{$vs_color}; padding-bottom:15px;'>\n"; $vs_buf .= "<strong>" . _t("Batch export metadata") . "</strong>\n"; $t_item = $po_view->getVar("t_item"); $vs_buf .= "<p>" . _t("Selected exporter") . ":<br />" . $t_item->getLabelForDisplay() . "</p>"; $vs_buf .= "</div></h4>\n"; return $vs_buf; }
<?php if (!$this->request->isAjax()) { ?> <div style="clear:both; height:1px;"><!-- empty --></div></div><!-- end pageArea --> <div id="footer"><div class="width"> <a href="http://www.hsp.org">© 2012 Historial Society of Pennsylvania</a>|<a href="http://www.hsp.org/default.aspx?id=135">Licensing Information</a>|<?php print caNavLink($this->request, _t("Contact Us"), "", "", "About", "contact"); if (!$this->request->config->get('dont_allow_registration_and_login')) { if ($this->request->isLoggedIn()) { print "|" . caNavLink($this->request, _t("Logout"), "", "", "LoginReg", "logout"); } } ?> </div><!-- width --></div><!-- end footer --> <?php } print TooltipManager::getLoadHTML(); ?> <div id="caMediaPanel"> <div id="close"><a href="#" onclick="caMediaPanel.hidePanel(); return false;"> </a></div> <div id="caMediaPanelContentArea"> </div> </div> <script type="text/javascript"> /* Set up the "caMediaPanel" panel that will be triggered by links in object detail Note that the actual <div>'s implementing the panel are located here in views/pageFormat/pageFooter.php */ var caMediaPanel;
foreach ($va_raw_date as $id => $raw_date) { $va_the_date = $raw_date['date']['start']; print caNavLink($this->request, caGetLocalizedHistoricDateRange($raw_date['date']['start'], $raw_date['date']['end']), '', '', 'Search', 'objects/search/ca_objects.date:' . substr($va_the_date, 0, 4)) . "<br/>"; } } ?> {{{<ifdef code="ca_objects.isbn"><H6>ISBN:</H6>^ca_objects.isbn<br/></ifdef>}}} {{{<ifdef code="ca_objects.copies"><H6>Copies:</H6>^ca_objects.copies<br/></ifdef>}}} {{{<ifdef code="ca_objects.printing"><H6>Printing:</H6>^ca_objects.printing<br/></ifdef>}}} {{{<ifdef code="ca_objects.length"><H6>Length:</H6>^ca_objects.length<br/></ifdef>}}} <?php if ($va_languages = $t_object->get('ca_objects.language', array('returnAsArray' => true, 'convertCodesToDisplayText' => true))) { print "<H6>Language:</H6>"; foreach ($va_languages as $va_id => $va_language) { print caNavLink($this->request, $va_language['language'], '', '', 'Search', 'objects/search/ca_objects.language:' . $va_language['language']) . "<br/>"; } } ?> {{{<ifcount min="1" code="ca_objects.website"><H6>Website:</H6><unit delimiter="<br/>"><a href='^ca_objects.website' target='_blank'>^ca_objects.website</a></unit></ifdef>}}} {{{<ifdef code="ca_objects.number_of_copies"><H6>Number of Copies:</H6>^ca_objects.number_of_copies<br/></ifdef>}}} {{{<ifdef code="ca_objects.description"> <span class="trimText">^ca_objects.description</span> </ifdef>}}} {{{<ifdef code="ca_objects.series"><H6>Series:</H6>^ca_objects.series<br/></ifdef>}}}
} ?> </div><!-- end refineBrowse --> <?php } $vn_x = 0; print "<div id='browseCriteria'><span class='criteriaHeading'>" . _t("You browsed for: ") . "</span>"; foreach ($va_criteria as $vs_facet_name => $va_row_ids) { $vn_x++; $vn_row_c = 0; foreach ($va_row_ids as $vn_row_id => $vs_label) { print "{$vs_label}" . caNavLink($this->request, 'x', 'close', $this->request->getModulePath(), $this->request->getController(), 'removeCriteria', array('facet' => $vs_facet_name, 'id' => urlencode($vn_row_id))) . "\n"; $vn_row_c++; } } print caNavLink($this->request, _t('start new search') . " ›", 'startOver', $this->request->getModulePath(), $this->request->getController(), 'clearCriteria', array()); print "</div><!-- end browseCriteria -->\n"; print "</div><!-- end browseControls -->"; } else { if (sizeof($va_facets)) { print "<div class='startBrowsingBy'>" . _t("Start browsing by:") . "</div>"; print "<div id='facetList'>"; $va_available_facets = $this->getVar('available_facets'); $i = 0; foreach ($va_available_facets as $vs_facet_code => $va_facet_info) { $i++; $vs_style = ""; if ($i == 4) { $vs_style = "style='clear:left;'"; $i = 1; }
<?php // get last search ('basic_search' is the find type used by the SearchController) $o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search'); $vs_search = $o_result_context->getSearchExpression(); ?> <?php print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_home.gif' border='0'>", "", "", "", "") . "<div class='navDivide'></div>"; print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_browse.gif' border='0'>", "", "", "Browse", "clearCriteria") . "<div class='navDivide'></div>"; print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_view.gif' border='0'>", "", "", "Sets", "index") . "<div class='navDivide'></div>"; if (!$this->request->config->get('dont_allow_registration_and_login')) { if ($this->request->isLoggedIn()) { print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_logout.gif' border='0'>", "", "", "LoginReg", "logout"); } else { print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_login.gif' border='0'>", "", "", "LoginReg", "form"); } } ?> <div id="search"><form name="header_search" action="<?php print caNavUrl($this->request, '', 'Search', 'Index'); ?> " method="get"> <a href="#" name="searchButtonSubmit" onclick="document.forms.header_search.submit(); return false;"> > </a> <input type="text" name="search" value="<?php print $vs_search ? $vs_search : ''; ?> " onclick='jQuery("#quickSearch").select();' id="quickSearch" autocomplete="off" size="100"/> </form>© The Noguchi Museum</div> </div><!-- end nav -->
if (sizeof($va_places) > 0) { print "<div class='unit'><h2>" . _t("Related Place") . (sizeof($va_places) > 1 ? "s" : "") . "</h2>"; foreach ($va_places as $va_place_info) { print "<div>" . ($this->request->config->get('allow_detail_for_ca_places') ? caNavLink($this->request, $va_place_info['label'], '', 'Detail', 'Place', 'Show', array('place_id' => $va_place_info['place_id'])) : $va_place_info['label']) . " (" . $va_place_info['relationship_typename'] . ")</div>"; } print "</div><!-- end unit -->"; } # --- collections $va_collections = $t_place->get("ca_collections", array("returnAsArray" => 1, 'checkAccess' => $va_access_values)); if (sizeof($va_collections) > 0) { print "<div class='unit'><h2>" . _t("Related Collection") . (sizeof($va_collections) > 1 ? "s" : "") . "</h2>"; foreach ($va_collections as $va_collection_info) { print "<div>" . ($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']) . " (" . $va_collection_info['relationship_typename'] . ")</div>"; } print "</div><!-- end unit -->"; } # --- vocabulary terms $va_terms = $t_place->get("ca_list_items", array("returnAsArray" => 1, 'checkAccess' => $va_access_values)); if (sizeof($va_terms) > 0) { print "<div class='unit'><h2>" . _t("Subject") . (sizeof($va_terms) > 1 ? "s" : "") . "</h2>"; foreach ($va_terms as $va_term_info) { print "<div>" . caNavLink($this->request, $va_term_info['label'], '', '', 'Search', 'Index', array('search' => $va_term_info['label'])) . "</div>"; } print "</div><!-- end unit -->"; } ?> </div><!-- end detailBody --> <?php }
<?php } print "</div><!-- end browseControls -->"; $vn_x = 0; print "<div class='blueDivide'></div>"; print "<div id='browseCriteria'><span class='criteriaHeading'>" . _t("You browsed for: ") . "</span>"; foreach ($va_criteria as $vs_facet_name => $va_row_ids) { $vs_facet_label = caGetOption('label_singular', $va_info_for_facets[$vs_facet_name], "???"); $vn_x++; $vn_row_c = 0; foreach ($va_row_ids as $vn_row_id => $vs_label) { print "<div class='criteriaLink'>{$vs_facet_label}: {$vs_label}" . caNavLink($this->request, 'x', 'close', $this->request->getModulePath(), $this->request->getController(), 'removeCriteria', array('facet' => $vs_facet_name, 'id' => urlencode($vn_row_id))) . "</div>\n"; $vn_row_c++; } } print caNavLink($this->request, _t('start over'), 'startOver', $this->request->getModulePath(), $this->request->getController(), 'clearCriteria', array()); print "</div><!-- end browseCriteria -->\n"; print "<div class='blueDivide'></div>"; } else { if (sizeof($va_facets)) { print "<div id='facetList'>"; print "<div class='startBrowsingBy'>" . _t("Browse by") . "</div>"; $va_available_facets = $this->getVar('available_facets'); $i = 0; foreach ($va_available_facets as $vs_facet_code => $va_facet_info) { $i++; $vs_style = ""; if ($i == 4) { $vs_style = "style='clear:left;'"; $i = 1; }
* * ---------------------------------------------------------------------- */ $vo_result = $this->getVar('result'); $vn_items_per_page = $this->getVar('current_items_per_page'); if ($vo_result) { print '<div id="entityResults">'; $vn_item_count = $vn_items_output = 0; $va_tooltips = array(); $t_list = new ca_lists(); while ($vn_items_output < $vn_items_per_page && $vo_result->nextHit()) { $vs_idno = $vo_result->get('ca_entities.idno'); $vs_class = ""; $vn_item_count++; $vn_items_output++; if ($vn_item_count == 2) { $vs_class = "resultBg"; $vn_item_count = 0; } $vn_entity_id = $vo_result->get('ca_entities.entity_id'); $va_labels = $vo_result->getDisplayLabels($this->request); print "<div" . ($vs_class ? " class='{$vs_class}'" : "") . ">"; print caNavLink($this->request, join($va_labels, "; "), '', 'Detail', 'Entity', 'Show', array('entity_id' => $vn_entity_id)); if ($vs_idno) { print ", " . $vs_idno; } print "</div>\n"; $vn_item_count++; } print "</div>\n"; }
$vs_typecode = ""; if ($vs_table == 'ca_objects') { if (!($vs_thumbnail = $qr_res->getMediaTag('ca_object_representations.media', 'medium', array("checkAccess" => $va_access_values)))) { $t_list_item->load($qr_res->get("type_id")); $vs_typecode = $t_list_item->get("idno"); if ($vs_type_placeholder = getPlaceholder($vs_typecode, "placeholder_media_icon")) { $vs_thumbnail = "<div class='bResultItemImgPlaceholder'>" . $vs_type_placeholder . "</div>"; } else { $vs_thumbnail = $vs_default_placeholder_tag; } } $vs_rep_detail_link = caDetailLink($this->request, $vs_thumbnail, '', $vs_table, $vn_id); } else { if ($va_images[$vn_id]) { $vs_thumbnail = $va_images[$vn_id]; } else { $vs_thumbnail = $vs_default_placeholder_tag; } $vs_rep_detail_link = caDetailLink($this->request, $vs_thumbnail, '', $vs_table, $vn_id); } $va_dates = $qr_res->getWithTemplate('<unit relativeTo="ca_objects_x_entities">^ca_objects_x_entities.date_out</unit>'); $va_date_in = $qr_res->getWithTemplate('<unit relativeTo="ca_objects_x_entities">^ca_objects_x_entities.date_in</unit>'); $va_fine = $qr_res->getWithTemplate('<unit relativeTo="ca_objects_x_entities">^ca_objects_x_entities.fine</unit>'); $va_ledger = $qr_res->getWithTemplate('<unit relativeTo="ca_objects_x_entities" >^ca_objects.preferred_labels</unit>', array('restrictToTypes' => array('ledger'))); $vs_add_to_set_url = caNavUrl($this->request, '', 'Sets', 'addItemForm', array($vs_pk => $vn_id)); $vs_expanded_info = $qr_res->getWithTemplate($vs_extended_info_template); print "\n\t<div class=' col-xs-12 col-sm-12 col-md-12'>\n\t\t<div class='row readerRow'>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t{$vs_label_detail_link}\n\t\t\t</div>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t{$va_dates}\n\t\t\t</div>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t{$va_date_in}\n\t\t\t</div>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t{$va_fine}\n\t\t\t</div>\n\t\t\t<div class='metaCell col-xs-2 col-sm-2 col-md-2'>\n\t\t\t\t{$va_ledger}\n\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t</div><!-- end bResultItem -->\n\t</div><!-- end col -->"; $vn_c++; } print caNavLink($this->request, _t('Next %1', $vn_hits_per_block), 'jscroll-next', '*', '*', '*', array('s' => $vn_start + $vn_hits_per_block, 'key' => $vs_browse_key, 'view' => $vs_current_view)); }
{{{<ifdef code="ca_objects.description"><h6>Description</h6>^ca_objects.description<br/></ifdef>}}} {{{<ifdef code="ca_objects.courtesy"><div class='unit'><h6>Courtesy<h6><span class='metaFloat'>^ca_objects.courtesy</span></div></ifdef>}}} {{{<ifdef code="ca_objects.rights.rightsText"><div class='unit'><h6>Rights</h6><span class='metaFloat'>^ca_objects.rights.rightsText</span></div></ifdef>}}} <?php if ($vs_entities = $t_object->get("ca_entities", array('delimiter' => '<br/>', 'template' => '^preferred_labels (^relationship_typename)', "returnAsLink" => true))) { print "<div class='unit'><H6>" . _t('Related Entities') . "</H6> <span class='metaData'>{$vs_entities}</span></div><!-- end unit -->"; } if ($t_object->get('type_id') == 21) { $va_children = $t_object->getHierarchyChildren(null, array('idsOnly' => true)); print "<div class='unit rings'><h6><b>" . _t("Rings") . "</b></h6>"; foreach ($va_children as $va_child_key => $va_child_id) { $t_ring = new ca_objects($va_child_id); print caNavLink($this->request, $t_ring->get("ca_objects.preferred_labels.name"), '', '', 'Detail', 'objects/' . $va_child_id) . "<br/>"; } print "</div>"; } ?> </div><!-- end col --> </div><!-- end row --></div><!-- end container --> </div><!-- end col --> <div class='navLeftRight col-xs-1 col-sm-1 col-md-1 col-lg-1'> <div class="detailNavBgRight"> {{{nextLink}}} </div><!-- end detailNavBgLeft --> </div><!-- end col --> </div><!-- end row -->
<div id="quickLinkItems"> <div class="quickLinkItem" > <div class="title"><?php print _t("Recently Added"); ?> </div> <?php print caNavLink($this->request, $recently_added_widepreview, '', 'Detail', 'Object', 'Show', array('object_id' => $recently_added_id)); ?> </div> <div class="quickLinkItem"> <div class="title"><?php print _t("Most Viewed"); ?> </div> <?php print caNavLink($this->request, $this->getVar("most_viewed_widepreview"), '', 'Detail', 'Object', 'Show', array('object_id' => $this->getVar("most_viewed_id"))); ?> </div> <div class="quickLinkItem" style="margin-right:0px;"> <div class="title"><?php print _t("Featured Object"); ?> </div> <?php print caNavLink($this->request, $feat_obj_content_widepreview, '', 'Detail', 'Object', 'Show', array('object_id' => $feat_obj_content_id)); ?> </div> </div><!-- end quickLinkItems -->
<tr <?php print $i == 1 ? "class='odd'" : ""; ?> > <td style="width:10px"> <?php if ($t_rel = $o_dm->getInstanceByTableNum($vo_result->get('table_num'), true)) { print ' (<i>' . $t_rel->getProperty('NAME_SINGULAR') . '</i>)'; } ?> </td> <?php foreach ($va_display_list as $vn_placement_id => $va_display_item) { print "<td>" . $t_display->getDisplayValue($vo_result, $vn_placement_id) . "</td>"; } print "<td style='width:5%;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__), '', 'administrate/setup/relationship_type_editor', 'RelationshipTypeEditor', 'Edit', array('type_id' => $vn_type_id)); print " <a href='#' onclick='caOpenBrowserWith(" . $vn_type_id . ");'>" . caNavIcon($this->request, __CA_NAV_BUTTON_GO__, null, array('title' => _t('View in hierarchy'))) . "</a>"; print "</td>"; ?> </tr> <?php $i++; $vn_item_count++; } ?> </tbody></table> </form><!--end caFindResultsForm --> </div><!--end scrollingResults --> <?php }
} else { $vs_action = "Summary"; } $i == 2 ? $i = 0 : ""; ?> <tr <?php print $i == 1 ? "class='odd'" : ""; ?> > <td style="width:10px"> <input type='checkbox' name='add_to_set_ids' value='<?php print (int) $vn_entity_id; ?> ' class="addItemToSetControl" /> </td> <?php print "<td style='width:5%;'>" . caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_EDIT__), '', 'editor/entities', 'EntityEditor', $vs_action, array('entity_id' => $vn_entity_id)) . "</td>"; foreach ($va_display_list as $vn_placement_id => $va_display_item) { print "<td>" . $t_display->getDisplayValue($vo_result, $vn_placement_id, array('request' => $this->request)) . "</td>"; } ?> </tr> <?php $i++; $vn_item_count++; } ?> </tbody></table> </form> </div><!--end scrollingResults -->
</li> <?php print $this->render("pageFormat/browseMenu.php"); ?> <li <?php print $this->request->getAction() == "Join" ? 'class="active"' : ''; ?> ><?php print caNavLink($this->request, _t("Join"), "", "", "About", "Join"); ?> </li> <li <?php print $this->request->getAction() == "Education" ? 'class="active"' : ''; ?> ><?php print caNavLink($this->request, _t("Education"), "", "", "About", "Education"); ?> </li> </ul> </div><!-- /.navbar-collapse --> </nav> </div><!-- end container --> <div class="container"> <div id="pageArea" <?php print caGetPageCSSClasses(); ?> >
/** * Generates standard-format inspector panels for editors * * @param View $po_view Inspector view object * @param array $pa_options Optional array of options. Supported options are: * backText = a string to use as the "back" button text; default is "Results" * * @return string HTML implementing the inspector */ function caBatchEditorInspector($po_view, $pa_options = null) { require_once __CA_MODELS_DIR__ . '/ca_sets.php'; $t_set = $po_view->getVar('t_set'); $t_item = $po_view->getVar('t_item'); $vs_table_name = $t_item->tableName(); if (($vs_priv_table_name = $vs_table_name) == 'ca_list_items') { $vs_priv_table_name = 'ca_lists'; } $o_result_context = $po_view->getVar('result_context'); $t_ui = $po_view->getVar('t_ui'); $o_dm = Datamodel::load(); // action extra to preserve currently open screen across next/previous links //$vs_screen_extra = ($po_view->getVar('screen')) ? '/'.$po_view->getVar('screen') : ''; $vs_buf = '<h3 class="nextPrevious">' . caNavLink($po_view->request, 'Back', '', 'manage', 'Set', 'ListSets') . "</h3>\n"; $vs_color = $vs_type_name = null; $t_type = method_exists($t_item, "getTypeInstance") ? $t_item->getTypeInstance() : null; if ($t_type) { $vs_color = trim($t_type->get('color')); $vs_type_name = $t_type->getTypeName(); } if (!$vs_color && $t_ui) { $vs_color = trim($t_ui->get('color')); } if (!$vs_color) { $vs_color = "444444"; } $vs_buf .= "<h4><div id='caColorbox' style='border: 6px solid #{$vs_color}; padding-bottom:15px;'>\n"; if ($po_view->request->user->canDoAction("can_edit_" . $vs_priv_table_name) && sizeof($t_item->getTypeList()) > 1) { if ($po_view->request->user->canDoAction("can_change_type_{$vs_table_name}")) { $vs_buf .= "<div id='inspectorChangeType'><div id='inspectorChangeTypeButton'><a href='#' onclick='caTypeChangePanel.showPanel(); return false;'>" . caNavIcon($po_view->request, __CA_NAV_BUTTON_CHANGE__, array('title' => _t('Change type'))) . "</a></div></div>\n"; TooltipManager::add("#inspectorChangeType", _t('Change Record Type')); $vo_change_type_view = new View($po_view->request, $po_view->request->getViewsDirectoryPath() . "/bundles/"); $vo_change_type_view->setVar('t_item', $t_item); $vo_change_type_view->setVar('t_set', $t_set); $vo_change_type_view->setVar('set_id', $t_set->getPrimaryKey()); FooterManager::add($vo_change_type_view->render("batch_change_type_html.php")); } $vs_buf .= "<strong>" . _t("Editing %1", $vs_type_name) . ": </strong>\n"; } else { $vs_buf .= "<strong>" . _t("Viewing %1", $vs_type_name) . ": </strong>\n"; } $vn_item_count = $t_set->getItemCount(array('user_id' => $po_view->request->getUserID())); $vs_item_name = $vn_item_count == 1 ? $t_item->getProperty("NAME_SINGULAR") : $t_item->getProperty("NAME_PLURAL"); $vs_buf .= "<strong>" . _t("Batch editing %1 %2 in set", $vn_item_count, $vs_item_name) . ": </strong>\n"; if (!($vs_label = $t_set->getLabelForDisplay())) { if (!($vs_label = $t_set->get('set_code'))) { $vs_label = '[' . _t('BLANK') . ']'; } } if ($t_set->haveAccessToSet($po_view->request->getUserID(), __CA_SET_EDIT_ACCESS__)) { $vs_label = caEditorLink($po_view->request, $vs_label, '', 'ca_sets', $t_set->getPrimaryKey()); } $vs_buf .= " {$vs_label}" . "<a title='{$vs_idno}'>" . ($vs_idno ? " ({$vs_idno})" : '') . "</a>\n"; // ------------------------------------------------------------------------------------- $vs_buf .= "<div>" . _t('Set contains <em>%1</em>', join(", ", $t_set->getTypesForItems())) . "</div>\n"; // ------------------------------------------------------------------------------------- // Nav link for batch delete // ------------------------------------------------------------------------------------- if ($vn_item_count > 0 && $po_view->request->user->canDoAction('can_batch_delete_' . $o_dm->getTableName($t_set->get('table_num')))) { $vs_buf .= "<div class='button' style='text-align:right;'><a href='#' id='inspectorMoreInfo'>" . _t("More options") . "</a> ›</div>\n\t\t\t\t<div id='inspectorInfo' style='background-color:#f9f9f9; border: 1px solid #eee;'>"; $vs_buf .= caNavLink($po_view->request, caNavIcon($po_view->request, __CA_NAV_BUTTON_DEL_BUNDLE__, array('style' => 'margin-top:7px; vertical-align: text-bottom;')) . " " . _t("Delete <strong><em>all</em></strong> records in set"), null, 'batch', 'Editor', 'Delete', array('set_id' => $t_set->getPrimaryKey())); $vs_buf .= "</div>\n"; $vs_buf .= "<script type='text/javascript'>\n\t\t\t\tjQuery('#inspectorMoreInfo').click(function() {\n\t\t\t\t\tjQuery('#inspectorInfo').slideToggle(350, function() { \n\t\t\t\t\t\tjQuery('#inspectorMoreInfo').html((this.style.display == 'block') ? '" . addslashes(_t('Close options')) . "' : '" . addslashes(_t('More options')) . "');\n\t\t\t\t\t}); \n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t</script>"; } // ------------------------------------------------------------------------------------- $vs_buf .= "</div></h4>\n"; return $vs_buf; }
?> <div id="searchRefineParameters"><span class="heading"><?php print _t("Filtering results by"); ?> :</span> <?php foreach ($va_criteria as $vs_facet_name => $va_row_ids) { foreach ($va_row_ids as $vn_row_id => $vs_label) { if ($vs_facet_name != '_search') { print $vs_label; print caNavLink($this->request, 'x', 'close', '', 'Search', 'removeCriteria', array('facet' => $vs_facet_name, 'id' => $vn_row_id)); } } } print caNavLink($this->request, _t('clear all filters'), 'button', '', 'Search', 'clearCriteria', array()); ?> </div><!-- end searchRefineParameters --> <?php } if (!$this->request->isAjax()) { ?> <script type="text/javascript"> var caUIBrowsePanel = caUI.initBrowsePanel({ facetUrl: '<?php print caNavUrl($this->request, '', 'Search', 'getFacet'); ?> '}); // // Handle browse header scrolling //
<div id="itemResults"> <?php $vn_item_num_label = $vn_start_result; while ($vn_itemc < $vn_items_per_page && $qr_hits->nextHit()) { $vs_idno = $qr_hits->get('ca_occurrences.idno'); $vn_occurrence_id = $qr_hits->get('ca_occurrences.occurrence_id'); $vs_description = $qr_hits->get('ca_occurrences.pbcoreDescription.description_text'); if (strlen($vs_description) > 185) { $vs_description = trim(unicode_substr($vs_description, 0, 185)) . "..."; } $va_labels = $qr_hits->getDisplayLabels($this->request); print "<div class='result'>" . $vn_item_num_label . ") "; print caNavLink($this->request, join($va_labels, ", "), '', 'Detail', 'Occurrence', 'Show', array('occurrence_id' => $vn_occurrence_id)); print "<div class='resultDescription'>" . $vs_description; print "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/cross.gif' width='8' height='8' border='0' style='margin: 0px 3px 0px 15px;'>"; print caNavLink($this->request, _t("more"), '', 'Detail', 'Occurrence', 'Show', array('occurrence_id' => $vn_occurrence_id)); print "</div><!-- end description -->"; print "</div>\n"; $vn_itemc++; $vn_item_num_label++; } if ($vn_total_pages > 1) { $va_other_paging_parameters = array('collection_id' => $vn_collection_id, 'show_type_id' => intval($this->getVar('current_type_id'))); ?> <div id='searchNavBg'><div class='searchNav'> <?php print "<div class='nav'>"; if ($this->getVar('page') > 1) { print "<a href='#' onclick='jQuery(\"#resultBox\").load(\"" . caNavUrl($this->request, $this->request->getModulePath(), $this->request->getController(), $this->request->getAction(), array_merge(array('page' => $this->getVar('page') - 1), $va_other_paging_parameters)) . "\"); return false;'>< " . _t("Previous") . "</a> <span class='turqPipe'>|</span> "; } else { print "<< " . _t("Previous") . " <span class='grayPipe'>|</span> ";
?> <div> New York World's Fair (1939-1940) and amateur filmmaking during that era described by Northeast Historic Film, the Queens Museum of Art, and the L. Jeffrey Selznick School of Film Preservation at George Eastman House International Museum of Photography and Film. </div> </div><!-- end featuredCollection --> <div class='featuredCollection'> <?php print "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/hidden_coll_boston.jpg' border='0'>"; ?> <a href="http://bostonlocaltv.org/">Boston Local TV News 1959-2000</a><br/> <div> WCVB-TV Boston, a collection at Northeast Historic Film, with archival TV collections at WGBH, the Boston Public Library, and Cambridge Community Television. A shared catalog of 40 years of local television reflecting broadcast practices and issues of the day. </div> </div><!-- end featuredCollection --> <div class='featuredCollection'> <?php print "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/hidden_coll_work_life.jpg' border='0'>"; print caNavLink($this->request, "Moving Images of Work Life, 1916-1960", "", "", "Browse", "HiddenCollectionsList") . "<br/>\n"; ?> <div> Records of work by men and women in northern New England agricultural environments, traditional and modernizing industries, and early twentieth century urban situations. </div> </div><!-- end featuredCollection --> </div><!-- end featuredCollections --> <div style="clear:both;"> </div> <div> <i>Thanks to the generous support of the Council on Library and Information Resources/Andrew W. Mellon Foundation <a href="http://www.clir.org/hiddencollections/index.html" target="_blank">Cataloging Hidden Special Collections and Archives grant program</a>.</i> </div> </div><!-- end introText --> <div style="clear:both; height:1px;"><!-- empty --></div></div><!-- end browseListBody -->
print " – "; } if ($vs_photographer) { print _t("Photograph") . ": " . $vs_photographer; } print " – © INFGM"; } ?> </div> <div class='overlayLightboxLink'> <?php if ($this->request->isLoggedIn()) { print caNavLink($this->request, _t("Add to Lightbox +"), '', '', 'Sets', 'addItem', array('object_id' => $pn_object_id)); } else { print caNavLink($this->request, _t("Add to Lightbox +"), '', '', 'LoginReg', 'form', array('site_last_page' => 'Sets', 'object_id' => $pn_object_id)); } ?> </div> <div class='repNav'> <?php if ($this->getVar('previous_representation_id')) { print "<a href='#' onClick='jQuery(\"#caMediaPanelContentArea\").load(\"" . caNavUrl($this->request, '', 'Chronology', 'GetChronologyMediaOverlay', array('representation_id' => (int) $this->getVar('previous_representation_id'), 'object_id' => (int) $this->getVar('previous_object_id'), 'year' => (int) $pn_year)) . "\");'>←</a>"; } if (sizeof($va_reps) > 1) { print ' ' . _t("%1 of %2", $this->getVar('representation_index'), sizeof($va_reps)) . ' '; } if ($this->getVar('next_representation_id')) { print "<a href='#' onClick='jQuery(\"#caMediaPanelContentArea\").load(\"" . caNavUrl($this->request, '', 'Chronology', 'GetChronologyMediaOverlay', array('representation_id' => (int) $this->getVar('next_representation_id'), 'object_id' => (int) $this->getVar('next_object_id'), 'year' => (int) $pn_year)) . "\");'>→</a>"; } ?>
$va_locale_options = array(); foreach ($va_ui_locales as $vs_locale) { $va_parts = explode('_', $vs_locale); $vs_lang_name = Zend_Locale::getTranslation(strtolower($va_parts[0]), 'language', strtolower($va_parts[0])); $va_locale_options[$vs_lang_name] = $vs_locale; } print caHTMLSelect('lang', $va_locale_options, array('id' => 'caLocaleSelectorSelect', 'onchange' => 'window.location = \'' . caNavUrl($this->request, $this->request->getModulePath(), $this->request->getController(), $this->request->getAction(), array('lang' => '')) . '\' + jQuery(\'#caLocaleSelectorSelect\').val();'), array('value' => $g_ui_locale, 'dontConvertAttributeQuotesToEntities' => true)); print "</form>\n"; } ?> </div><!-- end topbar --> <div id="pageArea"> <div id="header"> <?php print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/" . $this->request->config->get('header_img') . "' border='0'>", "", "", "", ""); ?> <?php // get last search ('basic_search' is the find type used by the SearchController) $o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search'); $vs_search = $o_result_context->getSearchExpression(); ?> <div id="nav"> <div id="MFinto"> <?php print $this->render('Splash/MF_text_html.php'); ?>