1 [% WRAPPER 'default/base.tt2' %]
2 [% ctx.page_title = 'Vandelay Match Set Editor' %]
3 <style type="text/css">
5 .outer { clear: both; margin-bottom: 1ex; }
6 button { margin: 0 0.5em; }
7 input[type=submit] { padding: 0 0.5em; }
8 #tree-here { margin-bottom: 1.5em; }
9 #vms-table { padding-bottom: 2ex; }
10 #vms-table th { text-align: right; }
11 #vms-table td { padding-left: 1em; }
12 #src-pane { float: left; width: 49%; }
13 #tree-pane { float: right; width: 50%; }
14 #submit-row { clear: both; text-align: center; padding-top: 1.5ex; }
15 #submit-row hr { margin: 1.5ex 0; }
16 #expr-preview-row { margin: 2ex 0; }
18 font-family: monospace;
21 background-color: #000066;
24 .node-editor { margin-bottom: 1.5ex; }
25 .node-editor td { padding: 0.5ex; }
26 li { background-color: #ddd; }
27 .replace-mode { background-color: #990; color: #fff; }
29 <h1>[% ctx.page_title %]</h1>
30 <table id="vms-table">
33 <th>Match set name:</th>
34 <td><strong id="vms-name"></strong></td>
37 <th>Owning Library:</th>
38 <td id="vms-owner"></td>
42 <td id="vms-mtype"></td>
48 give some indication of which match set we're editing the tree for
50 <table class="hidden">
51 <tr consistent-controls="1">
53 <label for="quality-input"
54 title="A relative number representing the impact of this expression on the quality of the overall record match"><!-- XXX tooltipize -->
59 <input id="quality-input" type="text" value="1"
60 size="4" maxlength="3" fmfield="quality" />
63 <tr consistent-controls="1">
65 <label for="negate-input">Negate?</label>
68 <input id="negate-input" type="checkbox" fmfield="negate" />
73 <div id="expr-preview-row">
74 <em>Your Expression:</em>
75 <span id="expr-preview"></span>
77 <div id="vmsp-buttons">
79 <button onclick="node_editor.add('svf');">Single-Value-Field</button>
80 <button onclick="node_editor.add('tag');">MARC Tag and Subfield</button>
81 <button onclick="node_editor.add('bool_op');">Boolean Operator</button>
84 <div class="outer" style="margin-top: 2ex;">
86 <div><big>Working Match Point</big></div>
88 <form id="node-editor-container" onsubmit="return false;"></form>
90 <ul id="src-here"></ul>
94 <div><big>Your Expression</big></div>
95 <div id="tree-here"></div>
97 <button id="deleter" onclick="delete_selected_in_tree()">
100 <button id="replacer" onclick="replace_mode()"></button>
104 <div id="submit-row">
106 <button onclick="save_tree()">Save Changes</button>
108 <div jsId="progress_dialog" dojoType="openils.widget.ProgressDialog"></div>
109 <script type="text/javascript"
110 src="[% ctx.media_prefix %]/js/ui/default/vandelay/match_set.js"></script>