@@ -, +, @@
---
.../prog/en/modules/acqui/neworderempty.tt | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
@@ -7,6 +7,7 @@
[% USE AuthorisedValues %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
+[% PROCESS 'patron-search.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% IF ( ordernumber ) %]
@@ -198,14 +199,6 @@
$("#budget_id").change();
});
- function UserSearchPopup(f) {
- window.open(
- "/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,action&selection_type=add",
- 'UserSearchPopup',
- 'width=1024, height=768, scrollbars=yes, toolbar=no,'
- );
- }
-
function add_user(borrowernumber, borrowername) {
var ids = $("#users_ids").val();
if(ids.length > 0) {
@@ -232,6 +225,10 @@
$("#users_ids").val(ids.join(':'));
}
+
+ [% SET columns = ['cardnumber','name','category','branch','action'] %]
+ [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %]
+
[% Asset.css("css/addbiblio.css") | $raw %]
@@ -338,7 +335,7 @@
-
+ Add user
@@ -780,6 +777,8 @@
+[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %]
+
[% MACRO jsinclude BLOCK %]
[% END %]
--