Skip to content

Commit

Permalink
Not only warn about too many keywords, but also use some of them
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jan 13, 2020
1 parent 4cf9b00 commit 9552d24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tei2imxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ def make_publication_cfg(info_dict, translation_file):
if len(info_dict['eoa_keywords']) > 8:
logging.warning("Too many keywords. Up to 8 are allowed. Using the first 8.")
else:
for keyword in info_dict['eoa_keywords'][:7]:
keyword_label = "Keyword" + str(info_dict['eoa_keywords'].index(keyword) + 1)
general_config[keyword_label] = keyword
pass
for keyword in info_dict['eoa_keywords'][:7]:
keyword_label = "Keyword" + str(info_dict['eoa_keywords'].index(keyword) + 1)
general_config[keyword_label] = keyword

general_config['DetailedDescription'] = info_dict['eoa_detail_desc'] #ok
general_config['AdditionalInformation'] = info_dict['eoa_additional_info'] #ok
Expand Down

0 comments on commit 9552d24

Please sign in to comment.