<<

NAME

C4::Utils::DataTables::Members - module for using DataTables with patrons

SYNOPSIS

This module provides (one for the moment) routines used by the patrons search

FUNCTIONS

search

    my $dt_infos = C4::Utils::DataTables::Members->search($params);

$params is a hashref with some keys:

searchmember
  String to search in the borrowers sql table
firstletter
  Introduced to contain 1 letter but can contain more.
  The search will done on the borrowers.surname field
categorycode
  Search patrons with this categorycode
branchcode
  Search patrons with this branchcode
searchtype
  Can be 'contain' or 'start_with' (default value). Used for the searchmember parameter.
searchfieldstype
  Can be 'standard' (default value), 'email', 'borrowernumber', 'phone', 'address' or 'dateofbirth', 'sort1', 'sort2'
dt_params
  Is the reference of C4::Utils::DataTables::dt_get_params($input);

LICENSE

This file is part of Koha.

Copyright 2013 BibLibre

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Koha is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Koha; if not, see <http://www.gnu.org/licenses>.

<<