Skip to content

Commit

Permalink
Merge pull request #3684 from sul-dlss/folio-codes
Browse files Browse the repository at this point in the history
Remove symphony location code mapping now that stackmaps supports our FOLIO codes
  • Loading branch information
jcoyne authored Nov 7, 2023
2 parents 80887e6 + 4f1cbf6 commit fa0b60f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
2 changes: 1 addition & 1 deletion app/helpers/catalog_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def current_view

def stackmap_link(document, location)
item = location.items.first
stackmap_path(title: (document['title_display'] || '').html_safe, id: document.id, callnumber: item.callnumber, library: item.symphony_library_code, location: item.symphony_location_code, api_url: location.stackmap_api_url)
stackmap_path(title: (document['title_display'] || '').html_safe, id: document.id, callnumber: item.callnumber, library: item.library, location: item.home_location, api_url: location.stackmap_api_url)
end

def new_documents_feed_path
Expand Down
37 changes: 0 additions & 37 deletions app/services/folio/locations_map.rb

This file was deleted.

12 changes: 0 additions & 12 deletions lib/holdings/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@ def library
end
end

def symphony_location
@symphony_location ||= Folio::LocationsMap.symphony_code_for(location_code: home_location) || []
end

def symphony_library_code
symphony_location.first || library
end

def symphony_location_code
symphony_location.last || home_location
end

# @return [String]
def home_location
if treat_current_location_as_home_location?
Expand Down
11 changes: 0 additions & 11 deletions spec/services/folio/locations_map_spec.rb

This file was deleted.

0 comments on commit fa0b60f

Please sign in to comment.