|
Lines 12-18
Link Here
|
| 12 |
</head> |
12 |
</head> |
| 13 |
|
13 |
|
| 14 |
[% marcfield_tables = ['subscription'] %] |
14 |
[% marcfield_tables = ['subscription'] %] |
|
|
15 |
[% searchable_tables = ['subscription', 'aqbasket'] %] |
| 15 |
[% 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 %] |
| 16 |
|
18 |
|
| 17 |
<body id="ser_add_fields" class="ser"> |
19 |
<body id="ser_add_fields" class="ser"> |
| 18 |
[% INCLUDE 'header.inc' %] |
20 |
[% INCLUDE 'header.inc' %] |
|
Lines 102-108
Link Here
|
| 102 |
[% END %] |
104 |
[% END %] |
| 103 |
|
105 |
|
| 104 |
[% IF op == 'list_tables' %] |
106 |
[% IF op == 'list_tables' %] |
| 105 |
[% IF CAN_user_acquisitions_order_manage || CAN_user_serials_edit_subscription %] |
107 |
[% IF CAN_user_acquisitions_order_manage || CAN_user_serials_edit_subscription || CAN_user_updatecharges_remaining_permissions %] |
| 106 |
<h1>Additional fields</h1> |
108 |
<h1>Additional fields</h1> |
| 107 |
<p>Select a table:</p> |
109 |
<p>Select a table:</p> |
| 108 |
[% BLOCK table_option %] |
110 |
[% BLOCK table_option %] |
|
Lines 115-123
Link Here
|
| 115 |
[% IF CAN_user_serials_edit_subscription %] |
117 |
[% IF CAN_user_serials_edit_subscription %] |
| 116 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
118 |
[% WRAPPER table_option value="subscription" %]<span>Subscriptions</span>[% END %] |
| 117 |
[% END %] |
119 |
[% END %] |
|
|
120 |
[% IF CAN_user_updatecharges_remaining_permissions %] |
| 121 |
[% WRAPPER table_option value="accountlines:credit" %]Account lines (credit)[% END %] |
| 122 |
[% WRAPPER table_option value="accountlines:debit" %]Account lines (debit)[% END %] |
| 123 |
[% END %] |
| 118 |
</ul> |
124 |
</ul> |
| 119 |
[% ELSE %] |
125 |
[% ELSE %] |
| 120 |
Additional permissions in the acquisitions or serials modules are required for editing additional fields |
126 |
Additional permissions are required for editing additional fields |
| 121 |
[% END %] |
127 |
[% END %] |
| 122 |
[% ELSIF op == 'list' %] |
128 |
[% ELSIF op == 'list' %] |
| 123 |
<h1>Additional fields for '[% tablename | html %]'</h1> |
129 |
<h1>Additional fields for '[% tablename | html %]'</h1> |
|
Lines 130-136
Link Here
|
| 130 |
[% IF show_marcfield %] |
136 |
[% IF show_marcfield %] |
| 131 |
<th>MARC field</th> |
137 |
<th>MARC field</th> |
| 132 |
[% END %] |
138 |
[% END %] |
| 133 |
<th>Searchable</th> |
139 |
[% IF show_searchable %] |
|
|
140 |
<th>Searchable</th> |
| 141 |
[% END %] |
| 134 |
<th class="noExport">Actions</th> |
142 |
<th class="noExport">Actions</th> |
| 135 |
</tr> |
143 |
</tr> |
| 136 |
</thead> |
144 |
</thead> |
|
Lines 142-150
Link Here
|
| 142 |
[% IF show_marcfield %] |
150 |
[% IF show_marcfield %] |
| 143 |
<td>[% field.marcfield | html %]</td> |
151 |
<td>[% field.marcfield | html %]</td> |
| 144 |
[% END %] |
152 |
[% END %] |
| 145 |
<td> |
153 |
[% IF show_searchable %] |
| 146 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
154 |
<td> |
| 147 |
</td> |
155 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
|
|
156 |
</td> |
| 157 |
[% END %] |
| 148 |
<td class="actions"> |
158 |
<td class="actions"> |
| 149 |
<a class="btn btn-default btn-xs" href="?op=add_form&field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a> |
159 |
<a class="btn btn-default btn-xs" href="?op=add_form&field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a> |
| 150 |
<a class="confirmdelete btn btn-default btn-xs" href="?op=delete&field_id=[% field.id | uri %]&tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a> |
160 |
<a class="confirmdelete btn btn-default btn-xs" href="?op=delete&field_id=[% field.id | uri %]&tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a> |
|
Lines 183-196
Link Here
|
| 183 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
193 |
<input type="text" name="marcfield" id="marcfield" value="[% field.marcfield | html %]" /> |
| 184 |
</li> |
194 |
</li> |
| 185 |
[% END %] |
195 |
[% END %] |
| 186 |
<li> |
196 |
[% IF show_searchable %] |
| 187 |
<label for="searchable">Searchable: </label> |
197 |
<li> |
| 188 |
[% IF field.searchable %] |
198 |
<label for="searchable">Searchable: </label> |
| 189 |
<input type="checkbox" name="searchable" id="searchable" checked="checked" /> |
199 |
[% IF field.searchable %] |
| 190 |
[% ELSE %] |
200 |
<input type="checkbox" name="searchable" id="searchable" checked="checked" /> |
| 191 |
<input type="checkbox" name="searchable" id="searchable" /> |
201 |
[% ELSE %] |
| 192 |
[% END %] |
202 |
<input type="checkbox" name="searchable" id="searchable" /> |
| 193 |
</li> |
203 |
[% END %] |
|
|
204 |
</li> |
| 205 |
[% END %] |
| 194 |
</ol> |
206 |
</ol> |
| 195 |
</fieldset> |
207 |
</fieldset> |
| 196 |
<fieldset class="action"> |
208 |
<fieldset class="action"> |