Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Using the Islandora Solr View Blocks

kim pham edited this page Feb 14, 2018 · 6 revisions

Islandora Solr Views can be used with the Islandora Web Annotations Module in order to display annotations in a table or list in a Drupal Block. Two Solr Views are installed by default, and are called "Islandora Web Annotation Block - Audio, Video" and "Islandora Web Annotation Block - Image, Page". Solr is currently the only option for listing annotations associated with Audio and Video content. If you use the block for Image and Page, you will want to turn off the default image annotation block in the administrative interface.

These blocks provide a default starting point, but can be modified and themed to suit your use case and installation. In order for these to work, you will need to have installed the Islandora Solr Views module

Content in Default Display for Islandora Web Annotation Block - Audio, Video

  • Start Time in seconds
  • End Time in seconds
  • Annotation body
  • Author of annotation (original creator)

Content in Default Display for Islandora Web Annotation Block - Image, Page

  • Annotation body
  • Author of annotation (original creator)

These views can be modified by going to /admin/structure/views.

Using Islandora Context, different views display based on what content model is being used. These contexts can be modified to suit your use case.

Note: Unlike the default annotation javascript display provided with the module for use with image annotations, when an annotation is added or updated, the page must be refreshed for the new annotation to appear in the Solr View Block.

Troubleshooting

  • If your views have broken/missing handler
    • Stop and start tomcat7 to restart Solr
    • Flush all caches
    • Create an annotation first to index the annotation_ fields