Skip to content

Commit

Permalink
Merge pull request #2226 from pulibrary/2224-remove-unused-methods
Browse files Browse the repository at this point in the history
Remove unused methods from PhysicalHoldingsMarkupBuilder
  • Loading branch information
christinach authored Sep 2, 2020
2 parents e401c9f + a5bc985 commit 30729eb
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions app/services/physical_holdings_markup_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,38 +319,6 @@ def self.request_tooltip(location_rules)
end
end

def self.scsb_supervised_request_link
link_to('Reading Room Request',
"/requests/#{doc_id}?source=pulsearch",
title: 'Request to view in Reading Room',
class: 'request btn btn-xs btn-primary',
data: { toggle: 'tooltip' })
end

def self.scsb_request_link
link_to(request_label(location_rules),
"/requests/#{doc_id}?source=pulsearch",
title: request_tooltip(location_rules),
class: 'request btn btn-xs btn-primary',
data: { toggle: 'tooltip' })
end

def self.ils_request_link
link_to(request_label(location_rules),
"/requests/#{doc_id}?mfhd=#{holding_id}&source=pulsearch",
title: request_tooltip(location_rules),
class: 'request btn btn-xs btn-primary',
data: { toggle: 'tooltip' })
end

def self.request_link
link_to('Reading Room Request',
"/requests/#{doc_id}?mfhd=#{holding_id}&source=pulsearch",
title: 'Request to view in Reading Room',
class: 'request btn btn-xs btn-primary',
data: { toggle: 'tooltip' })
end

def self.scsb_supervised_items?(holding)
if holding.key? 'items'
restricted_items = holding['items'].select do |item|
Expand Down

0 comments on commit 30729eb

Please sign in to comment.