Differences

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

Link to this comparison view

Both sides previous revision Previous revision
reloaded:collectionroot_titleasc_collectionlist [2017/12/14 19:35]
giancarlo
reloaded:collectionroot_titleasc_collectionlist [2017/12/15 10:23] (current)
giancarlo
Line 27: Line 27:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'collectionlisttitlebycollections';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'CollectionRoot_TitleAsc_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: 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) {  
 +//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: 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>[dc.creator]</em></strong></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;
 +/* 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 32: Line 129:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'collectionlistpagerbycollections';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'CollectionRoot_TitleAsc_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_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']['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) {  
 +print $descrizione."<BR>";
 +}
 +}
 +?>';
 +$handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
 +$handler->display->display_options['fields']['php']['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">
 +<a href="http://archive.digibess.eu/islandora/object/[PID]">
 +<div class="c1TableCellA"><img typeof="foaf:Image" src="http://archive.digibess.eu/islandora/object/[PID]/datastream/TN/view" alt=""></div>
 +<div class="c1TableCellB"><h4>[dc.title]</h4><h5>[php]</h5></div>
 +</a>
 +</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: 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:collectionCModel';
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +$handler->display->display_options['use_ajax_overlay'] = TRUE;
 </code></WRAP> </code></WRAP>
 
 
reloaded/collectionroot_titleasc_collectionlist.txt ยท Last modified: 2017/12/15 10:23 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