return wantarray ? $guarantees->as_list : $guarantees;
}
-=cut
-
=head3 type
=cut
return 'BorrowerRelationship';
}
+=head3 object_class
+
+=cut
+
sub object_class {
return 'Koha::Patron::Relationship';
}
return 'Borrower';
}
+=head3 object_class
+
+=cut
+
sub object_class {
return 'Koha::Patron';
}
</li>
[% IF relatives_issues_count %]
- <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count %] Relatives' checkouts</a></li>
+ <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
[% END %]
<li>
</li>
[% END %]
- [% UNLESS norelationship %]
- [% IF possible_relationships %]
+ [% UNLESS norelationship %]
+ [% IF possible_relationships %]
<li>
<label for="relationship">Relationship: </label>
<select class="relationship" name="relationship">
<option value=""></option>
[% FOREACH pr IN possible_relationships.split('\|') %]
[% IF pr == relationship %]
- <option value="[% pr %]" selected="selected">[% pr %]</option>
+ <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
[% ELSE %]
- <option value="[% pr %]">[% pr %]</option>
+ <option value="[% pr | html %]">[% pr | html %]</option>
[% END %]
[% END %]
</select>
</li>
- [% END %]
- [% END %]
+ [% END %]
+ [% END %]
[% UNLESS nophone %]
<li>
[% END %]
[% IF guarantor %]
- select_user( '[% guarantor.borrowernumber %]', [% To.json( guarantor.unblessed ) | $raw %] );
+ select_user( '[% guarantor.borrowernumber | html %]', [% To.json( guarantor.unblessed ) | $raw %] );
[% END %]
$("#cn_max").hide();
</li>
[% END %]
[% END %]
- </ol>
+ </ol>
</div>
</div>
</div>
$template->param( relationships => scalar $patron->guarantor_relationships ) if $patron;
my $guarantor_id = $input->param('guarantor_id');
-my $guarantor = Koha::Patrons->find( $guarantor_id ) if $guarantor_id;
+my $guarantor = undef;
+$guarantor = Koha::Patrons->find( $guarantor_id ) if $guarantor_id;
$template->param( guarantor => $guarantor );
my @delete_guarantor = $input->multi_param('delete_guarantor');
is( ref($holdingbranch), 'Koha::Library', "Got Koha::Library from holding_branch method" );
is( $holdingbranch->branchcode(), $library2->{branchcode}, "Home branch code matches holdingbranch" );
- my $biblio = $item->biblio();
+ $biblio = $item->biblio();
is( ref($biblio), 'Koha::Biblio', "Got Koha::Biblio from biblio method" );
is( $biblio->title(), 'Silence in the library', 'Title matches biblio title' );