Skip to content

Commit 697697b

Browse files
committed
prepare a new release
1 parent af64b0c commit 697697b

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

expath-pkg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<package xmlns="http://expath.org/ns/pkg" name="http://jmmc.fr/apps/oival" abbrev="oival" version="2.15.0" spec="1.0">
2+
<package xmlns="http://expath.org/ns/pkg" name="http://jmmc.fr/apps/oival" abbrev="oival" version="2.15.1" spec="1.0">
33
<title>OIFits Validator</title>
44
<dependency processor="http://exist-db.org" semver-min="5.0.0"/>
55
<dependency package="http://exist-db.org/html-templating" semver-min="1.0.2"/>

modules/app.xql

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ declare function app:format-failures-report($failures as node()?, $rules as node
112112

113113
declare function app:show-provenance($prim-hdu-keywords,$filename ){
114114
<div>
115-
<h2>Provenance of {$filename}</h2>
115+
<h2>Data reduction information extracted from the headers:</h2>
116116
{
117117
let $kws := $prim-hdu-keywords[starts-with(name,"HIERARCH.ESO.PRO.REC")]
118118

@@ -125,9 +125,11 @@ declare function app:show-provenance($prim-hdu-keywords,$filename ){
125125
"PIPELINE ID": string-join(distinct-values($rec-kws[ends-with(name,".PIPE.ID")]/value), ", ")
126126
}
127127

128-
return (
129-
<dl>{ map:for-each( $dls, function ($k, $v){ if(exists($v) and string-length($v)>0 ) then (<dt>{$k}</dt>,<dd>{$v}</dd>) else () }) }</dl>
130-
,<ol>{
128+
return <dl>{
129+
map:for-each( $dls, function ($k, $v){ if(exists($v) and string-length($v)>0 ) then (<dt>{$k}</dt>,<dd>{$v}</dd>) else () })
130+
, if( empty($rec-kws) ) then () else
131+
(<dt>HIERARCH ESO RECipies:</dt>,<dd>
132+
<ul>{
131133
for $kw in $rec-kws group by $step := substring-before(substring-after($kw,$rec-prefix),".")
132134
(:prepare prefixes :)
133135
let $step-prefix := $rec-prefix||$step (: e.g.: HIERARCH.ESO.PRO.REC1 :)
@@ -161,26 +163,24 @@ declare function app:show-provenance($prim-hdu-keywords,$filename ){
161163
:)
162164

163165
return
164-
<li>
165-
{ $rec-id/value/text() }
166+
<li><ul class="list-inline">
167+
<b>{ $rec-id/value/text() }&#160;</b>
166168
{ for $n in $step-params-names
167169
let $v := $step-params[name=substring-before($n,".NAME")||".VALUE"]
168170
let $v := if($v) then <var>{normalize-space($v/value)}</var> else ()
169-
let $pname := " -"||normalize-space($n/value)
170-
let $pname := if(exists($v)) then $pname||"=" else $pname
171+
let $pname := <b>&#160;--{normalize-space($n/value)}</b>
172+
let $pname := if(exists($v)) then ($pname,"=") else $pname
171173
return
172-
($pname,$v)
174+
<li>{$pname,$v}</li>
173175
}&#160;
174176
{
175177
for $n at $pos in $file-names group by $catg := data($file-catgs[$pos]/value)
176-
let $prefix := if($catg) then $catg ||"=[" else "["
177-
return ($prefix, <var>{string-join($n/value,", ")}</var>, "]")
178+
return <li><b>{$catg}</b>=[<var>{string-join($n/value,", ")}</var>]</li>
178179
}
179-
</li>
180+
</ul></li>
180181

181-
}</ol>
182-
)
183-
}
182+
}</ul></dd>)
183+
}</dl>}
184184
</div>
185185
};
186186

@@ -229,8 +229,6 @@ declare function app:show-html($xml as node()*) {
229229
</ul>
230230
</nav>
231231

232-
{app:show-provenance($prim-hdu-keywords, $filename)}
233-
234232
<div>
235233
<ol id="granules{$uuid}" class="breadcrumb">
236234
<li><a href="#top">TOP^</a></li>
@@ -321,6 +319,7 @@ declare function app:show-html($xml as node()*) {
321319
</div>
322320
</div>
323321
</div>
322+
{app:show-provenance($prim-hdu-keywords, $filename)}
324323
</p>)
325324
else <p>No primary HDU keywords</p>
326325
}

repo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<change xmlns="" version="2.15.0">
1717
<h3>Nov 2023</h3>
1818
<ul>
19-
<li>Add provenance sections</li>
19+
<li>Add a datareduction extract on top of headers.</li>
2020
</ul>
2121
</change>
2222
<change xmlns="" version="2.14.1">

0 commit comments

Comments
 (0)