Skip to content

Commit

Permalink
SymphonyReader: don't accept default leader from ruby_marc
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Aug 31, 2019
1 parent 64fbad2 commit 898c00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/symphony_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def initialize(catkey:)

def to_marc
record = MARC::Record.new

record.leader = leader if leader
# note that new record already has default leader, but we don't want it unless it's from Symphony
record.leader = leader ? record.leader : nil

fields.uniq.each do |field|
record << marc_field(field) unless %w[001 003].include? field['tag'] # explicitly remove all 001 and 003 fields from the record
Expand Down

0 comments on commit 898c00a

Please sign in to comment.