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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt (-2 / +4 lines)
Lines 308-320 function enableCheckboxActions(){ Link Here
308
        </tr>[% END %]
308
        </tr>[% END %]
309
309
310
        <tr>
310
        <tr>
311
            <th scope="row">Location(s)</th>
311
            <th scope="row">Location(s)(Status)</th>
312
            <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
312
            <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
313
                            <li>
313
                            <li>
314
                                <strong>[% ITEM_RESULT.homebranch %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
314
                                <strong>[% ITEM_RESULT.homebranch %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
315
                                [% IF ( ITEM_RESULT.itemcallnumber ) %]
315
                                [% IF ( ITEM_RESULT.itemcallnumber ) %]
316
                                    ([% ITEM_RESULT.itemcallnumber %])
316
                                    ([% ITEM_RESULT.itemcallnumber %])
317
                                [% END %]
317
                                [% END %]
318
                                ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
318
                            </li>
319
                            </li>
319
                            [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td>
320
                            [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td>
320
        </tr>
321
        </tr>
Lines 353-359 function enableCheckboxActions(){ Link Here
353
	    <th>Title</th>
354
	    <th>Title</th>
354
	    <th>Author</th>
355
	    <th>Author</th>
355
	    <th>Year</th>
356
	    <th>Year</th>
356
	    <th>Location</th>
357
	    <th>Location(Status)</th>
357
        </tr></thead>
358
        </tr></thead>
358
359
359
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
360
        [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
Lines 388-393 function enableCheckboxActions(){ Link Here
388
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
389
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
389
                            ([% ITEM_RESULT.itemcallnumber %])
390
                            ([% ITEM_RESULT.itemcallnumber %])
390
                        [% END %]
391
                        [% END %]
392
                        ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
391
                    </li>
393
                    </li>
392
                    [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td>
394
                    [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td>
393
            </tr>
395
            </tr>
(-)a/opac/opac-basket.pl (-2 / +12 lines)
Lines 21-27 use warnings; Link Here
21
use CGI;
21
use CGI;
22
use C4::Koha;
22
use C4::Koha;
23
use C4::Biblio;
23
use C4::Biblio;
24
use C4::Branch;
24
use C4::Items;
25
use C4::Items;
26
use C4::Circulation;
25
use C4::Auth;
27
use C4::Auth;
26
use C4::Output;
28
use C4::Output;
27
29
Lines 68-74 foreach my $biblionumber ( @bibs ) { Link Here
68
    my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
70
    my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
69
    my $marcseriesarray  = GetMarcSeries  ($record,$marcflavour);
71
    my $marcseriesarray  = GetMarcSeries  ($record,$marcflavour);
70
    my $marcurlsarray    = GetMarcUrls    ($record,$marcflavour);
72
    my $marcurlsarray    = GetMarcUrls    ($record,$marcflavour);
71
    my @items            = &GetItemsLocationInfo( $biblionumber );
73
    my @items            = &GetItemsInfo( $biblionumber );
72
    my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
74
    my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
73
75
74
    my $hasauthors = 0;
76
    my $hasauthors = 0;
Lines 88-93 foreach my $biblionumber ( @bibs ) { Link Here
88
        $dat->{'even'} = 1;
90
        $dat->{'even'} = 1;
89
    }
91
    }
90
92
93
my $branches = GetBranches();
94
    for my $itm (@items) {
95
        my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($itm->{itemnumber});
96
        if ( defined( $transfertwhen ) && $transfertwhen ne '' ) {
97
             $itm->{transfertwhen} = $transfertwhen;
98
             $itm->{transfertfrom} = $branches->{$transfertfrom}{branchname};
99
             $itm->{transfertto}   = $branches->{$transfertto}{branchname};
100
        }
101
    }
91
    $num++;
102
    $num++;
92
    $dat->{biblionumber} = $biblionumber;
103
    $dat->{biblionumber} = $biblionumber;
93
    $dat->{ITEM_RESULTS}   = \@items;
104
    $dat->{ITEM_RESULTS}   = \@items;
94
- 

Return to bug 7570