<dd>whether or not to return hold request information in the response</dd>
<dt><strong>show_loans</strong> (Optional, default 0)</dt>
<dd>whether or not to return loan information in the response</dd>
+ <dt><strong>show_attributes</strong> (Optional, default 0)</dt>
+ <dd>whether or not to return extended patron attributes information in the response</dd>
</dl>
<h4>Example call</h4>
<a href="ilsdi.pl?service=GetPatronInfo&patron_id=1&show_contact=0&show_loans=1">
my $schema = Koha::Database->schema;
$schema->storage->txn_begin;
+$schema->resultset( 'Issue' )->delete_all;
$schema->resultset( 'Borrower' )->delete_all;
$schema->resultset( 'BorrowerAttribute' )->delete_all;
$schema->resultset( 'BorrowerAttributeType' )->delete_all;
my $reply = C4::ILSDI::Services::GetPatronInfo( $query );
- # Build a structure for comparision:
+ # Build a structure for comparison:
my $cmp = {
category_code => $attr_type->{'category_code'},
class => $attr_type->{'class'},
};
# Check results:
- is_deeply( $reply->{'attributes'}, [ $cmp ] );
+ is_deeply( $reply->{'attributes'}, [ $cmp ], 'Test GetPatronInfo - show_attributes parameter' );
}
# Cleanup