Wiki-Quellcode von Checks
Version 1.1 von Holger Engels am 2023/12/15 20:17
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set($c = 0) | ||
3 | #set($noAFB = []) | ||
4 | #set($noKompetenzen = []) | ||
5 | #set($noQuelle = []) | ||
6 | #set($noLizenz = []) | ||
7 | #set($reference = $services.model.resolveDocument('Main.WebHome')) | ||
8 | #set($referenceWithLocale = $services.model.createDocumentReference($reference, $xcontext.locale)) | ||
9 | #set($page = $xwiki.getDocument($referenceWithLocale)) | ||
10 | #foreach( $m in $page.getXDOM().getBlocks('class:MacroBlock', 'DESCENDANT')) | ||
11 | #if($m.getId() == "bpe") | ||
12 | #set($id = $m.parameters.nummer.replace(".", "_")) | ||
13 | #set($link = $m.parameters.ordner + ".BPE_" + $id + ".WebHome") | ||
14 | #set($doc = $xwiki.getDocument($link)) | ||
15 | #foreach($m in $doc.getXDOM().getBlocks('class:MacroBlock', 'DESCENDANT')) | ||
16 | #if($m.getId() == "aufgabe") | ||
17 | #set($c = $c + 1) | ||
18 | #if(!$m.parameters.afb)#set($lala=$noAFB.add({'page': $link, 'id' : $m.parameters.id})#end | ||
19 | #if(!$m.parameters.kompetenzen)#set($lala=$noKompetenzen.add({'page': $link, 'id' : $m.parameters.id})#end | ||
20 | #if(!$m.parameters.quelle)#set($lala=$noQuelle.add({'page': $link, 'id' : $m.parameters.id})#end | ||
21 | #if(!$m.parameters.lizenz && !$m.parameters.cc)#set($lala=$noLizenz.add({'page': $link, 'id' : $m.parameters.id})#end | ||
22 | #end | ||
23 | #end | ||
24 | #end | ||
25 | #end | ||
26 | Anzahl Aufgaben $c | ||
27 | |||
28 | Kein AFB | ||
29 | #foreach($l in $noAFB) [[$l.id>>$l.link]]#end | ||
30 | |||
31 | {{/velocity}} |