corrected POD for GetMember()
authorGalen Charlton <gmcharlt@gmail.com>
Fri, 5 Feb 2010 13:21:36 +0000 (08:21 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 5 Feb 2010 13:24:11 +0000 (08:24 -0500)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Members.pm

index 9007ece..98adc27 100644 (file)
@@ -515,15 +515,19 @@ sub patronflags {
 
   $borrower = &GetMember(%information);
 
-Looks up information about a patron (borrower) by either card number
-,firstname, or borrower number, depending on $type value.
-If C<$type> == 'cardnumber', C<&GetBorrower>
-searches by cardnumber then by firstname if not found in cardnumber; 
-otherwise, it searches by borrowernumber.
+Retrieve the first patron record meeting on criteria listed in the
+C<%information> hash, which should contain one or more
+pairs of borrowers column names and values, e.g.,
+
+   $borrower = GetMember(borrowernumber => id);
 
 C<&GetBorrower> returns a reference-to-hash whose keys are the fields of
 the C<borrowers> table in the Koha database.
 
+FIXME: GetMember() is used throughout the code as a lookup
+on a unique key such as the borrowernumber, but this meaning is not
+enforced in the routine itself.
+
 =cut
 
 #'