Changes for page Summer Fellowships 2026

Last modified by Ricardo Julio Rodríguez Fernández on 2026/11/01 17:32

From version 67.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/11/01 17:12
Change comment: There is no comment for this version
To version 60.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/11/01 17:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,45 +1,39 @@
1 1  {{velocity}}
2 2  DONE
3 3  
4 -#set($pages = $services.query.hql(
4 +#foreach($p in $services.query.hql(
5 5   "select doc.fullName
6 6   from XWikiDocument doc
7 7   where doc.fullName like 'SummerFellowships2026.%'
8 - and doc.fullName <> 'SummerFellowships2026.Done'"
9 -).execute())
8 + and doc.fullName <> 'SummerFellowships2026.Done'
9 + and lower(doc.content) like '%summer fellow%'"
10 +).execute())##
10 10  
11 -#foreach($p in $pages)
12 +#set($pageDoc = $xwiki.getDocument($p))##
13 +#set($parts = $pageDoc.content.split("==="))##
12 12  
13 -#set($pageDoc = $xwiki.getDocument($p))
15 +#if($parts.size() >= 3)##
16 +[[$parts.get(1).trim()>>$p]]
17 +#end##
14 14  
15 -#if($pageDoc.content.toLowerCase().contains("summer fellow"))
19 +#end##
16 16  
17 -#set($parts = $pageDoc.content.split("==="))
18 -
19 -#if($parts.size() >= 3)
20 -$parts.get(1).trim()
21 -#end
22 -
23 -#end
24 -
25 -#end
26 -
27 27  OFFERED
28 28  
29 -#foreach($p in $pages)
23 +#foreach($p in $services.query.hql(
24 + "select doc.fullName
25 + from XWikiDocument doc
26 + where doc.fullName like 'SummerFellowships2026.%'
27 + and doc.fullName <> 'SummerFellowships2026.Done'
28 + and lower(doc.content) not like '%summer fellow%'"
29 +).execute())##
30 30  
31 -#set($pageDoc = $xwiki.getDocument($p))
31 +#set($pageDoc = $xwiki.getDocument($p))##
32 +#set($parts = $pageDoc.content.split("==="))##
32 32  
33 -#if(!$pageDoc.content.toLowerCase().contains("summer fellow"))
34 +#if($parts.size() >= 3)##
35 +[[$parts.get(1).trim()>>$p]]
36 +#end##
34 34  
35 -#set($parts = $pageDoc.content.split("==="))
36 -
37 -#if($parts.size() >= 3)
38 -$parts.get(1).trim()
39 -#end
40 -
41 -#end
42 -
43 -#end
44 -
38 +#end##
45 45  {{/velocity}}