1 [% WRAPPER default/base.tt2 %]
2 <script type="text/javascript" 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 %]';
7 function getInvIdent(rowIndex, item) {
10 "id": this.grid.store.getValue(item, "id"),
11 "name": this.grid.store.getValue(item, "inv_ident")
15 function formatInvIdent(o) {
16 return "<a href='" + oilsBasePath + "/acq/invoice/view/" + o.id + "'>" +
20 function getProviderName(rowIndex, item) {
22 var name = this.grid.store.getValue(item, 'name');
23 var id = this.grid.store.getValue(item, 'id');
24 return id + ':' + name;
27 function formatName(value) {
29 var vals = value.split(/:/);
30 return '<a href="[% ctx.base_path %]/conify/global/acq/provider/'+vals[0]+'">'+vals[1]+'</a>';
38 <select dojoType="dijit.form.FilteringSelect" jsId="nameSelect">
39 <option value='owning_lib'>Owning Library</option>
40 <option value='quantity'>Quantity</option>
41 <option value='call_number'>Call Number</option>
42 <option value='fund_code'>Fund Code</option>
43 <option value='local_note'>Local Note</option>
44 <option value='price'>Price</option>
45 <option value='circ_modifier'>Circulation Modifier</option>
46 <option value='copy_location'>Copy Location</option>
47 <option value='collection_code'>Collection Code</option>
51 <div id='provider-list-div'>
52 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
53 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
56 <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button>
57 <button dojoType='dijit.form.Button' onClick='pListGrid.deleteSelected()'>Delete Selected</button>
61 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
62 <table jsId="pListGrid"
63 dojoType="openils.widget.AutoGrid"
64 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
66 defaultCellWidth='"auto"'
72 <tr><th field='name' get='getProviderName' formatter='formatName'/></tr>
78 <div id='provider-summary-pane'></div>
79 <div id='provider-details-div' style='height:600px'>
80 <div dojoType="dijit.layout.TabContainer" style='height:100%' jsId='providerTabs'>
82 <div dojoType="dijit.layout.ContentPane" title='Provider Address' select='true' id='provider-address'>
84 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
85 <div> Provider Address</div>
87 <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
88 <button dojoType='dijit.form.Button' onClick='paListGrid.deleteSelected()'>Delete Selected</button>
91 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:100px'>
92 <table jsId="paListGrid"
93 dojoType="openils.widget.AutoGrid"
94 fieldOrder="['id', 'address_type', 'provider', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
97 defaultCellWidth='"auto"'
103 <div dojoType="dijit.layout.ContentPane" title='Provider Contact' id='tab-pro-contact'>
104 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
105 <div> Provider Contact</div>
107 <button dojoType='dijit.form.Button' onClick='pcListGrid.showCreateDialog()'>New Contact</button>
108 <button dojoType='dijit.form.Button' onClick='pcListGrid.deleteSelected()'>Delete Selected</button>
111 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
112 <table jsId="pcListGrid"
113 dojoType="openils.widget.AutoGrid"
114 fieldOrder="['id', 'name', 'provider', 'role', 'email']"
115 defaultCellWidth='"auto"'
122 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
123 <div>Contact Address</div>
125 <button dojoType='dijit.form.Button' onClick='pcaListGrid.showCreateDialog()'>New Contact Address</button>
126 <button dojoType='dijit.form.Button' onClick='pcaListGrid.deleteSelected()'>Delete Selected</button>
129 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
130 <table jsId="pcaListGrid"
131 dojoType="openils.widget.AutoGrid"
132 fieldOrder="['id', 'address_type', 'contact', 'street1', 'street2', 'city', 'county', 'state', 'country', 'post_code']"
135 defaultCellWidth='"auto"'
142 <div dojoType="dijit.layout.ContentPane" title='Attribute Definitions' id='tab-attr'>
143 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
144 <div> Attribute Definitions</div>
146 <button dojoType='dijit.form.Button' onClick='padListGrid.showCreateDialog()'>New Attribute Definition</button>
147 <button dojoType='dijit.form.Button' onClick='padListGrid.deleteSelected()'>Delete Selected</button>
150 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:200px'>
151 <table jsId="padListGrid"
152 dojoType="openils.widget.AutoGrid"
153 fieldOrder="['id', 'provider', 'code', 'description', 'provider', 'ident', 'remove', 'tag', 'subfield', 'xpath']"
159 <th field="xpath" width='auto'/>
160 <th field="tag" name="Tag" get='getParsedTag'/>
161 <th field="subfield" name="Subfield" get='getParsedSubf'/>
168 <div dojoType="dijit.layout.ContentPane" title='Holding Subfield' id='tab-hold'>
169 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
170 <div>Holding Subfield</div>
172 <button dojoType='dijit.form.Button' onClick='phsListGrid.showCreateDialog()'>New Holding Subfield</button>
173 <button dojoType='dijit.form.Button' onClick='phsListGrid.deleteSelected()'>Delete Selected</button>
176 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
177 <table jsId="phsListGrid"
178 dojoType="openils.widget.AutoGrid"
179 fieldOrder="['id', 'provider', 'name', 'subfield']"
187 <div dojoType="dijit.layout.ContentPane" title="Invoices" id="tab-invoice">
188 <big class="oils-acq-basic-roomy"><strong>Invoices</strong></big>
189 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style="height:400px">
190 <table jsId="invListGrid"
191 dojoType="openils.widget.AutoGrid"
192 fieldOrder="['inv_ident', 'receiver', 'shipper']"
193 suppressFields="['id', 'provider']"
199 <th field="inv_ident" get="getInvIdent" formatter="formatInvIdent" />