2 [% ctx.page_title = l('Z39.50 Servers') %]
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/z3950_source.js'> </script>
5 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
7 [% source_code = ctx.page_args.0;
10 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
11 <div>[% l('Z39.50 Attributes for [_1]', source_code) | html %]</div>
13 <button dojoType='dijit.form.Button' onClick='zaGrid.showCreateDialog()'>[% l('New') %]</button>
14 <button dojoType='dijit.form.Button' onClick='zaGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
15 <button dojoType='dijit.form.Button' onClick='showAttrCloneDialog()'>[% l('Clone Attributes From Source') %]</button>
19 <button onClick="location.href = location.href.replace(/\/[^\/]+$/, '')">
20 [% l('Return to Sources') %]
26 [% l('Credentials for ') %]
27 <select dojoType="openils.widget.OrgUnitFilteringSelect"
28 jsId='z39ContextSelector'
29 searchAttr='shortname'
30 labelAttr='shortname'>
33 <input type='text' id='z39-creds-username'/>
35 <input type='password' id='z39-creds-password'/>
36 <button id='z39-creds-button' onclick='applyCreds()'>
37 [% l('Apply Credentials') %]
39 <button id='z39-creds-clear' onclick='applyCreds(1)'>
40 [% l('Clear Stored Credentials') %]
49 dojoType="openils.widget.FlattenerGrid"
50 columnPersistKey='"conify.config.z3950_attr"'
56 defaultSort="['code']"
57 query="{'source': ['[% source_code %]']}">
60 <th field="source" fpath="source" ffilter="true"/>
61 <th field="name" fpath="name" ffilter="true"/>
62 <th field="label" fpath="label" ffilter="true"/>
63 <th field="code" fpath="code" ffilter="true"/>
64 <th field="format" fpath="format" ffilter="true"/>
65 <th field="truncation" fpath="truncation" ffilter="true"/>
70 <div jsId="attrCloneDialog" dojoType="dijit.Dialog">
71 <span>[% l('Select a source to clone') %]</span>
72 <span><div id='attr-clone-source'></div></span>
73 <span><button onClick='cloneFromSource()'>[% l('Apply') %]</button></span>
78 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
79 <div>[% l('Z39.50 Servers') %]</div>
81 <button dojoType='dijit.form.Button' onClick='zsGrid.showCreateDialog()'>[% l('New Z39.50 Server') %]</button>
82 <button dojoType='dijit.form.Button' onClick='zsGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
88 dojoType="openils.widget.AutoGrid"
89 fieldOrder="['name', 'label', 'host', 'port', 'db', 'record_format', 'transmission_format', 'auth']"
91 defaultCellWidth='"auto"'
95 <tr><th field='name' formatter='formatSourceName'/></tr>
103 <script>var sourceCode = '[% source_code %]';</script>