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 119-127
Link Here
|
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 |
[% END %] |
121 |
[% END %] |
|
|
122 |
[% IF CAN_user_acquisition_order_manage %] |
123 |
[% WRAPPER table_option value="aqorders" %]<span>Order lines</span>[% END %] |
124 |
[% END %] |
122 |
[% IF CAN_user_acquisition_edit_invoices %] |
125 |
[% IF CAN_user_acquisition_edit_invoices %] |
123 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
126 |
[% WRAPPER table_option value="aqinvoices" %]<span>Invoices</span>[% END %] |
124 |
[% END %] |
127 |
[% END %] |
125 |
[% IF CAN_user_serials_edit_subscription %] |
128 |
[% IF CAN_user_serials_edit_subscription %] |
126 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
129 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
127 |
[% END %] |
130 |
[% END %] |
Lines 145-150
Link Here
|
145 |
<th>Authorized value category</th> |
148 |
<th>Authorized value category</th> |
146 |
[% IF show_marcfield %] |
149 |
[% IF show_marcfield %] |
147 |
<th>MARC field</th> |
150 |
<th>MARC field</th> |
|
|
151 |
<th>MARC field mode</th> |
148 |
[% END %] |
152 |
[% END %] |
149 |
[% IF show_searchable %] |
153 |
[% IF show_searchable %] |
150 |
<th>Searchable</th> |
154 |
<th>Searchable</th> |
Lines 157-165
Link Here
|
157 |
<tr> |
161 |
<tr> |
158 |
<td>[% field.name | html %]</td> |
162 |
<td>[% field.name | html %]</td> |
159 |
<td>[% field.authorised_value_category | html %]</td> |
163 |
<td>[% field.authorised_value_category | html %]</td> |
160 |
[% IF show_marcfield %] |
164 |
<td> |
161 |
<td>[% field.marcfield | html %]</td> |
165 |
[% SWITCH field.marcfield_mode %] |
162 |
[% END %] |
166 |
[% CASE 'get' %]Get value from MARC record |
|
|
167 |
[% CASE 'set' %]Save value to MARC record |
168 |
[% END %] |
169 |
</td> |
163 |
[% IF show_searchable %] |
170 |
[% IF show_searchable %] |
164 |
<td> |
171 |
<td> |
165 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
172 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
Lines 203-208
Link Here
|
203 |
<label for="marcfield">MARC field: </label> |
210 |
<label for="marcfield">MARC field: </label> |
204 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
211 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
205 |
</li> |
212 |
</li> |
|
|
213 |
<li> |
214 |
<label for="marcfield_mode">MARC field mode: </label> |
215 |
<select id="marcfield_mode" name="marcfield_mode"> |
216 |
[% IF field.marcfield_mode == 'get' %] |
217 |
<option value="get" selected>Get value from MARC record (not modifiable)</option> |
218 |
[% ELSE %] |
219 |
<option value="get">Get value from MARC record (not modifiable)</option> |
220 |
[% END %] |
221 |
|
222 |
[% IF field.marcfield_mode == 'set' %] |
223 |
<option value="set" selected>Save value to MARC record</option> |
224 |
[% ELSE %] |
225 |
<option value="set">Save value to MARC record</option> |
226 |
[% END %] |
227 |
</select> |
228 |
</li> |
206 |
[% END %] |
229 |
[% END %] |
207 |
[% IF show_searchable %] |
230 |
[% IF show_searchable %] |
208 |
<li> |
231 |
<li> |