Differences

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

Link to this comparison view

Both sides previous revision Previous revision
reloaded:views_imagedwn1 [2017/06/20 15:08]
giancarlo
reloaded:views_imagedwn1 [2017/06/20 15:11] (current)
giancarlo
Line 14: Line 14:
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
 +$view = new view();
 +$view->name = 'download_tif_jpg_image';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Download TIF JPG image';
 +$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'] = 'Image Download';
 +$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';
 +/* Footer: Global: Unfiltered text */
 +$handler->display->display_options['footer']['area_text_custom']['id'] = 'area_text_custom';
 +$handler->display->display_options['footer']['area_text_custom']['table'] = 'views';
 +$handler->display->display_options['footer']['area_text_custom']['field'] = 'area_text_custom';
 +$handler->display->display_options['footer']['area_text_custom']['content'] = '<br>ISMAR-CNR Venezia CC BY';
 +/* 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: 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'] = 'High-resolution';
 +$handler->display->display_options['fields']['nothing']['alter']['text'] = '<strong>TIFF</strong>';
 +$handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
 +$handler->display->display_options['fields']['nothing']['alter']['path'] = 'http://asa.archiviostudiadriatici.it/islandora/object/[PID]/datastream/OBJ/[PID].tif';
 +$handler->display->display_options['fields']['nothing']['alter']['absolute'] = TRUE;
 +$handler->display->display_options['fields']['nothing']['alter']['alt'] = 'TIFF';
 +$handler->display->display_options['fields']['nothing']['alter']['target'] = '_blank';
 +/* Field: Global: Custom text */
 +$handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
 +$handler->display->display_options['fields']['nothing_1']['table'] = 'views';
 +$handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
 +$handler->display->display_options['fields']['nothing_1']['label'] = 'Low-resolution';
 +$handler->display->display_options['fields']['nothing_1']['alter']['text'] = '<strong>JPG</strong>';
 +$handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
 +$handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'http://asa.archiviostudiadriatici.it/islandora/object/[PID]/datastream/JPG/[PID].jpg';
 +$handler->display->display_options['fields']['nothing_1']['alter']['absolute'] = TRUE;
 +$handler->display->display_options['fields']['nothing_1']['alter']['alt'] = 'JPG';
 +$handler->display->display_options['fields']['nothing_1']['alter']['target'] = '_blank';
 +/* 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';
 +/* 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>
 </WRAP> </WRAP>
 +  * **Views Export**
 +<WRAP prewrap center>
 +<code>
 +$view = new view();
 +$view->name = 'Download_DWC';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Download DWC image';
 +$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'] = 'Metadata Download';
 +$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';
 +/* Footer: Global: Unfiltered text */
 +$handler->display->display_options['footer']['area_text_custom']['id'] = 'area_text_custom';
 +$handler->display->display_options['footer']['area_text_custom']['table'] = 'views';
 +$handler->display->display_options['footer']['area_text_custom']['field'] = 'area_text_custom';
 +$handler->display->display_options['footer']['area_text_custom']['content'] = '<br>ISMAR-CNR Venezia CC BY';
 +/* 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: 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'] = 'Darwin Core';
 +$handler->display->display_options['fields']['nothing']['alter']['text'] = '<strong>XML</strong>';
 +$handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
 +$handler->display->display_options['fields']['nothing']['alter']['path'] = 'http://asa.archiviostudiadriatici.it/islandora/object/[PID]/datastream/DWC/[PID].xml';
 +$handler->display->display_options['fields']['nothing']['alter']['absolute'] = TRUE;
 +$handler->display->display_options['fields']['nothing']['alter']['alt'] = 'DWC';
 +$handler->display->display_options['fields']['nothing']['alter']['target'] = '_blank';
 +/* 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';
 +$handler->display->display_options['filter_groups']['groups'] = array(
 +  1 => 'OR',
 +  2 => 'AND',
 +);
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID']['id'] = 'PID';
 +$handler->display->display_options['filters']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID']['value'] = 'chlorophyta:*';
 +$handler->display->display_options['filters']['PID']['group'] = 1;
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID_1']['id'] = 'PID_1';
 +$handler->display->display_options['filters']['PID_1']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID_1']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID_1']['value'] = 'hthuret:*';
 +$handler->display->display_options['filters']['PID_1']['group'] = 1;
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID_2']['id'] = 'PID_2';
 +$handler->display->display_options['filters']['PID_2']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID_2']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID_2']['value'] = 'minio:*';
 +$handler->display->display_options['filters']['PID_2']['group'] = 1;
 +/* 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';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['group'] = 2;
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 </code> </code>
 +</WRAP>
 +  * **Views Export**
 +<WRAP prewrap center>
 +<code>
 +$view = new view();
 +$view->name = 'link_to_algaebase_taxon';
 +$view->description = '';
 +$view->tag = 'default';
 +$view->base_table = 'islandora_solr';
 +$view->human_name = 'Link to Algaebase Taxon';
 +$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'] = 'Taxon details';
 +$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';
 +/* 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: dwc.taxonID */
 +$handler->display->display_options['fields']['dwc.taxonID']['id'] = 'dwc.taxonID';
 +$handler->display->display_options['fields']['dwc.taxonID']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dwc.taxonID']['field'] = 'dwc.taxonID';
 +$handler->display->display_options['fields']['dwc.taxonID']['label'] = 'Algaebase';
 +$handler->display->display_options['fields']['dwc.taxonID']['exclude'] = TRUE;
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['text'] = '<strong>Taxon</strong>';
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['path'] = '[dwc.taxonID] ';
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['absolute'] = TRUE;
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['external'] = TRUE;
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['alt'] = 'taxon';
 +$handler->display->display_options['fields']['dwc.taxonID']['alter']['target'] = '_blank';
 +$handler->display->display_options['fields']['dwc.taxonID']['link_to_object'] = 0;
 +/* Field: Islandora Solr: dcterms.taxonRemarks */
 +$handler->display->display_options['fields']['dcterms.taxonRemarks']['id'] = 'dcterms.taxonRemarks';
 +$handler->display->display_options['fields']['dcterms.taxonRemarks']['table'] = 'islandora_solr';
 +$handler->display->display_options['fields']['dcterms.taxonRemarks']['field'] = 'dcterms.taxonRemarks';
 +$handler->display->display_options['fields']['dcterms.taxonRemarks']['label'] = 'Note';
 +$handler->display->display_options['fields']['dcterms.taxonRemarks']['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']['alter']['path'] = '[dwc.taxonID]';
 +$handler->display->display_options['fields']['php']['alter']['absolute'] = TRUE;
 +$handler->display->display_options['fields']['php']['alter']['external'] = TRUE;
 +$handler->display->display_options['fields']['php']['alter']['target'] = '_blank';
 +$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'] = '<br><a href="
 +<?php
 +print $row->{\'dwc.taxonID\'}[0]
 +?>
 +" target="_blank">Browse <strong>Algaebase Taxon page</strong></a>';
 +$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';
 +$handler->display->display_options['filter_groups']['groups'] = array(
 +  1 => 'OR',
 +  2 => 'AND',
 +);
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID']['id'] = 'PID';
 +$handler->display->display_options['filters']['PID']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID']['value'] = 'chlorophyta:*';
 +$handler->display->display_options['filters']['PID']['group'] = 1;
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID_1']['id'] = 'PID_1';
 +$handler->display->display_options['filters']['PID_1']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID_1']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID_1']['value'] = 'hthuret:*';
 +$handler->display->display_options['filters']['PID_1']['group'] = 1;
 +/* Filter criterion: Islandora Solr: PID */
 +$handler->display->display_options['filters']['PID_2']['id'] = 'PID_2';
 +$handler->display->display_options['filters']['PID_2']['table'] = 'islandora_solr';
 +$handler->display->display_options['filters']['PID_2']['field'] = 'PID';
 +$handler->display->display_options['filters']['PID_2']['value'] = 'minio:*';
 +$handler->display->display_options['filters']['PID_2']['group'] = 1;
 +/* 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';
 +$handler->display->display_options['filters']['RELS_EXT_hasModel_uri_ms']['group'] = 2;
 +
 +/* Display: Block */
 +$handler = $view->new_display('block', 'Block', 'block');
 +
 +</code>
 +</WRAP>
 
 
reloaded/views_imagedwn1.txt ยท Last modified: 2017/06/20 15:11 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