|
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 105-110
Link Here
|
| 105 |
<ul> |
105 |
<ul> |
| 106 |
[% IF CAN_user_acquisition_order_manage %] |
106 |
[% IF CAN_user_acquisition_order_manage %] |
| 107 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
107 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
|
|
108 |
[% WRAPPER table_option value="aqorders" %]<span>Order lines</span>[% END %] |
| 108 |
[% END %] |
109 |
[% END %] |
| 109 |
[% IF CAN_user_acquisition_edit_invoices %] |
110 |
[% IF CAN_user_acquisition_edit_invoices %] |
| 110 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
111 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
|
Lines 132-137
Link Here
|
| 132 |
<th>Authorized value category</th> |
133 |
<th>Authorized value category</th> |
| 133 |
[% IF show_marcfield %] |
134 |
[% IF show_marcfield %] |
| 134 |
<th>MARC field</th> |
135 |
<th>MARC field</th> |
|
|
136 |
<th>MARC field mode</th> |
| 135 |
[% END %] |
137 |
[% END %] |
| 136 |
[% IF show_searchable %] |
138 |
[% IF show_searchable %] |
| 137 |
<th>Searchable</th> |
139 |
<th>Searchable</th> |
|
Lines 146-151
Link Here
|
| 146 |
<td>[% field.authorised_value_category | html %]</td> |
148 |
<td>[% field.authorised_value_category | html %]</td> |
| 147 |
[% IF show_marcfield %] |
149 |
[% IF show_marcfield %] |
| 148 |
<td>[% field.marcfield | html %]</td> |
150 |
<td>[% field.marcfield | html %]</td> |
|
|
151 |
<td> |
| 152 |
[% SWITCH field.marcfield_mode %] |
| 153 |
[% CASE 'get' %]Get value from MARC record |
| 154 |
[% CASE 'set' %]Save value to MARC record |
| 155 |
[% END %] |
| 156 |
</td> |
| 149 |
[% END %] |
157 |
[% END %] |
| 150 |
[% IF show_searchable %] |
158 |
[% IF show_searchable %] |
| 151 |
<td> |
159 |
<td> |
|
Lines 190-195
Link Here
|
| 190 |
<label for="marcfield">MARC field: </label> |
198 |
<label for="marcfield">MARC field: </label> |
| 191 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
199 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
| 192 |
</li> |
200 |
</li> |
|
|
201 |
<li> |
| 202 |
<label for="marcfield_mode">MARC field mode: </label> |
| 203 |
<select id="marcfield_mode" name="marcfield_mode"> |
| 204 |
[% IF field.marcfield_mode == 'get' %] |
| 205 |
<option value="get" selected>Get value from MARC record (not modifiable)</option> |
| 206 |
[% ELSE %] |
| 207 |
<option value="get">Get value from MARC record (not modifiable)</option> |
| 208 |
[% END %] |
| 209 |
|
| 210 |
[% IF field.marcfield_mode == 'set' %] |
| 211 |
<option value="set" selected>Save value to MARC record</option> |
| 212 |
[% ELSE %] |
| 213 |
<option value="set">Save value to MARC record</option> |
| 214 |
[% END %] |
| 215 |
</select> |
| 216 |
</li> |
| 193 |
[% END %] |
217 |
[% END %] |
| 194 |
[% IF show_searchable %] |
218 |
[% IF show_searchable %] |
| 195 |
<li> |
219 |
<li> |