Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
reloaded:newspaper_bydecadeasc_accordionbyyearasc_collectionlist [2017/12/15 15:18]
giancarlo
reloaded:newspaper_bydecadeasc_accordionbyyearasc_collectionlist [2017/12/15 15:38] (current)
giancarlo
Line 33: Line 33:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'newspaper_bydecadeasc_accordionbyyearasc_collectionlisttitle';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Newspaper_byDecadeAsc_AccordionbyYearAsc_CollectionListTitle';
 +$view->core = 7;
 +$view->api_version = '3.0';
 +$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
 +
 +/* Display: Master */
 +$handler = $view->new_display('default', 'Master', 'default');
 +$handler->display->display_options['title'] = '<none>';
 +$handler->display->display_options['use_ajax'] = TRUE;
 +$handler->display->display_options['use_more_always'] = FALSE;
 +$handler->display->display_options['access']['type'] = 'none';
 +$handler->display->display_options['cache']['type'] = 'none';
 +$handler->display->display_options['query']['type'] = 'views_query';
 +$handler->display->display_options['exposed_form']['type'] = 'basic';
 +$handler->display->display_options['pager']['type'] = 'some';
 +$handler->display->display_options['pager']['options']['items_per_page'] = '1';
 +$handler->display->display_options['pager']['options']['offset'] = '0';
 +$handler->display->display_options['style_plugin'] = 'default';
 +$handler->display->display_options['row_plugin'] = 'fields';
 +$handler->display->display_options['row_options']['separator'] = ' ';
 +/* Field: Islandora Solr: PID */
 +$handler->display->display_options['fields']['PID']['id'] = 'PID';
 +$handler->display->display_options['fields']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['PID']['field'] = 'PID';
 +$handler->display->display_options['fields']['PID']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['PID']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dc.title */
 +$handler->display->display_options['fields']['dc.title']['id'] = 'dc.title';
 +$handler->display->display_options['fields']['dc.title']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.title']['field'] = 'dc.title';
 +$handler->display->display_options['fields']['dc.title']['label'] = '';
 +$handler->display->display_options['fields']['dc.title']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.title']['element_type'] = 'h4';
 +$handler->display->display_options['fields']['dc.title']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['dc.title']['hide_empty'] = TRUE;
 +$handler->display->display_options['fields']['dc.title']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dc.description */
 +$handler->display->display_options['fields']['dc.description']['id'] = 'dc.description';
 +$handler->display->display_options['fields']['dc.description']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.description']['field'] = 'dc.description';
 +$handler->display->display_options['fields']['dc.description']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.description']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['dc.description']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dc.creator */
 +$handler->display->display_options['fields']['dc.creator']['id'] = 'dc.creator';
 +$handler->display->display_options['fields']['dc.creator']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.creator']['field'] = 'dc.creator';
 +$handler->display->display_options['fields']['dc.creator']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.creator']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php']['id'] = 'php';
 +$handler->display->display_options['fields']['php']['table'] = 'views';
 +$handler->display->display_options['fields']['php']['field'] = 'php';
 +$handler->display->display_options['fields']['php']['label'] = 'MDescription';
 +$handler->display->display_options['fields']['php']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php']['php_output'] = '<?php
 +if (isset($row->{\'dc.description\'})) {
 +foreach ($row->{\'dc.description\'} as $descrizione) {  
 +print $descrizione."<BR>";
 +}
 +}
 +?>';
 +$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
 +/* Field: Islandora Solr: RELS_EXT_isMemberOfCollection_uri_s */
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['id'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['field'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
 +$handler->display->display_options['fields']['php_1']['table'] = 'views';
 +$handler->display->display_options['fields']['php_1']['field'] = 'php';
 +$handler->display->display_options['fields']['php_1']['label'] = 'SplitPID';
 +$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_1']['php_output'] = '<?php
 +if (isset($row->RELS_EXT_isMemberOfCollection_uri_s)) { 
 +  $SubPID = explode("/", $row->RELS_EXT_isMemberOfCollection_uri_s, 2);
 +  print $SubPID[1];
 +}
 +?>';
 +$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_2']['id'] = 'php_2';
 +$handler->display->display_options['fields']['php_2']['table'] = 'views';
 +$handler->display->display_options['fields']['php_2']['field'] = 'php';
 +$handler->display->display_options['fields']['php_2']['label'] = 'Count';
 +$handler->display->display_options['fields']['php_2']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_2']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_2']['php_output'] = '<?php
 +    $args = array("info:fedora/".$row->PID);
 +    $view = views_get_view(\'countobjects_child\');
 +    print $view->preview(\'default\', $args);
 +?>';
 +$handler->display->display_options['fields']['php_2']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_2']['php_click_sortable'] = '';
 +/* Field: Global: Custom text */
 +$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
 +$handler->display->display_options['fields']['nothing']['table'] = 'views';
 +$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
 +$handler->display->display_options['fields']['nothing']['label'] = '';
 +$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div class="t1Table">
 +<div class="t1TableRow">
 +<div class="t1TableCellA"><img typeof="foaf:Image" src="http://archive.digibess.eu/islandora/object/[PID]/datastream/TN/view" alt=""></div>
 +<div class="t1TableCellB"><h4>[dc.title]</h4><h5><strong><em><a href="http://archive.digibess.eu/islandora/object/[php_1]">[dc.creator]</a></em></strong></h5><h5>[php]</h5><h5 align="right">[php_2]</h5></div>
 +</div>
 +</div>
 +
 +';
 +$handler->display->display_options['fields']['nothing']['element_type'] = 'h4';
 +$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
 +/* Contextual filter: Islandora Solr: PID */
 +$handler->display->display_options['arguments']['PID']['id'] = 'PID';
 +$handler->display->display_options['arguments']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['PID']['field'] = 'PID';
 +$handler->display->display_options['arguments']['PID']['default_action'] = 'default';
 +$handler->display->display_options['arguments']['PID']['default_argument_type'] = 'raw';
 +$handler->display->display_options['arguments']['PID']['default_argument_options']['index'] = '2';
 +$handler->display->display_options['arguments']['PID']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['PID']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['PID']['summary_options']['items_per_page'] = '25';
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +$handler->display->display_options['use_ajax_overlay'] = TRUE;
 </code></WRAP> </code></WRAP>
 \\ \\
Line 38: Line 172:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'newspaper_bydecadeasc_accordionbyyearasc_collectionlistthumb';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Newspaper_byDecadeAsc_AccordionbyYearAsc_CollectionListThumb';
 +$view->core = 7;
 +$view->api_version = '3.0';
 +$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
 +
 +/* Display: Master */
 +$handler = $view->new_display('default', 'Master', 'default');
 +$handler->display->display_options['title'] = '<none>';
 +$handler->display->display_options['use_ajax'] = TRUE;
 +$handler->display->display_options['use_more_always'] = FALSE;
 +$handler->display->display_options['access']['type'] = 'none';
 +$handler->display->display_options['cache']['type'] = 'none';
 +$handler->display->display_options['query']['type'] = 'views_query';
 +$handler->display->display_options['exposed_form']['type'] = 'basic';
 +$handler->display->display_options['pager']['type'] = 'none';
 +$handler->display->display_options['pager']['options']['offset'] = '0';
 +$handler->display->display_options['style_plugin'] = 'slideshow';
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['general'] = array(
 +  'mode' => 'horizontal',
 +  'speed' => '500',
 +  'slideMargin' => '30',
 +  'startSlide' => '0',
 +  'randomStart' => 0,
 +  'infiniteLoop' => 0,
 +  'hideControlOnEnd' => 1,
 +  'captions' => 1,
 +  'ticker' => 0,
 +  'tickerHover' => 0,
 +  'adaptiveHeight' => 0,
 +  'adaptiveHeightSpeed' => '500',
 +  'video' => 0,
 +  'touchEnabled' => 1,
 +  'preloadImages' => 'all',
 +  'disable_standard_css' => 0,
 +  'useCSS' => 1,
 +  'align_image' => 'center',
 +  'align_caption' => 'center',
 +  'swipeThreshold' => '50',
 +  'oneToOneTouch' => 1,
 +  'preventDefaultSwipeX' => 1,
 +  'preventDefaultSwipeY' => 0,
 +  'color_caption' => '80, 80, 80, 0.75',
 +);
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['controlsfieldset'] = array(
 +  'controls' => 1,
 +  'nextText' => '',
 +  'prevText' => '',
 +  'startText' => '',
 +  'stopText' => '',
 +  'autoControls' => 0,
 +  'autoControlsCombine' => 0,
 +);
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['pagerfieldset'] = array(
 +  'pager' => 0,
 +  'pagerType' => 'full',
 +  'pagerShortSeparator' => ' / ',
 +  'pagerCustom' => '',
 +);
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['autofieldset'] = array(
 +  'pause' => '0',
 +  'autoStart' => 0,
 +  'auto' => 0,
 +  'autoHover' => '0',
 +  'autoDelay' => '0',
 +  'autoDirection' => 'next',
 +);
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['carousel'] = array(
 +  'minSlides' => '1',
 +  'maxSlides' => '10',
 +  'moveSlides' => '0',
 +  'slideWidth' => '100',
 +);
 +$handler->display->display_options['style_options']['bxslider_views_slideshow']['callback'] = array(
 +  'onSliderLoad' => '$("#bxslider_views_slideshow_main_newspaper_bydecadeasc_accordionbyyearasc_collectionlistthumb-block_1").css("visibility", "visible");',
 +  'onSlideBefore' => '',
 +  'onSlideAfter' => '',
 +  'onSlideNext' => '',
 +  'onSlidePrev' => '',
 +);
 +$handler->display->display_options['style_options']['slideshow_type'] = 'bxslider_views_slideshow';
 +$handler->display->display_options['style_options']['slideshow_skin'] = 'default';
 +$handler->display->display_options['style_options']['skin_info'] = array(
 +  'class' => 'default',
 +  'name' => 'Default',
 +  'module' => 'views_slideshow',
 +  'path' => '',
 +  'stylesheets' => array(),
 +);
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['type'] = 'views_slideshow_pager_fields';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_pager_fields_fields'] = array(
 +  'dc.coverage' => 0,
 +  'PID' => 0,
 +  'php' => 0,
 +);
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_jcarousel_pager_fields'] = array(
 +  'dc.coverage' => 0,
 +  'PID' => 0,
 +  'php' => 0,
 +);
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_jcarousel_pager_orientation'] = '0';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_jcarousel_pager_scroll'] = '3';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_jcarousel_pager_visible'] = '3';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_pager']['views_slideshow_jcarousel_pager_wrap'] = '';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_controls']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_controls']['type'] = 'views_slideshow_controls_text';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_slide_counter']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['top']['views_slideshow_slider']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['type'] = 'views_slideshow_pager_fields';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_pager_fields_fields'] = array(
 +  'dc.coverage' => 0,
 +  'PID' => 0,
 +  'php' => 0,
 +);
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_jcarousel_pager_fields'] = array(
 +  'dc.coverage' => 0,
 +  'PID' => 0,
 +  'php' => 0,
 +);
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_jcarousel_pager_orientation'] = '0';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_jcarousel_pager_scroll'] = '3';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_jcarousel_pager_visible'] = '3';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_pager']['views_slideshow_jcarousel_pager_wrap'] = '';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_controls']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_controls']['type'] = 'views_slideshow_controls_text';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_slide_counter']['weight'] = '1';
 +$handler->display->display_options['style_options']['widgets']['bottom']['views_slideshow_slider']['weight'] = '1';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['effect'] = 'none';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['timeout'] = '5000';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['speed'] = '700';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['delay'] = '0';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['pause'] = 0;
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['remember_slide_days'] = '1';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['items_per_slide'] = '1';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['wait_for_image_load_timeout'] = '3000';
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartype'] = 0;
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartypenobg'] = 0;
 +$handler->display->display_options['style_options']['views_slideshow_cycle']['advanced_options'] = '{"0":""}';
 +$handler->display->display_options['row_plugin'] = 'fields';
 +/* Field: Islandora Solr: dc.coverage */
 +$handler->display->display_options['fields']['dc.coverage']['id'] = 'dc.coverage';
 +$handler->display->display_options['fields']['dc.coverage']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.coverage']['field'] = 'dc.coverage';
 +$handler->display->display_options['fields']['dc.coverage']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.coverage']['link_to_object'] = 0;
 +/* Field: Islandora Solr: PID */
 +$handler->display->display_options['fields']['PID']['id'] = 'PID';
 +$handler->display->display_options['fields']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['PID']['field'] = 'PID';
 +$handler->display->display_options['fields']['PID']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['PID']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php']['id'] = 'php';
 +$handler->display->display_options['fields']['php']['table'] = 'views';
 +$handler->display->display_options['fields']['php']['field'] = 'php';
 +$handler->display->display_options['fields']['php']['label'] = '';
 +$handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php']['php_output'] = '<?php
 +if (isset($row->{\'dc.coverage\'})) {
 +  $range=explode("-", $row->{\'dc.coverage\'}[0], 2);
 +  for ($decade = substr($range[0],0,3); $decade <= substr($range[1],0,3); $decade++) {
 +    $args = array($decade."*", "info:fedora/".$row->PID);
 +    $view = views_get_view(\'newspaper_bydecadeasc_accordionbyyearasc_collectionlistthumb_child\');
 +    print $view->preview(\'default\', $args)."</li><li>";
 +  } 
 +}
 +?>';
 +$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
 +/* Contextual filter: Islandora Solr: PID */
 +$handler->display->display_options['arguments']['PID']['id'] = 'PID';
 +$handler->display->display_options['arguments']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['PID']['field'] = 'PID';
 +$handler->display->display_options['arguments']['PID']['default_action'] = 'default';
 +$handler->display->display_options['arguments']['PID']['default_argument_type'] = 'raw';
 +$handler->display->display_options['arguments']['PID']['default_argument_options']['index'] = '2';
 +$handler->display->display_options['arguments']['PID']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['PID']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['PID']['summary_options']['items_per_page'] = '25';
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +$handler->display->display_options['use_ajax_overlay'] = TRUE;
 </code></WRAP> </code></WRAP>
 \\ \\
Line 43: Line 367:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'newspaper_bydecadeasc_accordionbyyearasc_collectionlistpager';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Newspaper_byDecadeAsc_AccordionbyYearAsc_CollectionListPager';
 +$view->core = 7;
 +$view->api_version = '3.0';
 +$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
 +
 +/* Display: Master */
 +$handler = $view->new_display('default', 'Master', 'default');
 +$handler->display->display_options['title'] = '<none>';
 +$handler->display->display_options['use_ajax'] = TRUE;
 +$handler->display->display_options['use_more_always'] = FALSE;
 +$handler->display->display_options['access']['type'] = 'none';
 +$handler->display->display_options['cache']['type'] = 'none';
 +$handler->display->display_options['query']['type'] = 'views_query';
 +$handler->display->display_options['exposed_form']['type'] = 'basic';
 +$handler->display->display_options['pager']['type'] = 'some';
 +$handler->display->display_options['pager']['options']['items_per_page'] = '100';
 +$handler->display->display_options['pager']['options']['offset'] = '0';
 +$handler->display->display_options['style_plugin'] = 'views_nested_accordion';
 +$handler->display->display_options['style_options']['grouping'] = array(
 +  0 => array(
 +    'field' => 'php_4',
 +    'rendered' => 1,
 +    'rendered_strip' => 0,
 +  ),
 +  1 => array(
 +    'field' => 'php_2',
 +    'rendered' => 1,
 +    'rendered_strip' => 0,
 +  ),
 +);
 +$handler->display->display_options['style_options']['use-grouping-header'] = 1;
 +$handler->display->display_options['style_options']['collapsible'] = 1;
 +$handler->display->display_options['style_options']['row-start-open'] = '0';
 +$handler->display->display_options['style_options']['animated'] = 'none';
 +$handler->display->display_options['style_options']['autoheight'] = 0;
 +$handler->display->display_options['style_options']['clearstyle'] = 1;
 +$handler->display->display_options['style_options']['nestedaccordion'] = 1;
 +$handler->display->display_options['row_plugin'] = 'fields';
 +$handler->display->display_options['row_options']['separator'] = ' ';
 +/* Field: Islandora Solr: dc.date_dt */
 +$handler->display->display_options['fields']['dc.date_dt']['id'] = 'dc.date_dt';
 +$handler->display->display_options['fields']['dc.date_dt']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.date_dt']['field'] = 'dc.date_dt';
 +$handler->display->display_options['fields']['dc.date_dt']['label'] = '';
 +$handler->display->display_options['fields']['dc.date_dt']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.date_dt']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['dc.date_dt']['link_to_object'] = 0;
 +$handler->display->display_options['fields']['dc.date_dt']['date_format'] = 'custom';
 +$handler->display->display_options['fields']['dc.date_dt']['custom_date_format'] = 'Y-m';
 +/* Field: Islandora Solr: PID */
 +$handler->display->display_options['fields']['PID']['id'] = 'PID';
 +$handler->display->display_options['fields']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['PID']['field'] = 'PID';
 +$handler->display->display_options['fields']['PID']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['PID']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dc.title */
 +$handler->display->display_options['fields']['dc.title']['id'] = 'dc.title';
 +$handler->display->display_options['fields']['dc.title']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.title']['field'] = 'dc.title';
 +$handler->display->display_options['fields']['dc.title']['label'] = '';
 +$handler->display->display_options['fields']['dc.title']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.title']['element_type'] = 'h4';
 +$handler->display->display_options['fields']['dc.title']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['dc.title']['hide_empty'] = TRUE;
 +$handler->display->display_options['fields']['dc.title']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dc.description */
 +$handler->display->display_options['fields']['dc.description']['id'] = 'dc.description';
 +$handler->display->display_options['fields']['dc.description']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.description']['field'] = 'dc.description';
 +$handler->display->display_options['fields']['dc.description']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.description']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php']['id'] = 'php';
 +$handler->display->display_options['fields']['php']['table'] = 'views';
 +$handler->display->display_options['fields']['php']['field'] = 'php';
 +$handler->display->display_options['fields']['php']['label'] = 'Description';
 +$handler->display->display_options['fields']['php']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php']['php_output'] = '<?php
 +if (isset($row->{\'dc.description\'})) {
 +foreach ($row->{\'dc.description\'} as $descrizione) {  
 +if (!($descrizione[0] == "-")) {
 +print $descrizione;
 +}
 +}
 +}
 +?>';
 +$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
 +/* Field: Islandora Solr: dc.creator */
 +$handler->display->display_options['fields']['dc.creator']['id'] = 'dc.creator';
 +$handler->display->display_options['fields']['dc.creator']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.creator']['field'] = 'dc.creator';
 +$handler->display->display_options['fields']['dc.creator']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.creator']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
 +$handler->display->display_options['fields']['php_1']['table'] = 'views';
 +$handler->display->display_options['fields']['php_1']['field'] = 'php';
 +$handler->display->display_options['fields']['php_1']['label'] = 'Creator';
 +$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_1']['php_output'] = '<?php
 +$autori = array();
 +if (isset($row->{\'dc.creator\'})) {
 +foreach ($row->{\'dc.creator\'} as $autore) {  
 +$autori[] = \'<a href="/islandora/search?type=dismax&amp;f[0]=dc.creator%3A%22\'.$autore.\'%22"><strong>\'.$autore.\'</strong></a>\';
 +//print $autore;
 +}
 +print implode(\', \',$autori);
 +}
 +?>';
 +$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
 +/* Field: Global: Custom text */
 +$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
 +$handler->display->display_options['fields']['nothing']['table'] = 'views';
 +$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
 +$handler->display->display_options['fields']['nothing']['label'] = '';
 +$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div class="c1Table">
 +<div class="c1TableRow">
 +<div class="c1TableCellA"><a href="http://archive.digibess.eu/islandora/object/[PID]"><img typeof="foaf:Image" src="http://archive.digibess.eu/islandora/object/[PID]/datastream/TN/view" alt=""></a></div>
 +<div class="c1TableCellB"><h4>[dc.title]</h4><h5><em>[php_1]</em></h5><h5>[php]</h5></div>
 +</div>
 +</div>';
 +$handler->display->display_options['fields']['nothing']['element_type'] = 'h4';
 +$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_2']['id'] = 'php_2';
 +$handler->display->display_options['fields']['php_2']['table'] = 'views';
 +$handler->display->display_options['fields']['php_2']['field'] = 'php';
 +$handler->display->display_options['fields']['php_2']['label'] = 'Year';
 +$handler->display->display_options['fields']['php_2']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_2']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_2']['php_output'] = '<?php
 +if (isset($row->{\'dc.date_dt\'})) {
 +$anno = substr($row->{\'dc.date_dt\'},0,4);
 +print $anno;
 +}
 +?>';
 +$handler->display->display_options['fields']['php_2']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_2']['php_click_sortable'] = '';
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_4']['id'] = 'php_4';
 +$handler->display->display_options['fields']['php_4']['table'] = 'views';
 +$handler->display->display_options['fields']['php_4']['field'] = 'php';
 +$handler->display->display_options['fields']['php_4']['label'] = 'Decade';
 +$handler->display->display_options['fields']['php_4']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_4']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_4']['php_output'] = '<?php
 +if (isset($row->{\'dc.date_dt\'})) {
 +$decade = substr($row->{\'dc.date_dt\'},0,3)."0-".substr($row->{\'dc.date_dt\'},0,3)."9";
 +print $decade;
 +}
 +?>';
 +$handler->display->display_options['fields']['php_4']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_4']['php_click_sortable'] = '';
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_3']['id'] = 'php_3';
 +$handler->display->display_options['fields']['php_3']['table'] = 'views';
 +$handler->display->display_options['fields']['php_3']['field'] = 'php';
 +$handler->display->display_options['fields']['php_3']['label'] = '';
 +$handler->display->display_options['fields']['php_3']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_3']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['php_3']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_3']['php_output'] = '<?php 
 +$anno = substr($row->{\'dc.date_dt\'},0,4);
 +if ($anno != $static) {
 +$static = substr($row->{\'dc.date_dt\'},0,4);
 +
 +print $row->PID;
 +
 +} else {
 +
 +print $row->{\'dc.date_dt\'};
 +
 +}
 +
 +
 +?>';
 +$handler->display->display_options['fields']['php_3']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_3']['php_click_sortable'] = '';
 +/* Sort criterion: Islandora Solr: dc.date_dt */
 +$handler->display->display_options['sorts']['dc.date_dt']['id'] = 'dc.date_dt';
 +$handler->display->display_options['sorts']['dc.date_dt']['table'] = 'islandora_solr';
 +$handler->display->display_options['sorts']['dc.date_dt']['field'] = 'dc.date_dt';
 +/* Sort criterion: Islandora Solr: fgs_label_s */
 +$handler->display->display_options['sorts']['fgs_label_s']['id'] = 'fgs_label_s';
 +$handler->display->display_options['sorts']['fgs_label_s']['table'] = 'islandora_solr';
 +$handler->display->display_options['sorts']['fgs_label_s']['field'] = 'fgs_label_s';
 +/* Contextual filter: Islandora Solr: RELS_EXT_isMemberOfCollection_uri_s */
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['id'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['field'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['default_action'] = 'default';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['default_argument_type'] = 'php';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['default_argument_options']['code'] = '$current_url = check_plain(request_uri());
 +$sub=explode("/", $current_url, 4);
 +$subsub=explode("?", $sub[3], 2);
 +$fullPID="info:fedora/".urldecode($subsub[0]);
 +return $fullPID;';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary_options']['items_per_page'] = '25';
 +/* Contextual filter: Islandora Solr: dc.date */
 +$handler->display->display_options['arguments']['dc.date']['id'] = 'dc.date';
 +$handler->display->display_options['arguments']['dc.date']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['dc.date']['field'] = 'dc.date';
 +$handler->display->display_options['arguments']['dc.date']['default_action'] = 'default';
 +$handler->display->display_options['arguments']['dc.date']['default_argument_type'] = 'php';
 +$handler->display->display_options['arguments']['dc.date']['default_argument_options']['code'] = '$current_url = check_plain(request_uri());
 +$parts = parse_url($current_url);
 +if (isset($parts[\'query\'])){
 +  parse_str($parts[\'query\'], $query);
 +  if (isset($query[\'decade\'])) {
 +    $decade = $query[\'decade\'];
 +    return $decade."*";
 +  } else {
 +    return "0000";
 +  }
 +} else {
 +  return "0000";
 +}';
 +$handler->display->display_options['arguments']['dc.date']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['dc.date']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['dc.date']['summary_options']['items_per_page'] = '25';
 +/* Filter criterion: Islandora Solr: RELS_EXT_hasModel_uri_ms */
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['id'] = 'RELS_EXT_hasModel_uri_ms';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['field'] = 'RELS_EXT_hasModel_uri_ms';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['value'] = 'info:fedora/islandora:bookCModel';
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +$handler->display->display_options['use_ajax_overlay'] = TRUE;
 </code></WRAP> </code></WRAP>
 \\ \\
Line 48: Line 612:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'newspaper_bydecadeasc_accordionbyyearasc_collectionlistthumb_child';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Newspaper_byDecadeAsc_AccordionbyYearAsc_CollectionListThumb_Child';
 +$view->core = 7;
 +$view->api_version = '3.0';
 +$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
 +
 +/* Display: Master */
 +$handler = $view->new_display('default', 'Master', 'default');
 +$handler->display->display_options['title'] = 'Child title';
 +$handler->display->display_options['use_ajax'] = TRUE;
 +$handler->display->display_options['use_more_always'] = FALSE;
 +$handler->display->display_options['access']['type'] = 'none';
 +$handler->display->display_options['cache']['type'] = 'none';
 +$handler->display->display_options['query']['type'] = 'views_query';
 +$handler->display->display_options['exposed_form']['type'] = 'basic';
 +$handler->display->display_options['pager']['type'] = 'some';
 +$handler->display->display_options['pager']['options']['items_per_page'] = '1';
 +$handler->display->display_options['pager']['options']['offset'] = '0';
 +$handler->display->display_options['style_plugin'] = 'default';
 +$handler->display->display_options['row_plugin'] = 'fields';
 +/* Field: Islandora Solr: dc.date_dt */
 +$handler->display->display_options['fields']['dc.date_dt']['id'] = 'dc.date_dt';
 +$handler->display->display_options['fields']['dc.date_dt']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dc.date_dt']['field'] = 'dc.date_dt';
 +$handler->display->display_options['fields']['dc.date_dt']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dc.date_dt']['link_to_object'] = 0;
 +$handler->display->display_options['fields']['dc.date_dt']['date_format'] = 'custom';
 +$handler->display->display_options['fields']['dc.date_dt']['custom_date_format'] = 'Y';
 +/* Field: Islandora Solr: RELS_EXT_isMemberOfCollection_uri_s */
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['id'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['field'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['RELS_EXT_isMemberOfCollection_uri_s']['link_to_object'] = 0;
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
 +$handler->display->display_options['fields']['php_1']['table'] = 'views';
 +$handler->display->display_options['fields']['php_1']['field'] = 'php';
 +$handler->display->display_options['fields']['php_1']['label'] = 'Decade';
 +$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_1']['php_output'] = '<?php
 +if (isset($row->{\'dc.date_dt\'})) {
 +$decade = substr($row->{\'dc.date_dt\'},0,3);
 +print $decade;
 +}
 +?>';
 +$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
 +/* Field: Global: PHP */
 +$handler->display->display_options['fields']['php_2']['id'] = 'php_2';
 +$handler->display->display_options['fields']['php_2']['table'] = 'views';
 +$handler->display->display_options['fields']['php_2']['field'] = 'php';
 +$handler->display->display_options['fields']['php_2']['label'] = 'ParentPID';
 +$handler->display->display_options['fields']['php_2']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['php_2']['use_php_setup'] = 0;
 +$handler->display->display_options['fields']['php_2']['php_output'] = '<?php
 +$sub=explode("/", $row->RELS_EXT_isMemberOfCollection_uri_s, 2);
 +print $sub[1];
 +?>';
 +$handler->display->display_options['fields']['php_2']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php_2']['php_click_sortable'] = '';
 +/* Field: Islandora Solr: PID */
 +$handler->display->display_options['fields']['PID']['id'] = 'PID';
 +$handler->display->display_options['fields']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['PID']['field'] = 'PID';
 +$handler->display->display_options['fields']['PID']['label'] = '';
 +$handler->display->display_options['fields']['PID']['alter']['alter_text'] = TRUE;
 +$handler->display->display_options['fields']['PID']['alter']['text'] = '<a href="http://archive.digibess.eu/islandora/object/[php_2]?decade=[php_1]"><img src="http://archive.digibess.eu/islandora/object/[PID]/datastream/TN/view" title="[php_1]0-[php_1]9" alt="[php_1]0-[php_1]9"></a>';
 +$handler->display->display_options['fields']['PID']['element_label_colon'] = FALSE;
 +$handler->display->display_options['fields']['PID']['link_to_object'] = 0;
 +/* Sort criterion: Islandora Solr: dc.date_dt */
 +$handler->display->display_options['sorts']['dc.date_dt']['id'] = 'dc.date_dt';
 +$handler->display->display_options['sorts']['dc.date_dt']['table'] = 'islandora_solr';
 +$handler->display->display_options['sorts']['dc.date_dt']['field'] = 'dc.date_dt';
 +/* Contextual filter: Islandora Solr: dc.date */
 +$handler->display->display_options['arguments']['dc.date']['id'] = 'dc.date';
 +$handler->display->display_options['arguments']['dc.date']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['dc.date']['field'] = 'dc.date';
 +$handler->display->display_options['arguments']['dc.date']['default_argument_type'] = 'fixed';
 +$handler->display->display_options['arguments']['dc.date']['default_argument_options']['argument'] = '1882 OR 1883';
 +$handler->display->display_options['arguments']['dc.date']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['dc.date']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['dc.date']['summary_options']['items_per_page'] = '25';
 +/* Contextual filter: Islandora Solr: RELS_EXT_isMemberOfCollection_uri_s */
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['id'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['table'] = 'islandora_solr';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['field'] = 'RELS_EXT_isMemberOfCollection_uri_s';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['default_argument_type'] = 'fixed';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['default_argument_options']['argument'] = 'info:fedora/fleinaudi:studi';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary']['number_of_records'] = '0';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary']['format'] = 'default_summary';
 +$handler->display->display_options['arguments']['RELS_EXT_isMemberOfCollection_uri_s']['summary_options']['items_per_page'] = '25';
 +/* Filter criterion: Islandora Solr: RELS_EXT_hasModel_uri_ms */
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['id'] = 'RELS_EXT_hasModel_uri_ms';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['field'] = 'RELS_EXT_hasModel_uri_ms';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['value'] = 'info:fedora/islandora:bookCModel';
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +$handler->display->display_options['use_ajax_overlay'] = TRUE;
 </code></WRAP> </code></WRAP>
 
 
reloaded/newspaper_bydecadeasc_accordionbyyearasc_collectionlist.txt ยท Last modified: 2017/12/15 15:38 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki