View | Details | Raw Unified | Return to bug 14876
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Holds.pm (-5 / +3 lines)
Lines 27-39 This plugin is a home for various patron related Template Toolkit functions Link Here
27
to help streamline Koha and to move logic from the Perl code into the
27
to help streamline Koha and to move logic from the Perl code into the
28
Templates when it makes sense to do so.
28
Templates when it makes sense to do so.
29
29
30
To use, first, include the line '[% USE Borrowers %]' at the top
30
To use, first, include the line '[% USE Holds %]' at the top
31
of the template to enable the plugin.
31
of the template to enable the plugin.
32
32
33
For example: [% IF Borrowers.IsDebarred( borrower ) %]
33
For example: [% IF Holds.count( biblionumber ) %]
34
removes the necessity of setting a template variable in Perl code to
34
removes the necessity of setting a template variable in Perl code to
35
find out if a patron is restricted even if that variable is not evaluated
35
find out if a title has holds.
36
in any way in the script.
37
36
38
=cut
37
=cut
39
38
40
- 

Return to bug 14876