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

(-)a/members/nl-search.pl (-2 / +7 lines)
Lines 42-47 use C4::Context; Link Here
42
use C4::Output;
42
use C4::Output;
43
use C4::Members;
43
use C4::Members;
44
use C4::Members::Attributes qw( SetBorrowerAttributes );
44
use C4::Members::Attributes qw( SetBorrowerAttributes );
45
use C4::Utils::DataTables::Members;
45
use Koha::NorwegianPatronDB qw( NLCheckSysprefs NLSearch NLDecodePin NLGetFirstname NLGetSurname NLSync );
46
use Koha::NorwegianPatronDB qw( NLCheckSysprefs NLSearch NLDecodePin NLGetFirstname NLGetSurname NLSync );
46
use Koha::Database;
47
use Koha::Database;
47
use Koha::DateUtils;
48
use Koha::DateUtils;
Lines 77-83 if ( $op && $op eq 'search' ) { Link Here
77
    my $identifier = $cgi->param('q');
78
    my $identifier = $cgi->param('q');
78
    if ( $identifier ) {
79
    if ( $identifier ) {
79
        # Local search
80
        # Local search
80
        my $local_results = Search( $identifier );
81
        my $local_results = C4::Utils::DataTables::Members::search(
82
            {
83
                searchmember => $identifier,
84
                dt_params => { iDisplayLength => -1 },
85
            }
86
        )->{patrons};
81
        $template->param( 'local_result' => $local_results );
87
        $template->param( 'local_result' => $local_results );
82
        # Search NL, unless we got at least one hit and further searching is
88
        # Search NL, unless we got at least one hit and further searching is
83
        # disabled
89
        # disabled
84
- 

Return to bug 14038