Printing a full image (Large Image Solution Pack version 1.2)

65 views
Skip to first unread message

Alex Kent

unread,
May 28, 2014, 11:12:33 AM5/28/14
to isla...@googlegroups.com
We were testing printing for the large image solution pack (version 1.2) and realized there doesn't seem to be a quick way to print a full image of a photograph.  It's possible to print a clipped image, but there doesn't seem to be a quick print option for printing a full photograph onto a single page. 

It is possible to get a printout of the full image on a single page by clicking "Clip Image", then "Download Image", and printing the image from there, but that's not really an ideal solution. 

Is there something I'm missing?  


Peter MacDonald

unread,
May 28, 2014, 12:25:01 PM5/28/14
to isla...@googlegroups.com
Alex:

If no immediate solution arises for this, it is certainly worth an enhancement request on "The Ideal Wall". We certainly have need for a "Print" button for images.

Make your suggestion here:

http://ideas.theideawall.com/islandora/Forum/Details/e7bcbd07-c5b2-450e-a7ec-e5f2e820f824

Peter


--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at http://groups.google.com/group/islandora.
For more options, visit https://groups.google.com/d/optout.



--
Peter MacDonald,
Library Information Systems Specialist
Hamilton College Library
Clinton, New York
315 859-4493
pmacdona-hamilton (Skype)

Brandon Weigel

unread,
Dec 16, 2016, 4:27:32 PM12/16/16
to islandora
Hi Alex et al,

This was an old topic, but as there were no complete solutions given in this thread or elsewhere, I thought this a good place to share.

We ran into the same problem of users not having access to a complete Large Image to print or download, so I wrote a little module for it:


This module checks whether the object you're viewing has the Large Image CModel, and if it does, displays a block linking to the image. There's an admin form where you can choose which datastream to make downloadable (so you can provide the original object, or a lower-res version), and the label you want to use for the download link.

Cheers,

Brandon Weigel

Giancarlo Birello

unread,
Dec 17, 2016, 7:37:19 AM12/17/16
to isla...@googlegroups.com

Hi Brandon et al,

interesting job, I achieved that using Views,

see this http://v2p2arch.to.cnr.it/islandora/object/v2p2image%3A125

I think is just another way, I prefer views because is more flexible.
In my case I have images with DC and images also with DWC so I defined a new Cmodel and assigned it to object with DWC then using filters in views I show blocks depending on object models.

cheers

Giancarlo

Here a couple of export of views:

==== Download tiff/jpg

$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>Downloading you accept our copyrights policies.';
/* 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://v2p2arch.to.cnr.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://v2p2arch.to.cnr.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');


=== Download DWC

$view = new view();
$view->name = 'download_dwc_image';
$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>Downloading you accept our copyrights policies.';
/* 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://v2p2arch.to.cnr.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';
/* 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_dwc_cmodel';

/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

Diego Pino

unread,
Dec 17, 2016, 11:47:42 AM12/17/16
to islandora
Giancarlo++, as always a wonderful work =)

Diego Pino
Metro.org

Phil Redmon

unread,
Dec 19, 2016, 5:43:11 PM12/19/16
to islandora
This can also be accomplished using theme overrides.

Reply all
Reply to author
Forward
0 new messages