1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/acq/provider.js'> </script>
5 var providerId = '[% ctx.page_args.0 %]';
7 function formatName(inDatum) {
10 return 'Owning Library';
22 return 'Circulation Modifier';
24 return 'Copy Location';
25 case 'collection_code':
26 return 'Collection Code';
30 function getProviderName(rowIndex, item) {
32 var name = this.grid.store.getValue(item, 'name');
33 var id = this.grid.store.getValue(item, 'id');
34 return id + ':' + name;
37 function formatName(value) {
39 var vals = value.split(/:/);
40 return '<a href="[% ctx.base_path %]/conify/global/acq/provider/'+vals[0]+'">'+vals[1]+'</a>';
47 <select dojoType="dijit.form.FilteringSelect" jsId="nameSelect">
48 <option value='owning_lib'>Owning Library</option>
49 <option value='quantity'>Quantity</option>
50 <option value='call_number'>Call Number</option>
51 <option value='fund_code'>Fund Code</option>
52 <option value='local_note'>Local Note</option>
53 <option value='price'>Price</option>
54 <option value='circ_modifier'>Circulation Modifier</option>
55 <option value='copy_location'>Copy Location</option>
56 <option value='collection_code'>Collection Code</option>
60 <div id='provider-list-div' style='height: 600px;'>
61 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
62 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
65 <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button>
66 <button dojoType='dijit.form.Button' onClick='pListGrid.deleteSelected()'>Delete Selected</button>
70 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
71 <table jsId="pListGrid"
72 dojoType="openils.widget.AutoGrid"
73 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
75 defaultCellWidth='"auto"'
80 <tr><th field='name' get='getProviderName' formatter='formatName'/></tr>
87 <div id='provider-summary-pane'></div>
88 <div id='provider-details-div' style='height:600px;'>
89 <div dojoType="dijit.layout.TabContainer" style='height:100%;' jsId='providerTabs'>
91 <div dojoType="dijit.layout.ContentPane" title='Provider Address' select='true' id='provider-address'>
93 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
94 <div> Provider Address</div>
96 <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
97 <button dojoType='dijit.form.Button' onClick='paListGrid.deleteSelected()'>Delete Selected</button>
100 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:100px'>
101 <table jsId="paListGrid"
102 dojoType="openils.widget.AutoGrid"
103 fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
106 defaultCellWidth='"auto"'
112 <div dojoType="dijit.layout.ContentPane" title='Provider Contact' id='tab-pro-contact'>
113 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
114 <div> Provider Contact</div>
116 <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
117 <button dojoType='dijit.form.Button' onClick='pcListGrid.deleteSelected()'>Delete Selected</button>
120 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
121 <table jsId="pcListGrid"
122 dojoType="openils.widget.AutoGrid"
123 fieldOrder="['id', 'name', 'provider', 'role', 'email']"
124 defaultCellWidth='"auto"'
131 <div id='contact-addr-div'>
132 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
133 <div>Contact Address</div>
135 <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
136 <button dojoType='dijit.form.Button' onClick='pcaListGrid.deleteSelected()'>Delete Selected</button>
139 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
140 <table jsId="pcaListGrid"
141 dojoType="openils.widget.AutoGrid"
142 fieldOrder="['id', 'address_type', 'contact', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
145 defaultCellWidth='"auto"'
152 <div dojoType="dijit.layout.ContentPane" title='Attribute Definitions' id='tab-attr'>
153 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
154 <div> Attribute Definitions</div>
156 <button dojoType='dijit.form.Button' onClick='padListGrid.showCreateDialog()'>New Attribute Definition</button>
157 <button dojoType='dijit.form.Button' onClick='padListGrid.deleteSelected()'>Delete Selected</button>
160 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
161 <table jsId="padListGrid"
162 dojoType="openils.widget.AutoGrid"
163 fieldOrder="['id', 'provider', 'code', 'description', 'provider', 'ident', 'remove', 'tag', 'subfield', 'xpath']"
169 <th field="xpath" width='auto'/>
170 <th field="tag" get='getParsedTag'/>
171 <th field="subfield" get='getParsedSubf'/>
178 <div dojoType="dijit.layout.ContentPane" title='Holding Subfield' id='tab-hold'>
179 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
180 <div>Holding Subfield</div>
182 <button dojoType='dijit.form.Button' onClick='phsListGrid.showCreateDialog()'>New Holding Subfield</button>
183 <button dojoType='dijit.form.Button' onClick='phsListGrid.deleteSelected()'>Delete Selected</button>
186 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
187 <table jsId="phsListGrid"
188 dojoType="openils.widget.AutoGrid"
189 fieldOrder="['id', 'provider', 'name', 'subfield']"