Skip to content

Commit

Permalink
removing manual transcript addition
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-raitz committed Oct 10, 2024
1 parent 1ede78a commit bdd8047
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/views/player/_record.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -85,31 +85,6 @@
</td>
</tr>
<% end %>
<% transcripts = [] %>
<% eight56_fields = record.metadata.marc_record.fields(['856']) %>
<% if eight56_fields.any? %>
<% #eight56_fields.each {|f| f.to_hash } %>
<% eight56_fields.each do |f| %>
<% if f.indicator1 == '4' && f.indicator2 == '2' %>
<% subfields = f.subfields.each_with_object({}) {|sf, hash| hash[sf.code] = sf.value } %>
<% if subfields['u'] && subfields['y'] && subfields['y'].downcase.include?('transcript') %>
<% transcripts << subfields %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if transcripts.any? %>
<tr>
<th><p>Transcripts</p></th>
<td>
<% transcripts.each do |transcript| %>
<%= link_to(transcript['y'], transcript['u']) %>
<% end %>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
Expand Down

0 comments on commit bdd8047

Please sign in to comment.