Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97242915
info.xql
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 3, 18:02
Size
949 B
Mime Type
text/x-java
Expires
Sun, Jan 5, 18:02 (2 d)
Engine
blob
Format
Raw Data
Handle
23362989
Attached To
rNIETZSCHEDM nietzsche-dm
info.xql
View Options
xquery version "3.1";
module namespace iapi="http://teipublisher.com/api/info";
import module namespace config="http://www.tei-c.org/tei-simple/config" at "../../config.xqm";
declare function iapi:version($request as map(*)) {
map {
"api": $request?spec?info?version,
"app": map {
"name": $config:expath-descriptor/@abbrev/string(),
"version": $config:expath-descriptor/@version/string()
},
"engine": map {
"name": system:get-product-name(),
"version": system:get-version()
}
}
};
declare function iapi:list-templates($request as map(*)) {
array {
for $html in collection($config:app-root || "/templates/pages")/*
let $description := $html//meta[@name="description"]/@content/string()
return
map {
"name": util:document-name($html),
"title": $description
}
}
};
Event Timeline
Log In to Comment