Does anyone know how to get a bitstream thumbnail Url using solr query.
I am trying to make a Gallery using bit stream thumbnails in homepage of our dspace repository.
I am using this solr query get the items as follows.
<xsl:apply-templates select="document('http://localhost:8080/solr/search/select?q=search.resourcetype:2&sort=dc.date.accessioned_dt%20desc&rows=1&fl=dc.date.accessioned_dt&omitHeader=true'))"
mode="solr-response"/>
Which result in this xml file
</arr>
<arr name="dc.type.en_US">
<str>Book</str>
</arr>
<arr name="dc.identifier.uri">
<str>http://localhost:8080/xmlui/handle/123456789/118</str>
</arr>
<date name="dc.date.accessioned_dt">2017-06-13T03:40:50Z</date>
<arr name="dc.date.accessioned">
<str>2017-06-13T03:40:50Z</str>
</arr>
<arr name="dc.date.available">
<str>2017-06-13T03:40:50Z</str>
</arr>
With the above xml file, I can access the url of an item, but how to get the URL of the Thumbnail of these items.
The bitstream URL's are not available in the SOLR repository in the current versions of DSpace.
You could use the DSpace REST API to retrieve this information: https://wiki.duraspace.org/display/DSDOC6x/REST+API
If you run XMLUI, you can pull bitstream information as XML with the following URL pattern. Here is an example from the demo.dspace.org site. Note that no thumbnails are currently available on the demo site, but the following call would reveal them.