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

(-)a/C4/Search.pm (+4 lines)
Lines 1842-1847 sub searchResults { Link Here
1842
        my $item_in_transit_count = 0;
1842
        my $item_in_transit_count = 0;
1843
        my $can_place_holds       = 0;
1843
        my $can_place_holds       = 0;
1844
        my $item_onhold_count     = 0;
1844
        my $item_onhold_count     = 0;
1845
        my $notforloan_count      = 0;
1845
        my $items_count           = scalar(@fields);
1846
        my $items_count           = scalar(@fields);
1846
        my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults');
1847
        my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults');
1847
        my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1;
1848
        my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1;
Lines 1912-1917 sub searchResults { Link Here
1912
                # item is on order
1913
                # item is on order
1913
                if ( $item->{notforloan} < 0 ) {
1914
                if ( $item->{notforloan} < 0 ) {
1914
                    $ordered_count++;
1915
                    $ordered_count++;
1916
                } elsif ( $item->{notforloan} > 0 ) {
1917
                    $notforloan_count++;
1915
                }
1918
                }
1916
1919
1917
                # is item in transit?
1920
                # is item in transit?
Lines 2051-2056 sub searchResults { Link Here
2051
        $oldbiblio->{intransitcount}       = $item_in_transit_count;
2054
        $oldbiblio->{intransitcount}       = $item_in_transit_count;
2052
        $oldbiblio->{onholdcount}          = $item_onhold_count;
2055
        $oldbiblio->{onholdcount}          = $item_onhold_count;
2053
        $oldbiblio->{orderedcount}         = $ordered_count;
2056
        $oldbiblio->{orderedcount}         = $ordered_count;
2057
        $oldbiblio->{notforloancount}      = $notforloan_count;
2054
2058
2055
        if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) {
2059
        if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) {
2056
            my $fieldspec = C4::Context->preference("AlternateHoldingsField");
2060
            my $fieldspec = C4::Context->preference("AlternateHoldingsField");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-2 / +2 lines)
Lines 144-150 Link Here
144
                        [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount %]),<br /> [% END %]
144
                        [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount %]),<br /> [% END %]
145
                        [% IF ( resultsloo.withdrawncount ) %] Withdrawn ([% resultsloo.withdrawncount %]),<br /> [% END %]
145
                        [% IF ( resultsloo.withdrawncount ) %] Withdrawn ([% resultsloo.withdrawncount %]),<br /> [% END %]
146
                        [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount %])<br />[% END %]
146
                        [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount %])<br />[% END %]
147
                        [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount %])[% END %]
147
                        [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount %])<br/>[% END %]
148
                        [% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %]
148
                    </span>
149
                    </span>
149
                </td>
150
                </td>
150
				<td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a>
151
				<td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a>
151
- 

Return to bug 12419