Skip to content

Commit

Permalink
move deprecated get to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Mar 24, 2015
1 parent 6dcf3ab commit 3a52968
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/geoblacklight/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def available?
end

def public?
get(:dc_rights_s).downcase == 'public'
fetch(:dc_rights_s).downcase == 'public'
end

def restricted?
get(:dc_rights_s).downcase == 'restricted'
fetch(:dc_rights_s).downcase == 'restricted'
end

def downloadable?
Expand All @@ -40,7 +40,7 @@ def hgl_download
end

def same_institution?
get(:dct_provenance_s).downcase == Settings.INSTITUTION.downcase
fetch(:dct_provenance_s).downcase == Settings.INSTITUTION.downcase
end

def item_viewer
Expand All @@ -52,7 +52,7 @@ def itemtype
end

def bounding_box_as_wsen
s = get(Settings.GEOMETRY_FIELD.to_sym)
s = fetch(Settings.GEOMETRY_FIELD.to_sym)
if s =~ /^\s*ENVELOPE\(\s*([-\.\d]+)\s*,\s*([-\.\d]+)\s*,\s*([-\.\d]+)\s*,\s*([-\.\d]+)\s*\)\s*$/
w, s, e, n = $1, $4, $2, $3
return "#{w} #{s} #{e} #{n}"
Expand Down

0 comments on commit 3a52968

Please sign in to comment.