1 <div style='float: left; margin-top: 8px;'>
2 <input dojoType="dijit.form.RadioButton" name="attrEditorGroup" value="bib"
3 id="aegB" onclick="setAttrEditorGroup('bib');" checked="checked"/>
4 <label for="aegB" style="margin-right: 1em;">&vandelay.bib.attrs;</label>
5 <input dojoType="dijit.form.RadioButton" name="attrEditorGroup" value="auth"
6 id="aegA" onclick="setAttrEditorGroup('auth');"/>
7 <label for="aegA" style="margin-right: 1em;">&vandelay.auth.attrs;</label>
9 <div dojoType="dijit.form.DropDownButton" id="vl-create-attr-editor-button">
10 <span name="create">&vandelay.create.attr.def;</span>
11 <div dojoType="dijit.TooltipDialog" execute="vlSaveAttrDefinition(arguments[0]);" id="attr-editor-dialog">
12 <script type='dojo/connect' event='onOpen'>onAttrEditorOpen();</script>
13 <script type='dojo/connect' event='onClose'>onAttrEditorClose();</script>
14 <table class='dijitTooltipTable'>
16 <td><label for="code">&vandelay.code;:</label></td>
17 <td><input id='attr-editor-code' name="code" dojoType="dijit.form.TextBox"/></td>
20 <td><label for="description">&vandelay.descrip;:</label></td>
21 <td><input id='attr-editor-description' dojoType="dijit.form.TextBox" name="description"> </input></td>
24 <td><label for="amount">&vandelay.tags;:</label></td>
25 <td><input id="attr-editor-tags" dojoType="dijit.form.TextBox" name="tag"></input>
26 <div class="hidden" id="attr-editor-tags-tip">
27 <p>&vandelay.tooltip.tags;</p>
28 <p>&vandelay.for.example;:<code>120, 220, 300</code> or <code>120 220 330</code></p></div>
33 <td><label for="amount">&vandelay.subfields;:</label></td>
34 <td><input dojoType="dijit.form.TextBox" name="subfield" id="attr-editor-subfields"></input>
35 <div class="hidden" id="attr-editor-subfields-tip">
36 <p>&vandelay.tooltip.subfields;</p>
37 <p>&vandelay.for.example;: <code>a, b, j, x</code> or <code>a b j x</code></p></div>
41 <td><label for="ident">&vandelay.id.field;: </label></td>
43 <select dojoType="dijit.form.FilteringSelect" name="ident" id="attr-editor-identifier">
44 <option value='f' selected='selected'>&vandelay.false;</option>
45 <option value='t'>&vandelay.true;</option>
50 <td><label for="attr-editor-xpath">&vandelay.xpath.advanced;: </label></td>
52 <td><input dojoType="dijit.form.TextBox" id="attr-editor-xpath" name="xpath"></input></td>
55 <td><label for="attr-editor-remove">&vandelay.remove.advanced;: </label></td>
57 <td><input dojoType="dijit.form.TextBox" id="attr-editor-remove" name="remove"></input></td>
59 <tr id="attr-editor-create-bar">
60 <td colspan='2' align='center'>
61 <button dojoType="dijit.form.Button" type="submit"
62 id="attr-editor-create-button">&vandelay.create;</button>
63 <button type="button" dojoType="dijit.form.Button"
64 onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
67 <tr id="attr-editor-update-bar">
68 <td colspan='2' align='center'>
69 <button dojoType="dijit.form.Button" type="submit"
70 id="attr-editor-update-button">&vandelay.update;</button>
71 <button type="button" dojoType="dijit.form.Button"
72 onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
73 <button dojoType="dijit.form.Button"
75 id="attr-editor-delete-button"
76 style="padding-left: 2em;"
77 onclick="if(confirm('&vandelay.sure.to.delete;')) { vlAttrDelete(); }">
78 &vandelay.delete.record;</button>
84 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
85 <table dojoType='dojox.grid.DataGrid' jsId='attrEditorGrid' query="{id: '*'}" autoHeight='true'>
88 <th field='id'>&vandelay.id;</th>
89 <th field='code' width='auto'>&vandelay.code;</th>
90 <th field='description' width='auto'>&vandelay.descrip;</th>
91 <th field='tag' get='attrGridGetTag'>&vandelay.tag;</th>
92 <th field='subfield' get='attrGridGetSubfield'>&vandelay.subfield;</th>
93 <th field='ident'>&vandelay.identifier;</th>
94 <th field='xpath' width='auto'>&vandelay.xpath;</th>
95 <th field='remove' width='auto'>&vandelay.remove;</th>