2 [% ctx.page_title = l('MARC Record Attribute Definitions') %]
3 <h1>[% l('Record Attribute Definitions') %]</h1> <br/>
5 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
6 <div>[% l('Record Attribute Definitions') %]</div>
8 <button dojoType='dijit.form.Button' onClick='cradGrid.showCreateDialog()'>[% l('New Attr. Definition') %]</button>
9 <button dojoType='dijit.form.Button' onClick='cradGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
13 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14 <table jsId="cradGrid"
16 dojoType="openils.widget.AutoGrid"
17 fieldOrder="['name', 'label']",
23 <tr><th field='coded_value_maps'
25 formatter='formatCcvmsLink'>
26 [% l('Coded Value Maps') %]</th></tr>
31 <script type ="text/javascript">
32 dojo.require('openils.widget.AutoGrid');
34 function getCcvms(rowId, item) {
36 return this.grid.store.getValue(item, 'name');
39 function formatCcvmsLink(name) {
41 return "<a href='" + oilsBasePath +
42 "/conify/global/config/coded_value_map/"
43 + name + "'>[% l('Manage') %]</a>";
49 openils.Util.addOnLoad(
51 // avoid loading the entire config.xml_transform object
52 cradGrid.overrideWidgetArgs.format = {searchOptions : {"select":{"cxt":["name"]}}};
53 cradGrid.loadAll({order_by : {crad : 'name'}})