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

(-)a/Koha/Biblio.pm (+11 lines)
Lines 22-27 use Modern::Perl; Link Here
22
use Carp;
22
use Carp;
23
23
24
use Koha::Database;
24
use Koha::Database;
25
use Koha::Biblioitems;
25
26
26
use base qw(Koha::Object);
27
use base qw(Koha::Object);
27
28
Lines 35-40 Koha::Biblio - Koha Biblio Object class Link Here
35
36
36
=cut
37
=cut
37
38
39
=head3 biblioitem
40
41
=cut
42
43
sub biblioitem {
44
    my ( $self ) = @_;
45
46
    return Koha::Biblioitems->search( { biblionumber => $self->id } )->next();
47
}
48
38
=head3 type
49
=head3 type
39
50
40
=cut
51
=cut
(-)a/Koha/Borrower.pm (+13 lines)
Lines 22-27 use Modern::Perl; Link Here
22
use Carp;
22
use Carp;
23
23
24
use Koha::Database;
24
use Koha::Database;
25
use Koha::Checkouts;
25
26
26
use base qw(Koha::Object);
27
use base qw(Koha::Object);
27
28
Lines 35-40 Koha::Borrower - Koha Borrower Object class Link Here
35
36
36
=cut
37
=cut
37
38
39
=head3 checkouts
40
41
=cut
42
43
sub checkouts {
44
    my ( $self, $params, $attributes ) = @_;
45
46
    $params->{borrowernumber} = $self->id;
47
48
    return Koha::Checkouts->search( $params, $attributes );
49
}
50
38
=head3 type
51
=head3 type
39
52
40
=cut
53
=cut
(-)a/Koha/Checkout.pm (+119 lines)
Line 0 Link Here
1
package Koha::Checkout;
2
3
# Copyright ByWater Solutions 2015
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU General Public License as published by the Free Software
9
# Foundation; either version 3 of the License, or (at your option) any later
10
# version.
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License along
17
# with Koha; if not, write to the Free Software Foundation, Inc.,
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20
use Modern::Perl;
21
22
use Carp;
23
24
use C4::Overdues qw( GetFine );
25
use Koha::DateUtils qw( dt_from_string output_pref );
26
27
use Koha::Items;
28
29
use base qw(Koha::Object);
30
31
=head1 NAME
32
33
Koha::Issue - Koha Checkout object class
34
35
=head1 API
36
37
=head2 Class Methods
38
39
=cut
40
41
=head3 is_overdue
42
43
=cut
44
45
sub is_overdue {
46
    my ($self) = @_;
47
48
    unless ( defined $self->{_is_overdue} ) {
49
        my $today    = dt_from_string();
50
        my $date_due = dt_from_string( $self->date_due );
51
52
        $self->{_is_overdue} = DateTime->compare( $date_due, $today ) == -1;
53
    }
54
55
    return $self->{_is_overdue};
56
}
57
58
=cut
59
60
=head3 fine
61
62
Returns the amount in fines owed for this checkout, if any
63
64
=cut
65
66
sub fine {
67
    my ($self) = @_;
68
69
    return GetFine( $self->itemnumber, $self->borrowernumber );
70
}
71
72
=head3 is_from_today
73
74
Returns true if this checkout was either created today, or the item was renewed today
75
76
=cut
77
78
sub is_from_today {
79
    my ($self) = @_;
80
81
    unless ( defined $self->{_is_from_today} ) {
82
        my $today = output_pref( { dt => dt_from_string, dateformat => 'iso', dateonly => 1 } );
83
84
        $self->{_is_from_today} = (
85
                 substr( $self->issuedate, 0, 10 ) eq $today
86
              || substr( $self->lastreneweddate, 0, 10 ) eq $today
87
        );
88
    }
89
90
    return $self->{_is_from_today};
91
}
92
93
=head3 item
94
95
=cut
96
97
sub item {
98
    my ( $self ) = @_;
99
100
    $self->{_item} ||= Koha::Items->find( $self->itemnumber );
101
102
    return $self->{_item};
103
}
104
105
=head3 type
106
107
=cut
108
109
sub type {
110
    return 'Issue';
111
}
112
113
=head1 AUTHOR
114
115
Kyle M Hall <kyle@bywatersolutions.com>
116
117
=cut
118
119
1;
(-)a/Koha/Checkouts.pm (+62 lines)
Line 0 Link Here
1
package Koha::Checkouts;
2
3
# Copyright ByWater Solutions 2015
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU General Public License as published by the Free Software
9
# Foundation; either version 3 of the License, or (at your option) any later
10
# version.
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License along
17
# with Koha; if not, write to the Free Software Foundation, Inc.,
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20
use Modern::Perl;
21
22
use Carp;
23
24
use Koha::Database;
25
26
use Koha::Checkout;
27
28
use base qw(Koha::Objects);
29
30
=head1 NAME
31
32
Koha::Issues - Koha Checkout object set class
33
34
=head1 API
35
36
=head2 Class Methods
37
38
=cut
39
40
=head3 type
41
42
=cut
43
44
sub type {
45
    return 'Issue';
46
}
47
48
=head3 object_class
49
50
=cut
51
52
sub object_class {
53
    return 'Koha::Checkout';
54
}
55
56
=head1 AUTHOR
57
58
Kyle M Hall <kyle@bywatersolutions.com>
59
60
=cut
61
62
1;
(-)a/Koha/Item.pm (-2 / +13 lines)
Lines 56-62 sub effective_itemtype { Link Here
56
sub home_branch {
56
sub home_branch {
57
    my ($self) = @_;
57
    my ($self) = @_;
58
58
59
    $self->{_home_branch} ||= Koha::Branches->find( $self->homebranch() );
59
    $self->{_home_branch} ||= Koha::Branches->find( $self->homebranch );
60
60
61
    return $self->{_home_branch};
61
    return $self->{_home_branch};
62
}
62
}
Lines 68-78 sub home_branch { Link Here
68
sub holding_branch {
68
sub holding_branch {
69
    my ($self) = @_;
69
    my ($self) = @_;
70
70
71
    $self->{_holding_branch} ||= Koha::Branches->find( $self->holdingbranch() );
71
    $self->{_holding_branch} ||= Koha::Branches->find( $self->holdingbranch );
72
72
73
    return $self->{_holding_branch};
73
    return $self->{_holding_branch};
74
}
74
}
75
75
76
=head3 biblio
77
78
=cut
79
80
sub biblio {
81
    my ($self) = @_;
82
83
    $self->{_biblio} ||= Koha::Biblios->find( $self->biblionumber );
84
85
    return $self->{_biblio};
86
}
76
87
77
=head3 type
88
=head3 type
78
89
(-)a/installer/data/mysql/de-DE/mandatory/sample_notices.sql (-16 / +17 lines)
Lines 55-76 Fällig am: <<issues.date_due>><br /> Link Here
55
<hr />
55
<hr />
56
</div>
56
</div>
57
</news>', 1),
57
</news>', 1),
58
('circulation','ISSUEQSLIP','Kurzquittung','Kurzquittung', '<h2>Ausleihquittung</h2>
58
('circulation','ISSUEQSLIP','Kurzquittung','Kurzquittung', '[%- USE KohaDates -%]
59
Bibliothek: <<branches.branchname>> <br/>
59
<h3>[% branch.branchname %]</h3>
60
Ausleihe an: <<borrowers.firstname>>  <<borrowers.surname>> <br />
60
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
61
Ausweisnummer: <<borrowers.cardnumber>> <br />
61
([% borrower.cardnumber %]) <br />
62
<br />
62
63
<<today>><br />
63
[% today | $KohaDates %]<br />
64
<br />
64
65
<h4>Heutige Ausleihen</h4>
65
<h4>Checked Out Today</h4>
66
<checkedout>
66
[% FOREACH checkout IN borrower.checkouts %]
67
<p>
67
    [% IF checkout.is_from_today %]
68
<<biblio.title>> <br />
68
        <p>
69
Barcode: <<items.barcode>><br />
69
            [% checkout.item.biblio.title %] <br />
70
Signatur: <<items.itemcallnumber>><br/>
70
            Barcode: [% checkout.item.barcode %]<br />
71
Fällig am: <<issues.date_due>><br />
71
            Date due: [% checkout.date_due %]<br />
72
</p>
72
        </p>
73
</checkedout>', 1),
73
    [% END %]
74
[% END %]', 1),
74
('circulation','RESERVESLIP','Vormerkquittung','Vormerkquittung', '<h2>Vormerkung</h2>
75
('circulation','RESERVESLIP','Vormerkquittung','Vormerkquittung', '<h2>Vormerkung</h2>
75
<h4>Abholbereit seit: <<today>></h4>
76
<h4>Abholbereit seit: <<today>></h4>
76
<br/>
77
<br/>
(-)a/installer/data/mysql/en/mandatory/sample_notices.sql (-11 / +15 lines)
Lines 63-82 Date due: <<issues.date_due>><br /> Link Here
63
<hr />
63
<hr />
64
</div>
64
</div>
65
</news>', 1),
65
</news>', 1),
66
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
66
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]
67
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
67
<h3>[% branch.branchname %]</h3>
68
(<<borrowers.cardnumber>>) <br />
68
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
69
([% borrower.cardnumber %]) <br />
69
70
70
<<today>><br />
71
[% today | $KohaDates %]<br />
71
72
72
<h4>Checked Out Today</h4>
73
<h4>Checked Out Today</h4>
73
<checkedout>
74
[% FOREACH checkout IN borrower.checkouts %]
74
<p>
75
    [% IF checkout.is_from_today %]
75
<<biblio.title>> <br />
76
        <p>
76
Barcode: <<items.barcode>><br />
77
            [% checkout.item.biblio.title %] <br />
77
Date due: <<issues.date_due>><br />
78
            Barcode: [% checkout.item.barcode %]<br />
78
</p>
79
            Date due: [% checkout.date_due %]<br />
79
</checkedout>', 1),
80
        </p>
81
    [% END %]
82
[% END %]
83
', 1),
80
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
84
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
81
85
82
<h3> Transfer to/Hold in <<branches.branchname>></h3>
86
<h3> Transfer to/Hold in <<branches.branchname>></h3>
(-)a/installer/data/mysql/es-ES/mandatory/sample_notices.sql (-11 / +15 lines)
Lines 55-74 Date due: <<issues.date_due>><br /> Link Here
55
<hr />
55
<hr />
56
</div>
56
</div>
57
</news>', 1),
57
</news>', 1),
58
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
58
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]
59
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
59
<h3>[% branch.branchname %]</h3>
60
(<<borrowers.cardnumber>>) <br />
60
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
61
([% borrower.cardnumber %]) <br />
61
62
62
<<today>><br />
63
[% today | $KohaDates %]<br />
63
64
64
<h4>Checked Out Today</h4>
65
<h4>Checked Out Today</h4>
65
<checkedout>
66
[% FOREACH checkout IN borrower.checkouts %]
66
<p>
67
    [% IF checkout.is_from_today %]
67
<<biblio.title>> <br />
68
        <p>
68
Barcode: <<items.barcode>><br />
69
            [% checkout.item.biblio.title %] <br />
69
Date due: <<issues.date_due>><br />
70
            Barcode: [% checkout.item.barcode %]<br />
70
</p>
71
            Date due: [% checkout.date_due %]<br />
71
</checkedout>', 1),
72
        </p>
73
    [% END %]
74
[% END %]
75
', 1),
72
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
76
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
73
77
74
<h3> Transfer to/Hold in <<branches.branchname>></h3>
78
<h3> Transfer to/Hold in <<branches.branchname>></h3>
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql (-14 / +18 lines)
Lines 57-76 Retour le : <<issues.date_due>><br /> Link Here
57
<hr />
57
<hr />
58
</div>
58
</div>
59
</news>', 1),
59
</news>', 1),
60
('circulation','ISSUEQSLIP','Ticket rapide','Ticket rapide', '<h3><<branches.branchname>></h3>
60
('circulation','ISSUEQSLIP','Ticket rapide','Ticket rapide', '[%- USE KohaDates -%]
61
Prêts à <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
61
<h3>[% branch.branchname %]</h3>
62
(<<borrowers.cardnumber>>) <br />
62
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
63
63
([% borrower.cardnumber %]) <br />
64
<<today>><br />
64
65
65
[% today | $KohaDates %]<br />
66
<h4>Emprunts du jour</h4>
66
67
<checkedout>
67
<h4>Checked Out Today</h4>
68
<p>
68
[% FOREACH checkout IN borrower.checkouts %]
69
<<biblio.title>> <br />
69
    [% IF checkout.is_from_today %]
70
Code à barres : <<items.barcode>><br />
70
        <p>
71
Retour le : <<issues.date_due>><br />
71
            [% checkout.item.biblio.title %] <br />
72
</p>
72
            Barcode: [% checkout.item.barcode %]<br />
73
</checkedout>', 1),
73
            Date due: [% checkout.date_due %]<br />
74
        </p>
75
    [% END %]
76
[% END %]
77
', 1),
74
('circulation','RESERVESLIP','Ticket de réservation','Ticket de réservation', '<h5>Date : <<today>></h5>
78
('circulation','RESERVESLIP','Ticket de réservation','Ticket de réservation', '<h5>Date : <<today>></h5>
75
79
76
<h3> Transfert vers/Réservé à <<branches.branchname>></h3>
80
<h3> Transfert vers/Réservé à <<branches.branchname>></h3>
(-)a/installer/data/mysql/it-IT/necessari/notices.sql (-14 / +18 lines)
Lines 57-76 Data di scadenza: <<issues.date_due>><br /> Link Here
57
<hr />
57
<hr />
58
</div>
58
</div>
59
</news>', 1),
59
</news>', 1),
60
('circulation','ISSUEQSLIP','Ricevuta (sintetica)','Ricevuta (sintetica)', '<h3><<branches.branchname>></h3>
60
('circulation','ISSUEQSLIP','Ricevuta (sintetica)','Ricevuta (sintetica)', '[%- USE KohaDates -%]
61
Prestato/i a <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
61
<h3>[% branch.branchname %]</h3>
62
(<<borrowers.cardnumber>>) <br />
62
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
63
63
([% borrower.cardnumber %]) <br />
64
<<today>><br />
64
65
65
[% today | $KohaDates %]<br />
66
<h4>Prestati oggi</h4>
66
67
<checkedout>
67
<h4>Checked Out Today</h4>
68
<p>
68
[% FOREACH checkout IN borrower.checkouts %]
69
<<biblio.title>> <br />
69
    [% IF checkout.is_from_today %]
70
Codice a barre: <<items.barcode>><br />
70
        <p>
71
Data di scadenza: <<issues.date_due>><br />
71
            [% checkout.item.biblio.title %] <br />
72
</p>
72
            Barcode: [% checkout.item.barcode %]<br />
73
</checkedout>', 1),
73
            Date due: [% checkout.date_due %]<br />
74
        </p>
75
    [% END %]
76
[% END %]
77
', 1),
74
('circulation','RESERVESLIP','Reserve Slip','Ricevuta (prenotazione)', '<h5>Data: <<today>></h5>
78
('circulation','RESERVESLIP','Reserve Slip','Ricevuta (prenotazione)', '<h5>Data: <<today>></h5>
75
79
76
<h3> Trasferita a/Prenotata in <<branches.branchname>></h3>
80
<h3> Trasferita a/Prenotata in <<branches.branchname>></h3>
(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql (-14 / +18 lines)
Lines 78-97 Innleveringsfrist: <<issues.date_due>><br /> Link Here
78
<hr />
78
<hr />
79
</div>
79
</div>
80
</news>', 1),
80
</news>', 1),
81
('circulation','ISSUEQSLIP','Utlån (enkel)','Utlån (enkel)', '<h3><<branches.branchname>></h3>
81
('circulation','ISSUEQSLIP','Utlån (enkel)','Utlån (enkel)', '[%- USE KohaDates -%]
82
Utlånt til <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
82
<h3>[% branch.branchname %]</h3>
83
(<<borrowers.cardnumber>>) <br />
83
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
84
84
([% borrower.cardnumber %]) <br />
85
<<today>><br />
85
86
86
[% today | $KohaDates %]<br />
87
<h4>Utlånt i dag</h4>
87
88
<checkedout>
88
<h4>Checked Out Today</h4>
89
<p>
89
[% FOREACH checkout IN borrower.checkouts %]
90
<<biblio.title>> <br />
90
    [% IF checkout.is_from_today %]
91
Strekkode: <<items.barcode>><br />
91
        <p>
92
Innleveringsfrist: <<issues.date_due>><br />
92
            [% checkout.item.biblio.title %] <br />
93
</p>
93
            Barcode: [% checkout.item.barcode %]<br />
94
</checkedout>', 1),
94
            Date due: [% checkout.date_due %]<br />
95
        </p>
96
    [% END %]
97
[% END %]
98
', 1),
95
('circulation','RESERVESLIP','Reservasjon','Reservasjon', '<h5>Dato: <<today>></h5>
99
('circulation','RESERVESLIP','Reservasjon','Reservasjon', '<h5>Dato: <<today>></h5>
96
100
97
<h3> Overfør til/Reservasjon hos <<branches.branchname>></h3>
101
<h3> Overfør til/Reservasjon hos <<branches.branchname>></h3>
(-)a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql (-11 / +15 lines)
Lines 56-75 Date due: <<issues.date_due>><br /> Link Here
56
<hr />
56
<hr />
57
</div>
57
</div>
58
</news>', 1),
58
</news>', 1),
59
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
59
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]
60
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
60
<h3>[% branch.branchname %]</h3>
61
(<<borrowers.cardnumber>>) <br />
61
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
62
([% borrower.cardnumber %]) <br />
62
63
63
<<today>><br />
64
[% today | $KohaDates %]<br />
64
65
65
<h4>Checked Out Today</h4>
66
<h4>Checked Out Today</h4>
66
<checkedout>
67
[% FOREACH checkout IN borrower.checkouts %]
67
<p>
68
    [% IF checkout.is_from_today %]
68
<<biblio.title>> <br />
69
        <p>
69
Barcode: <<items.barcode>><br />
70
            [% checkout.item.biblio.title %] <br />
70
Date due: <<issues.date_due>><br />
71
            Barcode: [% checkout.item.barcode %]<br />
71
</p>
72
            Date due: [% checkout.date_due %]<br />
72
</checkedout>', 1),
73
        </p>
74
    [% END %]
75
[% END %]
76
', 1),
73
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
77
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
74
78
75
<h3> Transfer to/Hold in <<branches.branchname>></h3>
79
<h3> Transfer to/Hold in <<branches.branchname>></h3>
(-)a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql (-11 / +15 lines)
Lines 56-75 estamp>></p> Link Here
56
<hr />
56
<hr />
57
</div>
57
</div>
58
</news>', 1),
58
</news>', 1),
59
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
59
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]
60
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
60
<h3>[% branch.branchname %]</h3>
61
(<<borrowers.cardnumber>>) <br />
61
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
62
([% borrower.cardnumber %]) <br />
62
63
63
<<today>><br />
64
[% today | $KohaDates %]<br />
64
65
65
<h4>Checked Out Today</h4>
66
<h4>Checked Out Today</h4>
66
<checkedout>
67
[% FOREACH checkout IN borrower.checkouts %]
67
<p>
68
    [% IF checkout.is_from_today %]
68
<<biblio.title>> <br />
69
        <p>
69
Barcode: <<items.barcode>><br />
70
            [% checkout.item.biblio.title %] <br />
70
Date due: <<issues.date_due>><br />
71
            Barcode: [% checkout.item.barcode %]<br />
71
</p>
72
            Date due: [% checkout.date_due %]<br />
72
</checkedout>', 1),
73
        </p>
74
    [% END %]
75
[% END %]
76
', 1),
73
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
77
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
74
78
75
<h3> Transfer to/Hold in <<branches.branchname>></h3>
79
<h3> Transfer to/Hold in <<branches.branchname>></h3>
(-)a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql (-12 / +15 lines)
Lines 55-74 estamp>></p> Link Here
55
<hr />
55
<hr />
56
</div>
56
</div>
57
</news>', 1),
57
</news>', 1),
58
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
58
('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '[%- USE KohaDates -%]
59
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
59
<h3>[% branch.branchname %]</h3>
60
(<<borrowers.cardnumber>>) <br />
60
Checked out to [% borrower.title %] [% borrower.firstname %] [% borrower.initials %] [% borrower.surname %] <br />
61
([% borrower.cardnumber %]) <br />
61
62
62
<<today>><br />
63
[% today | $KohaDates %]<br />
63
64
64
<h4>Checked Out Today</h4>
65
<h4>Checked Out Today</h4>
65
<checkedout>
66
[% FOREACH checkout IN borrower.checkouts %]
66
<p>
67
    [% IF checkout.is_from_today %]
67
<<biblio.title>> <br />
68
        <p>
68
Barcode: <<items.barcode>><br />
69
            [% checkout.item.biblio.title %] <br />
69
Date due: <<issues.date_due>><br />
70
            Barcode: [% checkout.item.barcode %]<br />
70
</p>
71
            Date due: [% checkout.date_due %]<br />
71
</checkedout>', 1),
72
        </p>
73
    [% END %]
74
[% END %]
75
', 1),
72
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
76
('circulation','RESERVESLIP','Reserve Slip','Reserve Slip', '<h5>Date: <<today>></h5>
73
77
74
<h3> Transfer to/Hold in <<branches.branchname>></h3>
78
<h3> Transfer to/Hold in <<branches.branchname>></h3>
75
- 

Return to bug 15283