Differences

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

Link to this comparison view

Both sides previous revision Previous revision
reloaded:book_all_accordionbydecadedesc_collectionlist [2017/12/15 14:26]
giancarlo
reloaded:book_all_accordionbydecadedesc_collectionlist [2017/12/15 14:27] (current)
giancarlo
Line 30: Line 30:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'book_all_accordionbydecadedesc_collectionlisttitle';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Book_All_AccordionbyDecadeDesc_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_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'] = '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: 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']['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'] = 'SplitPID';
 +$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->RELS_EXT_isMemberOfCollection_uri_s)) { 
 +  $SubPID = explode("/", $row->RELS_EXT_isMemberOfCollection_uri_s, 2);
 +  print $SubPID[1];
 +}
 +?>';
 +$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php']['php_click_sortable'] = '';
 +/* 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'] = 'Count';
 +$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
 +    $args = array("info:fedora/".$row->PID);
 +    $view = views_get_view(\'countobjects_child\');
 +    print $view->preview(\'default\', $args);
 +?>';
 +$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="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]">[dc.creator]</a></em></strong></h5><h5>[dc.description]</h5><h5 align="right">[php_1]</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 35: Line 149:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'book_all_accordionbydecadedesc_collectionlistpager';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Book_All_AccordionbyDecadeDesc_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'] = 'none';
 +$handler->display->display_options['pager']['options']['offset'] = '0';
 +$handler->display->display_options['style_plugin'] = 'views_accordion';
 +$handler->display->display_options['style_options']['grouping'] = array(
 +  0 => 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['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';
 +/* 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: 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'] = 'Decade';
 +$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\'})) {
 +$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_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="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><h5>[dc.date_dt]</h5></div>
 +</div>
 +</div>';
 +$handler->display->display_options['fields']['nothing']['element_type'] = 'h4';
 +$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
 +/* 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';
 +$handler->display->display_options['sorts']['dc.date_dt']['order'] = 'DESC';
 +/* 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';
 +/* 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/book_all_accordionbydecadedesc_collectionlist.txt ยท Last modified: 2017/12/15 14:27 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