use C4::Auth qw( check_cookie_auth );
use Koha::Patrons;
use Koha::DateUtils qw( format_sqldatetime );
+use Koha::Libraries;
use JSON qw( to_json );
binmode STDOUT, ":encoding(UTF-8)";
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
-my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { catalogue => '1' } );
+my ( $auth_status ) = check_cookie_auth( $input->cookie('CGISESSID'), { catalogue => '1' } );
if ( $auth_status ne "ok" ) {
exit 0;
}
page => 1,
rows => 10,
order_by => [ 'surname', 'firstname' ],
+ prefetch => 'branchcode',
},
);
city => $b->city // '',
zipcode => $b->zipcode // '',
country => $b->country // '',
+ branchcode => $b->branchcode // '',
+ branchname => $b->library->branchname // '',
};
}