File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def geoblacklight_terms
3232 layer_slug_s : @metadata [ 'name' ] ,
3333 solr_geom : envelope ,
3434 dc_subject_sm : subjects ,
35- dct_references_s : external_references . to_json . to_s ,
35+ dct_references_s : external_references . to_json ,
3636 dc_format_s : downloadable? ? 'ZIP' : nil # TODO: we only allow direct ZIP file downloads
3737 } . compact
3838 end
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def references
123123 # Builds a Solr Envelope using CQL syntax
124124 # @return [String]
125125 def envelope
126- raise ArgumentError unless west >= -180 && west <= 180 &&
126+ raise ArgumentError unless west . between? ( -180 , 180 ) &&
127127 east >= -180 && east <= 180 &&
128128 north >= -90 && north <= 90 &&
129129 south >= -90 && south <= 90 &&
@@ -144,6 +144,15 @@ def fgdc
144144 GeoCombine ::Fgdc . new ( metadata [ 'FgdcText' ] ) if metadata [ 'FgdcText' ]
145145 end
146146
147+ SLUG_STRIP_VALUES = %w[
148+ SDE_DATA.
149+ SDE.
150+ SDE2.
151+ GISPORTAL.GISOWNER01.
152+ GISDATA.
153+ MORIS.
154+ ] . freeze
155+
147156 private
148157
149158 ##
@@ -207,15 +216,6 @@ def slug
207216 sluggify ( filter_name ( name ) )
208217 end
209218
210- SLUG_STRIP_VALUES = %w[
211- SDE_DATA.
212- SDE.
213- SDE2.
214- GISPORTAL.GISOWNER01.
215- GISDATA.
216- MORIS.
217- ] . freeze
218-
219219 def filter_name ( name )
220220 # strip out schema and usernames
221221 SLUG_STRIP_VALUES . each do |strip_val |
You can’t perform that action at this time.
0 commit comments