XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/app

/db/apps/public-repo/modules/app.xqm

HTML templating functions for populating web views of the public-repo

app:get-package-stats

app:get-package-stats($node as node(), $model as map(*)) as item()*

Load the package title for the admin section's table

Parameters:
$node $node
$model $model
Returns:
item()*

app:list-packages

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

Parameters:
$node $node
$model $model
$mode? $mode?
Returns:
item()*

app:load-get-package-logs-for-admin-table

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

Parameters:
$node $node
$model $model
$top-n $top-n
Returns:
item()*

app:load-package-groups

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

Parameters:
$node $node
$model $model
Returns:
item()*

app:load-packages

app:load-packages($node as node(), $model as map(*)) as item()*

Load the packages for each package-group

Parameters:
$node $node
$model $model
Returns:
item()*

app:mkcol

app:mkcol($collection as xs:string, $path as xs:string) as item()*

Recursively create a collection hierarchy

Parameters:
$collection $collection
$path $path
Returns:
item()*

app:package-date-published

app:package-date-published($node as node(), $model as map(*)) as item()*

Load the package version

Parameters:
$node $node
$model $model
Returns:
item()*

app:package-group-abbrev

app:package-group-abbrev($node as node(), $model as map(*)) as item()*

Load the package title for the admin page's package-groups section

Parameters:
$node $node
$model $model
Returns:
item()*

app:package-group-name

app:package-group-name($node as node(), $model as map(*)) as item()*

Load the package title for the admin page's package-groups section

Parameters:
$node $node
$model $model
Returns:
item()*

app:package-group-title

app:package-group-title($node as node(), $model as map(*)) as item()*

Load the package title for the admin page's package-groups section

Parameters:
$node $node
$model $model
Returns:
item()*

app:package-group-to-list-item

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

Parameters:
$package-group $package-group
$incompatible-packages* $incompatible-packages*
$procVersion? $procVersion?
$show-details $show-details
Returns:
item()*

app:package-requires

app:package-requires($node as node(), $model as map(*)) as item()*

Load the package version

Parameters:
$node $node
$model $model
Returns:
item()*

app:package-version

app:package-version($node as node(), $model as map(*)) as item()*

Load the package version

Parameters:
$node $node
$model $model
Returns:
item()*

app:rebuild-package-groups-metadata

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

Parameters:
$node $node
$model $model
$rebuild-package-groups-metadata? $rebuild-package-groups-metadata?
Returns:
item()*

app:requires-to-english

app:requires-to-english($requires as element()) as item()*

Express eXist version requirements in human readable form

Parameters:
$requires $requires
Returns:
item()*

app:view-package

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).

Parameters:
$node $node
$model $model
$mode? $mode?
Returns:
item()*