@@ -89,7 +89,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=
89
89
tags = '\n ' .join (tags )
90
90
91
91
author_strs = set ()
92
- affiliation_strs = set ()
92
+ institution_strs = set ()
93
93
for a in item ['authors' ]:
94
94
author_name = a .get ('name' , 'Anonymous' )
95
95
author_email = a .get ('email' , None )
@@ -99,20 +99,20 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=
99
99
_str = author_name
100
100
author_strs .add (_str )
101
101
102
- affiliation_name = a .get ('affiliation ' , None )
103
- if affiliation_name :
104
- affiliation_url = a .get ('affiliation_url ' , None )
105
- if affiliation_url :
106
- _str = f'<a href="{ affiliation_url } ">{ affiliation_name } </a>'
102
+ institution_name = a .get ('institution ' , None )
103
+ if institution_name :
104
+ institution_url = a .get ('institution_url ' , None )
105
+ if institution_url :
106
+ _str = f'<a href="{ institution_url } ">{ institution_name } </a>'
107
107
else :
108
- _str = affiliation_name
109
- affiliation_strs .add (_str )
108
+ _str = institution_name
109
+ institution_strs .add (_str )
110
110
111
111
authors_str = f"<strong>Author:</strong> { ', ' .join (author_strs )} "
112
- if affiliation_strs :
113
- affiliations_str = f"<strong>Affiliation :</strong> { ' ' .join (affiliation_strs )} "
112
+ if institution_strs :
113
+ institutions_str = f"<strong>Institution :</strong> { ' ' .join (institution_strs )} "
114
114
else :
115
- affiliations_str = ''
115
+ institutions_str = ''
116
116
117
117
if len (item ['description' ]) < max_descr_len :
118
118
short_description = item ['description' ]
@@ -128,7 +128,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=
128
128
<h3 class="display-3">{ item ["title" ]} </h3>
129
129
{ authors_str }
130
130
<br/>
131
- { affiliations_str }
131
+ { institutions_str }
132
132
<p class="my-2">{ item ['description' ]} </p>
133
133
<p class="my-2">{ tags } </p>
134
134
<p class="mt-3 mb-0"><a href="{ item ["url" ]} " class="btn btn-outline-primary btn-block">Visit Website</a></p>
@@ -144,7 +144,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=
144
144
<img src="{ thumbnail } " class="gallery-thumbnail" />
145
145
<div class="container">
146
146
<a href="{ item ["url" ]} " class="text-decoration-none"><h4 class="display-4 p-0">{ item ["title" ]} </h4></a>
147
- <p class="card-subtitle">{ authors_str } <br/>{ affiliations_str } </p>
147
+ <p class="card-subtitle">{ authors_str } <br/>{ institutions_str } </p>
148
148
<p class="my-2">{ short_description } </p>
149
149
</div>
150
150
</div>
0 commit comments