Changes for page All Journals & Series

From version 9.1
edited by Andrea Omicini
on 20/07/2022 18:52
Change comment: There is no comment for this version
To version 15.1
edited by Andrea Omicini
on 11/07/2023 18:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('journalseriesall')
Content
... ... @@ -1,11 +1,30 @@
1 -= {{stringEngIta eng="All" ita="Tutte"/}} =
2 -
3 -{{include reference="Journals.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -#set( $sql = ", BaseObject as obj, StringProperty as prop where obj.name = doc.fullName and obj.className = '$objectSpace.$objectClass' and obj.name <> '$objectSpace.$objectTemplate' and prop.id.id = obj.id and prop.name = 'acronym' order by prop.value asc" )
5 -#set( $journals = $xwiki.searchDocuments($sql) )
6 -#set( $journalNo = $journals.size() )
7 ->**$journalNo** {{stringEngIta eng='journals & series' ita='riviste e collane'/}}
8 -
9 -#foreach( $journal in $journals )
10 -#if( $velocityCount > 1 ) (% style="color:$theme.textSecondaryColor" %)|(%%) #end{{journal}}$journal{{/journal}}#end
11 -{{/velocity}}
1 +{{velocity}}
2 +{{html wiki="true" clean="false"}}
3 +#template('apice_macros.vm')
4 +#objectspace()
5 +#template('apice_event_macros.vm')
6 +## query
7 +#set( $sql = ", BaseObject as obj, StringProperty as prop where obj.name = doc.fullName and obj.className = '${mainSpace}.Class' and obj.name <> '${objectPool}.Template' and prop.id.id = obj.id and prop.name = 'acronym' order by prop.value asc" )
8 +#set( $itemFound = $xwiki.searchDocuments($query) )
9 +## how many items found?
10 +#set( $itemNo = $itemFound.size() )
11 +## header start
12 +<div class="mainheader">
13 +$itemNo
14 +#if( $itemNo == 1 )
15 + $services.localization.render('journal').toLowerCase()
16 +#{else}
17 + $services.localization.render('journals').toLowerCase()
18 +#end
19 +</div>
20 +## header end
21 +## display items separated by dots / start
22 +#foreach( $item in $itemFound )
23 + #if( !$foreach.first )
24 + <span class="menumainbody">&ensp;&bull;&ensp;</span>
25 + #end
26 + #journalinked($item)
27 +#end
28 +## display items separated by dots / end
29 +{{/html}}
30 +{{/velocity}}{{pageDisplay sort="objectservice"/}}