예제 #1
0
 public function __construct(&$po_request, &$po_response, $pa_view_paths = null)
 {
     parent::__construct($po_request, $po_response, $pa_view_paths);
     if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) {
         $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm"));
     }
     $this->opa_access_values = caGetUserAccessValues($this->request);
     $this->view->setVar("access_values", $this->opa_access_values);
     $t_user_groups = new ca_user_groups();
     $this->opa_user_groups = $t_user_groups->getGroupList("name", "desc", $this->request->getUserID());
     $this->view->setVar("user_groups", $this->opa_user_groups);
     $this->opo_config = caGetSetsConfig();
     caSetPageCSSClasses(array("sets"));
     $va_lightbox_display_name = caGetSetDisplayName($this->opo_config);
     $this->view->setVar('set_config', $this->opo_config);
     $this->ops_lightbox_display_name = $va_lightbox_display_name["singular"];
     $this->ops_lightbox_display_name_plural = $va_lightbox_display_name["plural"];
 }
$va_view_icons = $this->getVar('viewIcons');
$vs_current_sort = $this->getVar('sort');
$t_instance = $this->getVar('t_instance');
$vs_table = $this->getVar('table');
$vs_pk = $this->getVar('primaryKey');
$va_access_values = caGetUserAccessValues($this->request);
$o_config = $this->getVar("config");
$va_options = $this->getVar('options');
$vs_extended_info_template = caGetOption('extendedInformationTemplate', $va_options, null);
$vb_ajax = (bool) $this->request->isAjax();
$o_set_config = caGetSetsConfig();
$vs_lightbox_icon = $o_set_config->get("add_to_lightbox_icon");
if (!$vs_lightbox_icon) {
    $vs_lightbox_icon = "<i class='fa fa-suitcase'></i>";
}
$va_lightbox_display_name = caGetSetDisplayName($o_set_config);
$vs_lightbox_display_name = $va_lightbox_display_name["singular"];
$vs_lightbox_display_name_plural = $va_lightbox_display_name["plural"];
$o_icons_conf = caGetIconsConfig();
$va_object_type_specific_icons = $o_icons_conf->getAssoc("placeholders");
if (!($vs_default_placeholder = $o_icons_conf->get("placeholder_media_icon"))) {
    $vs_default_placeholder = "<i class='fa fa-picture-o fa-2x'></i>";
}
$vs_default_placeholder_tag = "<div class='bResultItemImgPlaceholder'>" . $vs_default_placeholder . "</div>";
$vn_col_span = 3;
$vn_col_span_sm = 4;
$vb_refine = false;
if (is_array($va_facets) && sizeof($va_facets)) {
    $vb_refine = true;
    $vn_col_span = 3;
    $vn_col_span_sm = 6;
예제 #3
0
$va_views = $this->getVar('views');
$vs_current_view = $this->getVar('view');
$va_view_icons = $this->getVar('viewIcons');
$va_browse_name = $this->getVar('name');
$vs_current_sort = $this->getVar('sort');
$vs_sort_dir = $this->getVar('sort_direction');
$vs_table = $this->getVar('table');
$t_instance = $this->getVar('t_instance');
$vb_is_search = $this->request->getController() == 'Search';
$va_options = $this->getVar('options');
$vs_extended_info_template = caGetOption('extendedInformationTemplate', $va_options, null);
$vb_ajax = (bool) $this->request->isAjax();
$va_browse_info = $this->getVar("browseInfo");
$va_export_formats = $this->getVar('export_formats');
$vs_export_format_select = $this->getVar('export_format_select');
$va_lightbox_display_name = caGetSetDisplayName();
$vs_lightbox_display_name = $va_lightbox_display_name["singular"];
$vs_lightbox_display_name_plural = $va_lightbox_display_name["plural"];
if (!$vb_ajax) {
    // !ajax
    ?>
<div id="bViewButtons">
<?php 
    foreach ($va_views as $vs_view => $va_view_info) {
        if ($vs_current_view === $vs_view) {
            print '<a href="#" class="active"><span class="glyphicon ' . $va_view_icons[$vs_view]['icon'] . '"></span></a> ';
        } else {
            print caNavLink($this->request, '<span class="glyphicon ' . $va_view_icons[$vs_view]['icon'] . '"></span>', 'disabled', '*', '*', '*', array('view' => $vs_view, 'key' => $vs_browse_key)) . ' ';
        }
    }
    if ($this->request->user->hasUserRole("founders_new") || $this->request->user->hasUserRole("admin") || $this->request->user->hasUserRole("curatorial_all_new") || $this->request->user->hasUserRole("curatorial_basic_new") || $this->request->user->hasUserRole("archives_new") || $this->request->user->hasUserRole("library_new")) {
예제 #4
0
function caLightboxSetListItemPlaceholder($po_request)
{
    $va_lightbox_display_name = caGetSetDisplayName();
    $vs_lightbox_display_name = $va_lightbox_display_name["singular"];
    $vs_lightbox_display_name_plural = $va_lightbox_display_name["plural"];
    $vs_set_display = "";
    $vs_set_display .= "<div class='lbSet'><div class='lbSetContent'>\n\n\t\t\t\t\t\t\t\t<H5>" . _t("Create your first %1", $vs_lightbox_display_name) . "</H5>\n\t\t\t\t\t\t\t\t<div class='row'><div class='col-sm-6'><div class='lbSetImgPlaceholder'><br/><br/></div><!-- end lbSetImgPlaceholder --></div><div class='col-sm-6'>\n\t\t\t\t\t\t\t\t\t<div class='row lbSetThumbRow'>\n\t\t\t\t\t\t\t\t\t\t<div class='col-xs-3 col-sm-6 lbSetThumbCols'><div class='lbSetThumbPlaceholder'>" . caGetThemeGraphic($po_request, 'spacer.png') . $vs_placeholder . "</div><!-- end lbSetThumbPlaceholder --></div>\n\t\t\t\t\t\t\t\t\t\t<div class='col-xs-3 col-sm-6 lbSetThumbCols'><div class='lbSetThumbPlaceholder'>" . caGetThemeGraphic($po_request, 'spacer.png') . $vs_placeholder . "</div><!-- end lbSetThumbPlaceholder --></div>\n\t\t\t\t\t\t\t\t\t\t<div class='col-xs-3 col-sm-6 lbSetThumbCols'><div class='lbSetThumbPlaceholder'>" . caGetThemeGraphic($po_request, 'spacer.png') . $vs_placeholder . "</div><!-- end lbSetThumbPlaceholder --></div>\n\t\t\t\t\t\t\t\t\t\t<div class='col-xs-3 col-sm-6 lbSetThumbCols'><div class='lbSetThumbPlaceholder'>" . caGetThemeGraphic($po_request, 'spacer.png') . $vs_placeholder . "</div><!-- end lbSetThumbPlaceholder --></div>\n\t\t\t\t\t\t\t\t\t</div><!-- end row --></div><!-- end col -->\n\t\t\t\t\t\t\t\t</div><!-- end row -->\n\t\t\t\t\t\t\t</div><!-- end lbSetContent -->\n</div><!-- end lbSet -->\n";
    return $vs_set_display;
}