Changes for page Per Status
From version 86.9
edited by Andrea Omicini
on 22/06/2023 12:52
on 22/06/2023 12:52
Change comment:
There is no comment for this version
To version 86.11
edited by Andrea Omicini
on 22/06/2023 12:53
on 22/06/2023 12:53
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -147,22 +147,25 @@ 147 147 <a class="basebutton" style="padding: .5em" href='$doc.getURL("view","inline=$showInline&bibtex=#if( $showBibtex )false#{else}true#end#if( $oneSort )&status=${statusList[0]}#end#if( $apiceUser )&user=$userName#elseif( $oneUser )&name=$userFirstName&surname=$userLastName#end")'>#if( $showBibtex )text#{else}bib#end</a> 148 148 </div> 149 149 </div> 150 - 151 - 152 -{{id name="top"/}} 153 ->(%%)$pubNo #if( $pubNo == 1 ){{stringEngIta eng="$objectEngSingular.toLowerCase()" ita="$objectItaSingular.toLowerCase()"/}}#{else}{{stringEngIta eng="$objectEngPlural.toLowerCase()" ita="$objectItaPlural.toLowerCase()"/}}#{end} / #if( $oneStatus ){{pubStatus uppercase='false' plural='true'}}$statusPar{{/pubStatus}}#{else}{{pubStatus uppercase='false' plural='true'}}unpublished{{/pubStatus}}#{end}#if( $oneUser ) / $userFirstName $userLastName#{end}(%%) 154 154 ## stop if no pubs are found 155 -#if( $ pubNo == 0 || $pubMap.keySet().size() == 0 )151 +#if( $itemNo == 0 || $itemMap.keySet().size() == 0 ) 156 156 ## redundant double check 157 157 #stop 158 158 #end 159 159 ## some pubs found 160 160 ## page index 161 -#if( $pubMap.keySet().size() > 1 ) 162 -## found more than one status 163 -{{id name="index"/}} 164 -(% style="font-size:smaller; text-align:right; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $pubMap.keySet() )#if( !$foreach.first ) | #end[[{{pubStatus uppercase='false' plural='true'}}$status{{/pubStatus}}>>||anchor="$status"]]#end))) 157 +#if( $itemMap.keySet().size() > 1 ) 158 +## found more than one sort 159 +<div class="mainselectbar" id="index"> 160 + #foreach( $status in $itemMap.keySet() ) 161 + #if( !$foreach.first ) 162 +  •  163 + #end 164 + [[$services.localization.render("${objectSpace}.${objectClass}_status_${status}_short_plural").toLowerCase()>>||anchor="$status"]] 165 + #end 166 +</div> 165 165 #end 168 +## 166 166 ## pubs displayed per year 167 167 #foreach( $status in $pubMap.keySet() ) 168 168 (% style="border-style:solid hidden hidden solid; border-color:$theme.borderColor; text-align:left; font-style:oblique" %)|{{id name='$status'/}}[[{{pubStatus uppercase='false' plural='true'}}$status{{/pubStatus}}>>$doc.name||queryString='status=$status#if( $oneUser )#if( $apiceUser )&user=$userName#{else}&name=$userFirstName&surname=$userLastName#end#end']]