1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/acq/provider.js'> </script>
4 <script type="text/javascript">
5 var providerId = '[% ctx.page_args.0 %]';
9 function formatName(inDatum) {
12 return 'Owning Library';
24 return 'Circulation Modifier';
26 return 'Copy Location';
27 case 'collection_code':
28 return 'Collection Code';
32 function getInvIdent(rowIndex, item) {
35 "id": this.grid.store.getValue(item, "id"),
36 "name": this.grid.store.getValue(item, "inv_ident")
40 function formatInvIdent(o) {
41 return "<a href='" + oilsBasePath + "/acq/invoice/view/" + o.id + "'>" +
45 function getProviderName(rowIndex, item) {
47 var name = this.grid.store.getValue(item, 'name');
48 var id = this.grid.store.getValue(item, 'id');
49 return id + ':' + name;
52 function formatName(value) {
54 var vals = value.split(/:/);
55 return '<a href="[% ctx.base_path %]/conify/global/acq/provider/'+vals[0]+'">'+vals[1]+'</a>';
63 <select dojoType="dijit.form.FilteringSelect" jsId="nameSelect">
64 <option value='owning_lib'>Owning Library</option>
65 <option value='quantity'>Quantity</option>
66 <option value='call_number'>Call Number</option>
67 <option value='fund_code'>Fund Code</option>
68 <option value='local_note'>Local Note</option>
69 <option value='price'>Price</option>
70 <option value='circ_modifier'>Circulation Modifier</option>
71 <option value='copy_location'>Copy Location</option>
72 <option value='collection_code'>Collection Code</option>
76 <div id='provider-list-div'>
77 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
78 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
81 <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button>
82 <button dojoType='dijit.form.Button' onClick='pListGrid.deleteSelected()'>Delete Selected</button>
86 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
87 <table jsId="pListGrid"
88 dojoType="openils.widget.AutoGrid"
89 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
91 defaultCellWidth='"auto"'
97 <tr><th field='name' get='getProviderName' formatter='formatName'/></tr>
103 <div id='provider-summary-pane'></div>
104 <div id='provider-details-div' style='height:600px'>
105 <div dojoType="dijit.layout.TabContainer" style='height:100%' jsId='providerTabs'>
107 <div dojoType="dijit.layout.ContentPane" title='Provider Address' select='true' id='provider-address'>
109 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
110 <div> Provider Address</div>
112 <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
113 <button dojoType='dijit.form.Button' onClick='paListGrid.deleteSelected()'>Delete Selected</button>
116 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:100px'>
117 <table jsId="paListGrid"
118 dojoType="openils.widget.AutoGrid"
119 fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
122 defaultCellWidth='"auto"'
128 <div dojoType="dijit.layout.ContentPane" title='Provider Contact' id='tab-pro-contact'>
129 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
130 <div> Provider Contact</div>
132 <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
133 <button dojoType='dijit.form.Button' onClick='pcListGrid.deleteSelected()'>Delete Selected</button>
136 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
137 <table jsId="pcListGrid"
138 dojoType="openils.widget.AutoGrid"
139 fieldOrder="['id', 'name', 'provider', 'role', 'email']"
140 defaultCellWidth='"auto"'
147 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
148 <div>Contact Address</div>
150 <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
151 <button dojoType='dijit.form.Button' onClick='pcaListGrid.deleteSelected()'>Delete Selected</button>
154 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
155 <table jsId="pcaListGrid"
156 dojoType="openils.widget.AutoGrid"
157 fieldOrder="['id', 'address_type', 'contact', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
160 defaultCellWidth='"auto"'
167 <div dojoType="dijit.layout.ContentPane" title='Attribute Definitions' id='tab-attr'>
168 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
169 <div> Attribute Definitions</div>
171 <button dojoType='dijit.form.Button' onClick='padListGrid.showCreateDialog()'>New Attribute Definition</button>
172 <button dojoType='dijit.form.Button' onClick='padListGrid.deleteSelected()'>Delete Selected</button>
175 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
176 <table jsId="padListGrid"
177 dojoType="openils.widget.AutoGrid"
178 fieldOrder="['id', 'provider', 'code', 'description', 'provider', 'ident', 'remove', 'tag', 'subfield', 'xpath']"
184 <th field="xpath" width='auto'/>
185 <th field="tag" name="Tag" get='getParsedTag'/>
186 <th field="subfield" name="Subfield" get='getParsedSubf'/>
193 <div dojoType="dijit.layout.ContentPane" title='Holding Subfield' id='tab-hold'>
194 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
195 <div>Holding Subfield</div>
197 <button dojoType='dijit.form.Button' onClick='phsListGrid.showCreateDialog()'>New Holding Subfield</button>
198 <button dojoType='dijit.form.Button' onClick='phsListGrid.deleteSelected()'>Delete Selected</button>
201 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
202 <table jsId="phsListGrid"
203 dojoType="openils.widget.AutoGrid"
204 fieldOrder="['id', 'provider', 'name', 'subfield']"
212 <div dojoType="dijit.layout.ContentPane" title="Invoices" id="tab-invoice">
213 <big class="oils-acq-basic-roomy"><strong>Invoices</strong></big>
214 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style="height:400px">
215 <table jsId="invListGrid"
216 dojoType="openils.widget.AutoGrid"
217 fieldOrder="['inv_ident', 'receiver', 'shipper']"
218 suppressFields="['id', 'provider']"
223 <th field="inv_ident" get="getInvIdent" formatter="formatInvIdent" />