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'] %] |
15 |
[% searchable_tables = ['subscription', 'aqbasket'] %] |
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 113-118
Link Here
|
113 |
<ul> |
113 |
<ul> |
114 |
[% IF CAN_user_acquisition_order_manage %] |
114 |
[% IF CAN_user_acquisition_order_manage %] |
115 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
115 |
[% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %] |
|
|
116 |
[% WRAPPER table_option value="aqorders" %]Order lines[% END %] |
116 |
[% END %] |
117 |
[% END %] |
117 |
[% IF CAN_user_serials_edit_subscription %] |
118 |
[% IF CAN_user_serials_edit_subscription %] |
118 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
119 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
Lines 135-140
Link Here
|
135 |
<th>Authorized value category</th> |
136 |
<th>Authorized value category</th> |
136 |
[% IF show_marcfield %] |
137 |
[% IF show_marcfield %] |
137 |
<th>MARC field</th> |
138 |
<th>MARC field</th> |
|
|
139 |
<th>MARC field mode</th> |
138 |
[% END %] |
140 |
[% END %] |
139 |
[% IF show_searchable %] |
141 |
[% IF show_searchable %] |
140 |
<th>Searchable</th> |
142 |
<th>Searchable</th> |
Lines 149-154
Link Here
|
149 |
<td>[% field.authorised_value_category | html %]</td> |
151 |
<td>[% field.authorised_value_category | html %]</td> |
150 |
[% IF show_marcfield %] |
152 |
[% IF show_marcfield %] |
151 |
<td>[% field.marcfield | html %]</td> |
153 |
<td>[% field.marcfield | html %]</td> |
|
|
154 |
<td> |
155 |
[% SWITCH field.marcfield_mode %] |
156 |
[% CASE 'get' %]Get value from MARC record |
157 |
[% CASE 'set' %]Save value to MARC record |
158 |
[% END %] |
159 |
</td> |
152 |
[% END %] |
160 |
[% END %] |
153 |
[% IF show_searchable %] |
161 |
[% IF show_searchable %] |
154 |
<td> |
162 |
<td> |
Lines 192-197
Link Here
|
192 |
<label for="marcfield">MARC field: </label> |
200 |
<label for="marcfield">MARC field: </label> |
193 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
201 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
194 |
</li> |
202 |
</li> |
|
|
203 |
<li> |
204 |
<label for="marcfield_mode">MARC field mode: </label> |
205 |
<select id="marcfield_mode" name="marcfield_mode"> |
206 |
[% IF field.marcfield_mode == 'get' %] |
207 |
<option value="get" selected>Get value from MARC record (not modifiable)</option> |
208 |
[% ELSE %] |
209 |
<option value="get">Get value from MARC record (not modifiable)</option> |
210 |
[% END %] |
211 |
|
212 |
[% IF field.marcfield_mode == 'set' %] |
213 |
<option value="set" selected>Save value to MARC record</option> |
214 |
[% ELSE %] |
215 |
<option value="set">Save value to MARC record</option> |
216 |
[% END %] |
217 |
</select> |
218 |
</li> |
195 |
[% END %] |
219 |
[% END %] |
196 |
[% IF show_searchable %] |
220 |
[% IF show_searchable %] |
197 |
<li> |
221 |
<li> |