Spotlight: Help with multi image display

226 views
Skip to first unread message

Valdeva Crema

unread,
Sep 14, 2016, 9:55:24 AM9/14/16
to Blacklight Development
Hello.
I have some resources that contain multiple images.  I have managed to import these resources into my instance of spotlight but the display only shows one image.  It recognizes that there are 34 images and shows the pagination arrows but nothing happens when I click on the arrows.  I am supplying the to_solr method for the resource with arrays for full image, thumbnail, and content_metadata_image_iiif_info_ssm which produces this result.  I've attached an image to show what is appearing.   Thanks in advance for any tips.


Jessie E Keck

unread,
Sep 21, 2016, 6:48:33 PM9/21/16
to blacklight-...@googlegroups.com
Hi Valdeva, 
I believe that you’re doing everything correctly in this case.

What is happening (if my memory serves me correctly) is you’re running into a bug in the OpenSeadragon viewer that is implemented in Spotlight by default.  I’m not sure if they have addressed this in any subsequent versions, or have completely re-writtent the entire thing (I’m a bit behind on the progress of that project).

We haven’t run into this particular issue ourselves because items uploaded via the Spotlight UI does not have multi-image support yet, and the items that we index from our repository get our oEmbed viewer which means our users never see the base OpenSeadragon viewer for multi-image objects.

It may be worth following up in the OSD project to see if they’ve addressed this (and could possibly update).  I think initially we were looking into adding some javascript to help the viewer along when paginating through multi-image objects, but clearly nothing ever came to fruition on that one.

Ultimately, we don’t think people will be happy wit the default OSD viewer and will want to implement something like universal viewer or mirador.

Hope that helps!
- Jessie

--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Valdeva Crema

unread,
Sep 27, 2016, 1:29:29 PM9/27/16
to Blacklight Development
Thank you for your response.  That certainly helped clear this up.  One followup question: Is there documentation or are there any examples of how to integrate a different viewer into Spotlight?  
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.

Jessie E Keck

unread,
Sep 27, 2016, 2:23:17 PM9/27/16
to blacklight-...@googlegroups.com
Hmm, I’m not sure of any good documentation for this kind of customization (although I’ll have to keep that in mind the next time I’m updating customization tutorials).  If anybody else knows if/where this is documented, please chime in!

A simple way to do this is to inject a partial into the record view of an object via your blacklight_config (example: https://github.com/sul-dlss/exhibits/blob/27300a63ee15f99a4014ef052a0b280446c72b9c/app/controllers/catalog_controller.rb#L52 )

That view can then render the viewer of your choice as long as you can instantiate a viewer based on fields from your document (as you have access to the solr document object in the view).

Hope that helps,
Please let us know if you have any questions.
- Jessie Keck


To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.

Ming Zhaoyan

unread,
Sep 27, 2016, 11:47:17 PM9/27/16
to Unname
unsubscribe

On 28 September 2016 at 02:23, Jessie E Keck <jk...@stanford.edu> wrote:
Hmm, I’m not sure of any good documentation for this kind of customization (although I’ll have to keep that in mind the next time I’m updating customization tutorials).  If anybody else knows if/where this is documented, please chime in!

A simple way to do this is to inject a partial into the record view of an object via your blacklight_config (example: https://github.com/sul-dlss/exhibits/blob/27300a63ee15f99a4014ef052a0b280446c72b9c/app/controllers/catalog_controller.rb#L52 )

That view can then render the viewer of your choice as long as you can instantiate a viewer based on fields from your document (as you have access to the solr document object in the view).

Hope that helps,
Please let us know if you have any questions.
- Jessie Keck
On Sep 27, 2016, at 10:29 AM, Valdeva Crema <valdev...@gmail.com> wrote:

Thank you for your response.  That certainly helped clear this up.  One followup question: Is there documentation or are there any examples of how to integrate a different viewer into Spotlight?  

On Wednesday, September 21, 2016 at 6:48:33 PM UTC-4, jkeck wrote:
Hi Valdeva, 
I believe that you’re doing everything correctly in this case.

What is happening (if my memory serves me correctly) is you’re running into a bug in the OpenSeadragon viewer that is implemented in Spotlight by default.  I’m not sure if they have addressed this in any subsequent versions, or have completely re-writtent the entire thing (I’m a bit behind on the progress of that project).

We haven’t run into this particular issue ourselves because items uploaded via the Spotlight UI does not have multi-image support yet, and the items that we index from our repository get our oEmbed viewer which means our users never see the base OpenSeadragon viewer for multi-image objects.

It may be worth following up in the OSD project to see if they’ve addressed this (and could possibly update).  I think initially we were looking into adding some javascript to help the viewer along when paginating through multi-image objects, but clearly nothing ever came to fruition on that one.

Ultimately, we don’t think people will be happy wit the default OSD viewer and will want to implement something like universal viewer or mirador.

Hope that helps!
- Jessie
On Sep 14, 2016, at 6:55 AM, Valdeva Crema <valdev...@gmail.com> wrote:

Hello.
I have some resources that contain multiple images.  I have managed to import these resources into my instance of spotlight but the display only shows one image.  It recognizes that there are 34 images and shows the pagination arrows but nothing happens when I click on the arrows.  I am supplying the to_solr method for the resource with arrays for full image, thumbnail, and content_metadata_image_iiif_info_ssm which produces this result.  I've attached an image to show what is appearing.   Thanks in advance for any tips.



--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Cramer

unread,
Sep 28, 2016, 11:54:46 AM9/28/16
to blacklight-...@googlegroups.com, Tom Cramer
All, 

Blacklight-development is a Google Group. One’s settings can be modified by logging in here: 

Ming: I will remove you.

- Tom

PS. the list now has 522 members. 




To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.

Braydon Justice

unread,
Oct 28, 2016, 1:35:52 PM10/28/16
to Blacklight Development
Hi Valdeva,

Sorry for the late reply, but I just joined the group. I also ran in to this issue and found that sequence mode was missing from the openseadragon settings. Copy the _openseadragon_default.html.erb partial from the blacklight-gallery gem and change this:



  osd_config_referencestrip
= {
    showReferenceStrip
:             true,
    referenceStripPosition
:         'OUTSIDE',
    referenceStripScroll
:           'vertical',
    referenceStripWidth
:            100,
    referenceStripBackgroundColor
:  'transparent'
 
}




to this:

  osd_config_referencestrip = {
    sequenceMode:                    true,
    showReferenceStrip
:              true,
    referenceStripPosition
:          'OUTSIDE',
    referenceStripScroll
:            'vertical',
    referenceStripWidth
:             100,
    referenceStripBackgroundColor
:   'transparent'
 
}


setting the sequenceMode to true should tell openseadragon that there is more than one image and fix the issue.

Cheers,
Braydon

Valdeva Crema

unread,
Oct 31, 2016, 12:49:15 PM10/31/16
to Blacklight Development
This put me on the right track.  Some things are still a bit off but it is now paginating so that is a great start.  Many thanks!
Reply all
Reply to author
Forward
0 new messages