window.open(
"/cgi-bin/koha/acqui/add_user_search.pl",
'UserSearchPopup',
'width=740, height=450, scrollbars=yes, toolbar=no,'
'width=840, height=500, scrollbars=yes, toolbar=no,'
);
}
[%- IF selection_type == 'select' -%]
"<a href=\"#\" style='cursor:pointer' onclick='select_user(\"[% data.borrowernumber %]\", [% To.json(data) | html %] );'>Select</a>"
[%- ELSE -%]
"<a href=\"#\" style='cursor:pointer' onclick='add_user(\"[% data.borrowernumber %]\", \"[% data.firstname %] [% data.surname %]\");'>Select</a>"
"<a href=\"#\" style='cursor:pointer' data-firstname=\"[% data.firstname %]\" data-surname=\"[% data.surname %]\" onclick=\"add_user('[% data.borrowernumber %]', $(this).data('firstname') + ' ' + $(this).data('surname'));\">Select</a>"
[%- END -%]
}[% UNLESS loop.last %],[% END %]
[% END %]
<input class="btn btn-default" type="submit" value="Search" />
</fieldset>
<form>
</form>
[% IF patrons_with_acq_perm_only %]
<div class="hint">Only staff with superlibrarian or acquisitions permissions (or order_manage permission if granular permissions are enabled) are returned in the search results</div>
-