HTML templating functions for populating web views of the public-repo
app:get-package-stats($node as node(), $model as map(*)) as item()*
Load the package title for the admin section's table
$node | $node |
$model | $model |
app:list-packages($node as node(), $model as map(*), $mode as xs:string?) as item()*
Landing page - show the compact version of all package groups
$node | $node |
$model | $model |
$mode? | $mode? |
app:load-get-package-logs-for-admin-table($node as node(), $model as map(*), $top-n as xs:integer) as item()*
Load the get-package logs for the admin section's table
$node | $node |
$model | $model |
$top-n | $top-n |
app:load-package-groups($node as node(), $model as map(*)) as item()*
Load the package groups document for the admin page's package-groups section
$node | $node |
$model | $model |
app:load-packages($node as node(), $model as map(*)) as item()*
Load the packages for each package-group
$node | $node |
$model | $model |
app:mkcol($collection as xs:string, $path as xs:string) as item()*
Recursively create a collection hierarchy
$collection | $collection |
$path | $path |
app:package-date-published($node as node(), $model as map(*)) as item()*
Load the package version
$node | $node |
$model | $model |
app:package-group-abbrev($node as node(), $model as map(*)) as item()*
Load the package title for the admin page's package-groups section
$node | $node |
$model | $model |
app:package-group-name($node as node(), $model as map(*)) as item()*
Load the package title for the admin page's package-groups section
$node | $node |
$model | $model |
app:package-group-title($node as node(), $model as map(*)) as item()*
Load the package title for the admin page's package-groups section
$node | $node |
$model | $model |
app:package-group-to-list-item($package-group as element(), $incompatible-packages as element()*, $procVersion as xs:string?, $show-details as xs:boolean) as item()*
Used by all HTML listings of packages - landing page views of all packages and interior views of individual package groups
$package-group | $package-group |
$incompatible-packages* | $incompatible-packages* |
$procVersion? | $procVersion? |
$show-details | $show-details |
app:package-requires($node as node(), $model as map(*)) as item()*
Load the package version
$node | $node |
$model | $model |
app:package-version($node as node(), $model as map(*)) as item()*
Load the package version
$node | $node |
$model | $model |
app:rebuild-package-groups-metadata($node as node(), $model as map(*), $rebuild-package-groups-metadata as xs:boolean?) as item()*
Rebuild the package-groups metadata
$node | $node |
$model | $model |
$rebuild-package-groups-metadata? | $rebuild-package-groups-metadata? |
app:requires-to-english($requires as element()) as item()*
Express eXist version requirements in human readable form
$requires | $requires |
app:view-package($node as node(), $model as map(*), $mode as xs:string?) as item()*
Single package group view - show the full version of this package group
Package is found via the abbrev URL parameter, with an optional eXist version parameter.
If the eXist version parameter is missing, eXist 2.2.0 is assumed (see config.xqm).
$node | $node |
$model | $model |
$mode? | $mode? |