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 4.1
edited by Andrea Omicini
on 04/11/2021 23:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +#if($xcontext.language=="it")Tutte le riviste e le collane in APICe#{else}All Journals & Series in APICe#end
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Content
... ... @@ -1,11 +1,12 @@
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" )
1 +{{velocity}}
2 +#set( $sql = ", BaseObject as obj, StringProperty as prop where obj.name = doc.fullName and obj.className = 'Journals.JournalClass' and obj.name <> 'Journals.JournalClassTemplate' and obj.name <> 'Journals.JournalTemplate' and prop.id.id = obj.id and prop.name = 'acronym' order by prop.value asc" )
5 5  #set( $journals = $xwiki.searchDocuments($sql) )
6 6  #set( $journalNo = $journals.size() )
7 ->**$journalNo** {{stringEngIta eng='journals & series' ita='riviste e collane'/}}
5 +>{{english}}There are currently **$journalNo** journals and series recorded in {{apice /}}{{/english}}{{italian}}Ci sono attualmente **$journalNo** riviste e collane registrate in {{apice /}}{{/italian}}
8 8  
9 -#foreach( $journal in $journals )
10 -#if( $velocityCount > 1 ) (% style="color:$theme.textSecondaryColor" %)|(%%) #end{{journal}}$journal{{/journal}}#end
7 +#foreach( $journal in $journals )
8 + #set( $journalDoc=$xwiki.getDocument($journal) )
9 + #set( $journalObj=$journalDoc.getObject("Journals.JournalClass") )
10 + #if( $velocityCount > 1 ) | #end#if( $journalDoc.display('acronym') != '' )//($journalDoc.display('acronym'))// #end[[$journalDoc.display("name")>>$journal]]##
11 +#end
11 11  {{/velocity}}