Skip to content

Commit

Permalink
stripping some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarin authored and aelkiss committed Jun 28, 2024
1 parent f1e80c0 commit e578611
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/ex_libris_holdings_xml_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ def leader

def oclc
if @marc_record["035"]
@oclc = @marc_record["035"]["a"]
@oclc = @marc_record["035"]["a"].strip
else
raise ArgumentError, "Missing oclc"
end
end

def local_id
@local_id ||= item_type == "ser" ? @marc_record["001"].value : itm("d")
@local_id ||= (item_type == "ser" ? @marc_record["001"].value : itm("d")).strip
end

def condition
Expand All @@ -99,7 +99,7 @@ def enum_chron
itm("b"), # issue
itm("i"), # year
itm("j") ## month
].reject{ |x| x.nil? || x.empty? }.join(",")
].reject{ |x| x.nil? || x.empty? }.map(&:strip).join(",")
end

def status
Expand Down

0 comments on commit e578611

Please sign in to comment.