Commit 56066c3b authored by Bruno Chareyre's avatar Bruno Chareyre
Browse files

fix number of items per file

parent 485d97d4
Pipeline #68769 passed with stages
in 10 minutes and 36 seconds
......@@ -182,7 +182,6 @@ def get_biblio_orcid(name='Chareyre',orcid='0000-0001-8505-8540',N=10,typesLists
publis_by_type[type].append(doc)
else:
publis_by_type[type] = [doc]
if i>=N: break
files = []
for listT in typesLists:
......@@ -207,10 +206,13 @@ def get_biblio_orcid(name='Chareyre',orcid='0000-0001-8505-8540',N=10,typesLists
publis = publis_by_type[type]
f.write('\t\t<h4>{}</h4>\n'.format(type))
f.write('\t\t<ul>\n')
count=0
for publi in publis:
htmlItem = html_publi_orcid(publi)
if not len(htmlItem): continue
f.write('\t\t\t<li>{}</li>\n'.format(htmlItem))
count+=1
if count>=N: break
f.write('\t\t</ul>\n')
f.write('\t</body>\n')
f.write('</html>')
......@@ -261,7 +263,7 @@ def get_biblio_group_orcid(groupName='geo',N=20,typesLists = [['journal-article'
else:
publis_by_type[type] = dict()
publis_by_type[type][key] = doc
if i>=8: break
if i>=10: break
files=[]
for listT in typesLists:
if listT[0]=='all':
......@@ -286,11 +288,14 @@ def get_biblio_group_orcid(groupName='geo',N=20,typesLists = [['journal-article'
f.write('\t\t<h4>{}</h4>\n'.format(type))
f.write('\t\t<ul>\n')
count = 0
for key, publi in publis.items():
htmlItem = html_publi_orcid(publi)
if not len(htmlItem): continue
#print(publi)
f.write('\t\t\t<li>{}</li>\n'.format(htmlItem))
count+=1
if count>=N: break
f.write('\t\t</ul>\n')
f.write('\t</body>\n')
f.write('</html>')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment