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;">[% l('Bibliographic attributes') %]</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;">[% l('Authority attributes') %]</label>
9 <div dojoType="dijit.form.DropDownButton" id="vl-create-attr-editor-button">
10 <span name="create">[% l('Create Attribute Definition') %]</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">[% l('Code') %]:</label></td>
17 <td><input id='attr-editor-code' name="code" dojoType="dijit.form.TextBox"/></td>
20 <td><label for="description">[% l('Description') %]:</label></td>
21 <td><input id='attr-editor-description' dojoType="dijit.form.TextBox" name="description"> </input></td>
24 <td><label for="amount">[% l('Tag(s)') %]:</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>[% l('You can enter multiple tags, separated by spaces and/or commas') %]</p>
28 <p>[% l('Example') %]:<code>120, 220, 300</code> or <code>120 220 330</code></p></div>
33 <td><label for="amount">[% l('Subfield(s)') %]:</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>[% l('You can enter multiple subfields, separated by spaces and/or commas') %]</p>
37 <p>[% l('Example') %]: <code>a, b, j, x</code> or <code>a b j x</code></p></div>
41 <td><label for="attr-editor-xpath">[% l('XPath (advanced)') %]: </label></td>
43 <td><input dojoType="dijit.form.TextBox" id="attr-editor-xpath" name="xpath"></input></td>
46 <td><label for="attr-editor-remove">[% l('Remove (advanced)') %]: </label></td>
48 <td><input dojoType="dijit.form.TextBox" id="attr-editor-remove" name="remove"></input></td>
50 <tr id="attr-editor-create-bar">
51 <td colspan='2' align='center'>
52 <button dojoType="dijit.form.Button" type="submit"
53 id="attr-editor-create-button">[% l('Create') %]</button>
54 <button type="button" dojoType="dijit.form.Button"
55 onclick="dijit.byId('attr-editor-dialog').onCancel();">[% l('Cancel') %]</button>
58 <tr id="attr-editor-update-bar">
59 <td colspan='2' align='center'>
60 <button dojoType="dijit.form.Button" type="submit"
61 id="attr-editor-update-button">[% l('Update') %]</button>
62 <button type="button" dojoType="dijit.form.Button"
63 onclick="dijit.byId('attr-editor-dialog').onCancel();">[% l('Cancel') %]</button>
64 <button dojoType="dijit.form.Button"
66 id="attr-editor-delete-button"
67 style="padding-left: 2em;"
68 onclick="if(confirm('[% l('Are you sure you want to delete this record?') %]')) { vlAttrDelete(); }">
69 [% l('Delete record') %]</button>
75 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
76 <table dojoType='dojox.grid.DataGrid' jsId='attrEditorGrid' query="{id: '*'}" autoHeight='true'>
79 <th field='id'>[% l('ID') %]</th>
80 <th field='code' width='auto'>[% l('Code') %]</th>
81 <th field='description' width='auto'>[% l('Description') %]</th>
82 <th field='tag' get='attrGridGetTag'>[% l('Tag') %]</th>
83 <th field='subfield' get='attrGridGetSubfield'>[% l('Subfield') %]</th>
84 <th field='xpath' width='auto'>[% l('XPath') %]</th>
85 <th field='remove' width='auto'>[% l('Remove') %]</th>