Sha256: 83db43bcefe0ed60e87a758f2035d0fc372ab0451e79f9b78f49914724f6e0de
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module WmsRewriteConcern extend Geoblacklight::SolrDocument def viewer_endpoint if local_restricted? # replace wms prefix with cas authed proxy super.gsub(Settings.INSTITUTION_GEOSERVER_URL, Settings.PROXY_GEOSERVER_URL) else super end end def local_restricted? local? && restricted? end def local? fetch(:dct_provenance_s, '').casecmp(Settings.INSTITUTION_LOCAL_NAME).zero? end end
Version data entries
2 entries across 2 versions & 1 rubygems