Method: HathiTrust#transform_view_data

Defined in:
app/service_adaptors/hathi_trust.rb

#transform_view_data(hash) ⇒ Object



258
259
260
261
262
263
264
265
266
# File 'app/service_adaptors/hathi_trust.rb', line 258

def transform_view_data(hash)
  if hash[:add_i18n_notes] == "single_volume"
    hash[:notes] = translate("note_for_single_vol", :source => (hash[:source_for_i18n] || ""))
  elsif hash[:add_i18n_notes] == "partial_volume"
    hash[:notes] = translate("note_for_multi_vol", :title => (hash[:title_for_i18n] || ""))
  end

  return hash
end