diff --git a/eoapublications/management/commands/publicationimport.py b/eoapublications/management/commands/publicationimport.py index 91406cb..ac604d8 100644 --- a/eoapublications/management/commands/publicationimport.py +++ b/eoapublications/management/commands/publicationimport.py @@ -132,8 +132,7 @@ def process_index_entries(self, xmlIndex, xmlElement, xmlChapter, Newelement, Ne if xmlIndexLink.get("chapterorder") == current_chapter_order and xmlIndexLink.get('elementorder') == current_element_order: strHtml = strHtml + "" + str(intLinkNumber) + " " else: - strHtml = strHtml + "" strHtml = strHtml + str(intLinkNumber) strHtml = strHtml + " " @@ -213,9 +212,10 @@ def process_indexsection(self, xmlIndexsection, intObjectOrder, intIndexEntry, p # Process Links of the main entry intMainIndexLinkNumber = 1 for xmlIndexlink in xmlIndexEntry.findall("./EOAindexlink"): - strIndexLink = "" + # strIndexLink = "" + strIndexLink = "" strIndexLink = strIndexLink + str(intMainIndexLinkNumber) + " " if xmlIndexlink.get('bold') == "True": strIndexLink = "" + strIndexLink + "" @@ -229,9 +229,10 @@ def process_indexsection(self, xmlIndexsection, intObjectOrder, intIndexEntry, p strIndexHtml = strIndexHtml + "

" + xmlIndexSubEntry.get('secondary') + "
" intSubIndexLinkNumber = 1 for xmlIndexSublink in xmlIndexSubEntry.findall("EOAindexlink"): - strIndexSubLink = "" + # strIndexSubLink = "" + strIndexSubLink = "" strIndexSubLink = strIndexSubLink + str(intSubIndexLinkNumber) + " " if xmlIndexSublink.get("bold") == "True": strIndexSubLink = "" + strIndexSubLink + ""