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

(-)a/circ/ysearch.pl (+3 lines)
Lines 30-35 use C4::Context; Link Here
30
use C4::Auth qw( check_cookie_auth );
30
use C4::Auth qw( check_cookie_auth );
31
use Koha::Patrons;
31
use Koha::Patrons;
32
use Koha::DateUtils qw( format_sqldatetime );
32
use Koha::DateUtils qw( format_sqldatetime );
33
use Koha::Libraries;
33
34
34
use JSON qw( to_json );
35
use JSON qw( to_json );
35
36
Lines 79-84 my $borrowers_rs = Koha::Patrons->search_limited( Link Here
79
80
80
my @borrowers;
81
my @borrowers;
81
while ( my $b = $borrowers_rs->next ) {
82
while ( my $b = $borrowers_rs->next ) {
83
    my $library = Koha::Libraries->find( $b->branchcode );
82
    push @borrowers,
84
    push @borrowers,
83
      { borrowernumber => $b->borrowernumber,
85
      { borrowernumber => $b->borrowernumber,
84
        surname        => $b->surname    // '',
86
        surname        => $b->surname    // '',
Lines 91-96 while ( my $b = $borrowers_rs->next ) { Link Here
91
        zipcode        => $b->zipcode    // '',
93
        zipcode        => $b->zipcode    // '',
92
        country        => $b->country    // '',
94
        country        => $b->country    // '',
93
        branchcode     => $b->branchcode // '',
95
        branchcode     => $b->branchcode // '',
96
        branchname     => $library->branchname // '',
94
      };
97
      };
95
}
98
}
96
99
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-2 / +1 lines)
Lines 105-111 Link Here
105
                                    + ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " "
105
                                    + ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " "
106
                                    + ( item.country ? item.country.escapeHtml() : "" )
106
                                    + ( item.country ? item.country.escapeHtml() : "" )
107
                                    + "</small></a>";
107
                                    + "</small></a>";
108
                        itemString += " <span class=\"ac-library\">" + item.branchcode + "</span> " + "</a>";
108
                        itemString += " <span class=\"ac-library\">" + item.branchname + "</span> " + "</a>";
109
                        return $( "<li></li>" )
109
                        return $( "<li></li>" )
110
                        .addClass( loggedInClass )
110
                        .addClass( loggedInClass )
111
                        .data( "ui-autocomplete-item", item )
111
                        .data( "ui-autocomplete-item", item )
112
- 

Return to bug 10902