Lines 169-175
Link Here
|
169 |
[% ELSE %] |
169 |
[% ELSE %] |
170 |
<input type="checkbox" id="staff_searchable" name="staff_searchable" /> |
170 |
<input type="checkbox" id="staff_searchable" name="staff_searchable" /> |
171 |
[% END %] |
171 |
[% END %] |
172 |
<span class="hint">Check to make this attribute staff_searchable in the staff patron search.</span> |
172 |
<span class="hint"> |
|
|
173 |
Check to make this attribute searchable in staff patron searches. If |
174 |
checked, this attribute will appear in patron search dropdowns. |
175 |
</span> |
176 |
</li> |
177 |
<li><label for="searched_by_default">Search by default: </label> |
178 |
[% IF attribute_type AND attribute_type.searched_by_default %] |
179 |
<input type="checkbox" id="searched_by_default" name="searched_by_default" checked="checked" /> |
180 |
[% ELSE %] |
181 |
<input type="checkbox" id="searched_by_default" name="searched_by_default" /> |
182 |
[% END %] |
183 |
<span class="hint"> |
184 |
If checked, this field will be included in 'Standard' patron searches. Requires |
185 |
field to be marked as searchable above |
186 |
</span> |
173 |
</li> |
187 |
</li> |
174 |
<li><label for="mandatory">Mandatory: </label> |
188 |
<li><label for="mandatory">Mandatory: </label> |
175 |
[% IF attribute_type AND attribute_type.mandatory %] |
189 |
[% IF attribute_type AND attribute_type.mandatory %] |
Lines 299-304
Link Here
|
299 |
<th>Library limitation</th> |
313 |
<th>Library limitation</th> |
300 |
<th>Authorized value category</th> |
314 |
<th>Authorized value category</th> |
301 |
<th>Mandatory</th> |
315 |
<th>Mandatory</th> |
|
|
316 |
<th>Searching</th> |
302 |
<th class="NoSort noExport">Actions</th> |
317 |
<th class="NoSort noExport">Actions</th> |
303 |
</tr> |
318 |
</tr> |
304 |
</thead> |
319 |
</thead> |
Lines 338-343
Link Here
|
338 |
<span>No</span> |
353 |
<span>No</span> |
339 |
[% END %] |
354 |
[% END %] |
340 |
</td> |
355 |
</td> |
|
|
356 |
<td> |
357 |
[% IF ( item.staff_searchable ) %] |
358 |
[% IF( item.searched_by_default ) %] |
359 |
<span>Searched by default</span> |
360 |
[% ELSE %] |
361 |
<span>Searchable</span> |
362 |
[% END %] |
363 |
[% ELSE %] |
364 |
<span>Not searchable</span> |
365 |
[% END %] |
366 |
</td> |
341 |
<td class="actions"> |
367 |
<td class="actions"> |
342 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&code=[% item.code | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
368 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&code=[% item.code | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
343 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&code=[% item.code | uri %]"><i class="fa fa-trash-can"></i> Delete</a> |
369 |
<a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&code=[% item.code | uri %]"><i class="fa fa-trash-can"></i> Delete</a> |
Lines 372-377
Link Here
|
372 |
[% INCLUDE 'columns_settings.inc' %] |
398 |
[% INCLUDE 'columns_settings.inc' %] |
373 |
<script> |
399 |
<script> |
374 |
$(document).ready(function() { |
400 |
$(document).ready(function() { |
|
|
401 |
|
402 |
function toggle_search_default(){ |
403 |
if( $("#staff_searchable").is(":checked") ){ |
404 |
$("#searched_by_default").prop('disabled', false); |
405 |
} else { |
406 |
|
407 |
$("#searched_by_default").prop('disabled', true).prop('checked',false); |
408 |
} |
409 |
} |
410 |
$("#staff_searchable").on('change',function(){ |
411 |
toggle_search_default(); |
412 |
}); |
413 |
|
414 |
toggle_search_default(); |
415 |
|
416 |
|
375 |
if ( $("#branches option:selected").length < 1 ) { |
417 |
if ( $("#branches option:selected").length < 1 ) { |
376 |
$("#branches option:first").attr("selected", "selected"); |
418 |
$("#branches option:first").attr("selected", "selected"); |
377 |
} |
419 |
} |