Module: Blacklight::Allmaps::ApplicationHelper

Defined in:
app/helpers/blacklight/allmaps/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#georeferenceable?(document = @document) ⇒ Boolean

@TODO: Document how to customize this helper

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/blacklight/allmaps/application_helper.rb', line 5

def georeferenceable?(document = @document)
  # A IIIF Manifest is required for georeferencing
  # However, additional checks might be warranted

  # GeoBlacklight
  document.iiif_manifest_url ? true : false
rescue
  # Blacklight
  document[CatalogController.blacklight_config.default_iiif_manifest_field] ? true : false
end