-
Notifications
You must be signed in to change notification settings - Fork 0
/
consular-cards.xqm
44 lines (40 loc) · 1.88 KB
/
consular-cards.xqm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
xquery version "3.1";
module namespace cc = "http://history.state.gov/ns/xquery/apps/consular-cards";
declare function cc:wrap-html($title as xs:string, $body as element()) {
cc:wrap-html($title, $body, ())
};
declare function cc:wrap-html($title as xs:string, $body as element(), $q as xs:string?) {
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<!-- Bootstrap CSS -->
<link href="resources/bootstrap/bootstrap.min.css" rel="stylesheet"/>
<style type="text/css">
body {{ font-family: HelveticaNeue, Helvetica, Arial, sans }}
table {{ page-break-inside: avoid }}
dl {{ margin-above: 1em }}
dt {{ font-weight: bold }}</style>
<style type="text/css" media="print">
a, a:visited {{ text-decoration: underline; color: #428bca; }}
a[href]:after {{ content: "" }}
</style>
<title>{$title}</title>
</head>
<body>
<div class="container">
<h3><a href="/exist/apps/consular-cards/">Consular Cards</a></h3>
<form class="form-inline" action="/exist/apps/consular-cards/" method="get">
<div class="form-group"><label for="q" class="control-label">Search Card Labels</label>
<input type="text" name="q" id="q" class="form-control" value="{$q}"/>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
{$body}
</div>
<script src="resources/bootstrap/jquery.min.js"/>
<script src="resources/bootstrap/bootstrap.min.js"/>
</body>
</html>
};