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:
0556b78
)
Prep ebooks: we know if it's Springer
author
Dan Scott
<dscott@laurentian.ca>
Fri, 2 Mar 2018 22:48:02 +0000
(17:48 -0500)
committer
Dan Scott
<dscott@laurentian.ca>
Fri, 2 Mar 2018 22:48:02 +0000
(17:48 -0500)
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
d613ec7
..
d386d79
100755
(executable)
--- a/
tools/ebooks/prep_ebook_records.py
+++ b/
tools/ebooks/prep_ebook_records.py
@@
-1126,6
+1126,8
@@
def get_subfields(field, data, platform):
# We don't know what the 956 platform is
if platform and field.tag != '956':
link_text = "%s (%s)" % (data['link_text'], platform)
+ elif url.find('springer.com') > -1:
+ link_text = "%s (%s)" % (data['link_text'], 'Springer')
else:
link_text = "%s" % (data['link_text'])
subs.extend([