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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt (-1 / +1 lines)
Lines 49-55 Link Here
49
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
49
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
50
                <h3>Click on the link to download the patron cards from the patron list.</h3>
50
                <h3>Click on the link to download the patron cards from the patron list.</h3>
51
                    <p>
51
                    <p>
52
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&amp;template_id=[% template_id %]&amp;layout_id=[% layout_id %]&amp;start_card=[% start_card %]">label_patronlist_[% patronlist_id %].pdf</a>
52
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&amp;template_id=[% template_id %]&amp;layout_id=[% layout_id %]&amp;layout_back_id=[% layout_back_id %]&amp;start_card=[% start_card %]">label_patronlist_[% patronlist_id %].pdf</a>
53
                    </p>
53
                    </p>
54
            [% ELSE %]
54
            [% ELSE %]
55
            <h3>
55
            <h3>
(-)a/patroncards/create-pdf.pl (-5 / +1 lines)
Lines 26-32 use Graphics::Magick; Link Here
26
use XML::Simple;
26
use XML::Simple;
27
use POSIX qw(ceil);
27
use POSIX qw(ceil);
28
use autouse 'Data::Dumper' => qw(Dumper);
28
use autouse 'Data::Dumper' => qw(Dumper);
29
use Clone qw(clone);
30
29
31
use C4::Debug;
30
use C4::Debug;
32
use C4::Context;
31
use C4::Context;
Lines 131-140 if ($layout_xml->{'page_side'} eq 'B') { # rearrange items on backside of page t Link Here
131
CARD_ITEMS:
130
CARD_ITEMS:
132
foreach my $item (@{$items}) {
131
foreach my $item (@{$items}) {
133
    if ($item) {
132
    if ($item) {
134
135
#my $print_layout_xml = $layout_back_xml;
136
        my $print_layout_xml = (( ($cardscount % 2  == 1) && ( $layout_back_id ) ) ?
133
        my $print_layout_xml = (( ($cardscount % 2  == 1) && ( $layout_back_id ) ) ?
137
            clone($layout_back_xml) : clone($layout_xml) );
134
            $layout_back_xml : $layout_xml );
138
135
139
        $cardscount ++;
136
        $cardscount ++;
140
        my $borrower_number = $item->{'borrower_number'};
137
        my $borrower_number = $item->{'borrower_number'};
141
- 

Return to bug 18465