View | Details | Raw Unified | Return to bug 24819
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-1 / +1 lines)
Lines 370-376 Link Here
370
                <td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td>
370
                <td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td>
371
                <td id="tdsuggestedby"><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber | uri %]">[% suggestedby_surname | html %], [% suggestedby_firstname | html %] ([% suggestedby_cardnumber | html %])</a>  [% Branches.GetName( suggestedby_branchcode ) | html %] ([% suggestedby_description | html %])[% END %]
371
                <td id="tdsuggestedby"><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber | uri %]">[% suggestedby_surname | html %], [% suggestedby_firstname | html %] ([% suggestedby_cardnumber | html %])</a>  [% Branches.GetName( suggestedby_branchcode ) | html %] ([% suggestedby_description | html %])[% END %]
372
                </td>
372
                </td>
373
                <td><a href="#" id="suggestion_search" class="btn btn-default">Set to patron</a></td>
373
                <td><a href="#" id="suggestor_search" class="btn btn-default">Set to patron</a></td>
374
            </tr>
374
            </tr>
375
            <tr>
375
            <tr>
376
                <th><label for="managedon">Managed by:</label> </th>
376
                <th><label for="managedon">Managed by:</label> </th>
(-)a/koha-tmpl/intranet-tmpl/prog/js/suggestions.js (-2 / +2 lines)
Lines 9-17 function select_user(borrowernumber, borrower) { Link Here
9
}
9
}
10
10
11
$(document).ready(function(){
11
$(document).ready(function(){
12
    $('body').on('click', '#suggestion_search', function(e) {
12
    $('body').on('click', '#suggestor_search', function(e) {
13
        e.preventDefault();
13
        e.preventDefault();
14
        var newin = window.open('suggestion_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top');
14
        var newin = window.open('suggestor_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top');
15
    });
15
    });
16
16
17
});
17
});
(-)a/suggestion/suggestion_search.pl (-2 / +1 lines)
Lines 48-54 my $patron_categories = Koha::Patron::Categories->search_limited; Link Here
48
$template->param(
48
$template->param(
49
    view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results",
49
    view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results",
50
    columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ],
50
    columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ],
51
    json_template => 'suggestion/tables/suggestion_search.tt',
51
    json_template => 'suggestion/tables/suggestor_search.tt',
52
    selection_type => 'select',
52
    selection_type => 'select',
53
    alphabet        => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ),
53
    alphabet        => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ),
54
    categories      => $patron_categories,
54
    categories      => $patron_categories,
55
- 

Return to bug 24819