Lines 11-17
Link Here
|
11 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
</head> |
12 |
</head> |
13 |
|
13 |
|
14 |
[% marcfield_tables = ['subscription'] %] |
14 |
[% marcfield_tables = ['subscription', 'aqorders'] %] |
15 |
[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices'] %] |
15 |
[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices'] %] |
16 |
[% show_marcfield = marcfield_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] |
16 |
[% show_marcfield = marcfield_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] |
17 |
[% show_searchable = searchable_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] |
17 |
[% show_searchable = searchable_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] |
Lines 118-123
Link Here
|
118 |
<ul> |
118 |
<ul> |
119 |
[% IF CAN_user_acquisition_order_manage %] |
119 |
[% IF CAN_user_acquisition_order_manage %] |
120 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
120 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
|
|
121 |
[% WRAPPER table_option value="aqorders" %]<span>Order lines</span>[% END %] |
121 |
[% END %] |
122 |
[% END %] |
122 |
[% IF CAN_user_acquisition_edit_invoices %] |
123 |
[% IF CAN_user_acquisition_edit_invoices %] |
123 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
124 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
Lines 145-150
Link Here
|
145 |
<th>Authorized value category</th> |
146 |
<th>Authorized value category</th> |
146 |
[% IF show_marcfield %] |
147 |
[% IF show_marcfield %] |
147 |
<th>MARC field</th> |
148 |
<th>MARC field</th> |
|
|
149 |
<th>MARC field mode</th> |
148 |
[% END %] |
150 |
[% END %] |
149 |
[% IF show_searchable %] |
151 |
[% IF show_searchable %] |
150 |
<th>Searchable</th> |
152 |
<th>Searchable</th> |
Lines 159-164
Link Here
|
159 |
<td>[% field.authorised_value_category | html %]</td> |
161 |
<td>[% field.authorised_value_category | html %]</td> |
160 |
[% IF show_marcfield %] |
162 |
[% IF show_marcfield %] |
161 |
<td>[% field.marcfield | html %]</td> |
163 |
<td>[% field.marcfield | html %]</td> |
|
|
164 |
<td> |
165 |
[% SWITCH field.marcfield_mode %] |
166 |
[% CASE 'get' %]Get value from MARC record |
167 |
[% CASE 'set' %]Save value to MARC record |
168 |
[% END %] |
169 |
</td> |
162 |
[% END %] |
170 |
[% END %] |
163 |
[% IF show_searchable %] |
171 |
[% IF show_searchable %] |
164 |
<td> |
172 |
<td> |
Lines 203-208
Link Here
|
203 |
<label for="marcfield">MARC field: </label> |
211 |
<label for="marcfield">MARC field: </label> |
204 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
212 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
205 |
</li> |
213 |
</li> |
|
|
214 |
<li> |
215 |
<label for="marcfield_mode">MARC field mode: </label> |
216 |
<select id="marcfield_mode" name="marcfield_mode"> |
217 |
[% IF field.marcfield_mode == 'get' %] |
218 |
<option value="get" selected>Get value from MARC record (not modifiable)</option> |
219 |
[% ELSE %] |
220 |
<option value="get">Get value from MARC record (not modifiable)</option> |
221 |
[% END %] |
222 |
|
223 |
[% IF field.marcfield_mode == 'set' %] |
224 |
<option value="set" selected>Save value to MARC record</option> |
225 |
[% ELSE %] |
226 |
<option value="set">Save value to MARC record</option> |
227 |
[% END %] |
228 |
</select> |
229 |
</li> |
206 |
[% END %] |
230 |
[% END %] |
207 |
[% IF show_searchable %] |
231 |
[% IF show_searchable %] |
208 |
<li> |
232 |
<li> |