projects
/
syrup
/
masslnc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b1f8d
)
use empty field fix for picking records
author
Art Rhyno
<art632000@yahoo.ca>
Sat, 23 Jun 2012 11:38:59 +0000
(07:38 -0400)
committer
Art Rhyno
<art632000@yahoo.ca>
Sat, 23 Jun 2012 11:38:59 +0000
(07:38 -0400)
conifer/libsystems/marcxml.py
patch
|
blob
|
history
diff --git
a/conifer/libsystems/marcxml.py
b/conifer/libsystems/marcxml.py
index
9cfb4e4
..
ffa240a
100644
(file)
--- a/
conifer/libsystems/marcxml.py
+++ b/
conifer/libsystems/marcxml.py
@@
-56,7
+56,8
@@
def marcxml_to_dictionary(rec, multiples=False):
dct = {}
for cf in r.findall('{http://www.loc.gov/MARC21/slim}controlfield'):
t = cf.attrib['tag']
- dct.setdefault(t, []).append(cf.text)
+ if not cf.text is None:
+ dct.setdefault(t, []).append(cf.text)
for df in r.findall('{http://www.loc.gov/MARC21/slim}datafield'):
t = df.attrib['tag']
for sf in df.findall('{http://www.loc.gov/MARC21/slim}subfield'):