Revision 61341
Added by Alessia Bardi almost 3 years ago
indexRecord.xml.vm | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<!-- |
4 | 4 |
#macro(context $ctx) |
5 |
<$!ctx.elem id="$!esc.evaluate($!ctx.id)" label="$!esc.evaluate($contexts.get($!ctx.id))" #if($!ctx.isRoot()) type="community"#end>
|
|
5 |
<$!ctx.elem id="$!esc.evaluate($!ctx.id)" label="$!esc.evaluate($!ctx.label)" #if($!ctx.isRoot()) type="community"#end>
|
|
6 | 6 |
#foreach($child in $!ctx.children)#context($child)#end |
7 | 7 |
</$!ctx.elem> |
8 | 8 |
#end |
... | ... | |
71 | 71 |
<bestaccessright classid="UNKNOWN" classname="not available" schemeid="dnet:access_modes" schemename="dnet:access_modes" /> |
72 | 72 |
#end |
73 | 73 |
|
74 |
#foreach($ctx in $util.processContexts($!pub.contexts))
|
|
75 |
#context($ctx)
|
|
76 |
#end
|
|
74 |
#foreach($ctx in $contextInfo)
|
|
75 |
#context($ctx)
|
|
76 |
#end
|
|
77 | 77 |
|
78 | 78 |
<datainfo> |
79 | 79 |
<inferred>false</inferred> |
Also available in: Unified diff
When the label of the context cannot be resolved, the context tag is not added.
To ensure tests do not make any external calls, the code has been refactored so that the proper mock could be defined.