projects
/
contrib
/
Conifer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c3971
)
Don't label the 956 platform, because we know not what it is
author
Dan Scott
<dscott@laurentian.ca>
Fri, 8 Sep 2017 17:50:09 +0000
(13:50 -0400)
committer
Dan Scott
<dscott@laurentian.ca>
Fri, 8 Sep 2017 17:50:09 +0000
(13:50 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py
patch
|
blob
|
history
diff --git
a/tools/ebooks/prep_ebook_records.py
b/tools/ebooks/prep_ebook_records.py
index
9a9dc5c
..
1bb80cb
100755
(executable)
--- a/
tools/ebooks/prep_ebook_records.py
+++ b/
tools/ebooks/prep_ebook_records.py
@@
-1123,8
+1123,11
@@
def get_subfields(field, data, platform):
subs.extend([field.subfields[0], field.subfields[1]])
link_text = data['link_text']
- if platform:
+ # We don't know what the 956 platform is
+ if platform and field.tag != '956':
link_text = "%s (%s)" % (data['link_text'], platform)
+ else:
+ link_text = "%s" % (data['link_text'])
subs.extend([
'y', link_text,
'9', data['code']