Differences

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

Link to this comparison view

reloaded:views_image2 [2017/06/20 13:40]
giancarlo created
reloaded:views_image2 [2017/06/20 13:41] (current)
giancarlo
Line 14: Line 14:
 <WRAP prewrap center> <WRAP prewrap center>
 <​code>​ <​code>​
 +$view = new view();
 +$view->​name = '​imagecollectionbyday';​
 +$view->​description = '';​
 +$view->​tag = '​default';​
 +$view->​base_table = '​islandora_solr';​
 +$view->​human_name = '​ImageCollectionBYday';​
 +$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'​] = '​Collezione per data';
 +$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'​] = '​0';​
 +$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'​ => '​dc.date_dt',​
 +    '​rendered'​ => 1,
 +    '​rendered_strip'​ => 0,
 +  ),
 +  1 => array(
 +    '​field'​ => '​dc.title',​
 +    '​rendered'​ => 1,
 +    '​rendered_strip'​ => 0,
 +  ),
 +);
 +$handler->​display->​display_options['​style_options'​]['​row_class_special'​] = FALSE;
 +$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'​] = '​none';​
 +$handler->​display->​display_options['​style_options'​]['​animated'​] = '​none';​
 +$handler->​display->​display_options['​style_options'​]['​nestedaccordion'​] = 1;
 +$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'​]['​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'​] = '​d-m-Y';​
 +/* 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'​] = '​p';​
 +$handler->​display->​display_options['​fields'​]['​dc.title'​]['​element_label_colon'​] = FALSE;
 +$handler->​display->​display_options['​fields'​]['​dc.title'​]['​link_to_object'​] = 1;
 +/* 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'​] = '​Visualizza la foto';
 +$handler->​display->​display_options['​fields'​]['​PID'​]['​element_type'​] = '​h5';​
 +$handler->​display->​display_options['​fields'​]['​PID'​]['​element_label_colon'​] = FALSE;
 +$handler->​display->​display_options['​fields'​]['​PID'​]['​hide_empty'​] = TRUE;
 +$handler->​display->​display_options['​fields'​]['​PID'​]['​link_to_object'​] = 1;
 +/* 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'​]['​label'​] = '​Description';​
 +$handler->​display->​display_options['​fields'​]['​dc.description'​]['​exclude'​] = TRUE;
 +$handler->​display->​display_options['​fields'​]['​dc.description'​]['​element_label_type'​] = '​h5';​
 +$handler->​display->​display_options['​fields'​]['​dc.description'​]['​element_label_colon'​] = FALSE;
 +$handler->​display->​display_options['​fields'​]['​dc.description'​]['​hide_empty'​] = 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'​]['​element_label_type'​] = '​h5';​
 +$handler->​display->​display_options['​fields'​]['​php'​]['​hide_empty'​] = 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.\'<​BR />​\';​
 +}
 +}
 +}
 +?>';​
 +$handler->​display->​display_options['​fields'​]['​php'​]['​use_php_click_sortable'​] = '​0';​
 +$handler->​display->​display_options['​fields'​]['​php'​]['​php_click_sortable'​] = '';​
 +/* 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: 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'​] = '​Sede';​
 +$handler->​display->​display_options['​fields'​]['​php_1'​]['​element_label_type'​] = '​h5';​
 +$handler->​display->​display_options['​fields'​]['​php_1'​]['​hide_empty'​] = 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.coverage\'​})) {
 +foreach ($row->​{\'​dc.coverage\'​} as $sede) {  ​
 +print $sede.\'<​BR />​\';​
 +}
 +}
 +?>';​
 +$handler->​display->​display_options['​fields'​]['​php_1'​]['​use_php_click_sortable'​] = '​0';​
 +$handler->​display->​display_options['​fields'​]['​php_1'​]['​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';​
 +$handler->​display->​display_options['​sorts'​]['​dc.date_dt'​]['​expose'​]['​label'​] = '​Year';​
 +/* 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]);​
 +$prova = "​info:​fedora/​fgramsci:​sisifo";​
 +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:​sp_large_image_cmodel';​
 +
 +/* Display: Block */
 +$handler = $view->​new_display('​block',​ '​Block',​ '​block'​);​
 </​code>​ </​code>​
 </​WRAP>​ </​WRAP>​
 
 
reloaded/views_image2.txt ยท Last modified: 2017/06/20 13:41 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