Skip to content

Commit

Permalink
More authors (fixes #161), empty check added.
Browse files Browse the repository at this point in the history
  • Loading branch information
peskk3am committed Apr 1, 2014
1 parent b477b57 commit 5044dc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simplestore/lib/simplestore_marc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def add_basic_fields(rec, form, email):

if form['creator']:
for kw in form['creator'].split(';'):
record_add_field(rec, '100', subfields=[('a', remove_html_markup(kw.strip()))])
if kw and not kw.isspace():
record_add_field(rec, '100', subfields=[('a', remove_html_markup(kw.strip()))])

if form['domain']:
record_add_field(rec, '980', subfields=[('a', remove_html_markup(form['domain']))])
Expand All @@ -68,7 +69,8 @@ def add_basic_fields(rec, form, email):

if form['tags']:
for kw in form['tags'].split(','):
record_add_field(rec, '653',
if kw and not kw.isspace():
record_add_field(rec, '653',
ind1='1',
subfields=[('a', remove_html_markup(kw.strip()))])

Expand Down

0 comments on commit 5044dc3

Please sign in to comment.