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

(-)a/C4/Search.pm (+4 lines)
Lines 1856-1861 sub searchResults { Link Here
1856
        my $item_in_transit_count = 0;
1856
        my $item_in_transit_count = 0;
1857
        my $can_place_holds       = 0;
1857
        my $can_place_holds       = 0;
1858
        my $item_onhold_count     = 0;
1858
        my $item_onhold_count     = 0;
1859
        my $notforloan_count      = 0;
1859
        my $items_count           = scalar(@fields);
1860
        my $items_count           = scalar(@fields);
1860
        my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults');
1861
        my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults');
1861
        my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1;
1862
        my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1;
Lines 1926-1931 sub searchResults { Link Here
1926
                # item is on order
1927
                # item is on order
1927
                if ( $item->{notforloan} < 0 ) {
1928
                if ( $item->{notforloan} < 0 ) {
1928
                    $ordered_count++;
1929
                    $ordered_count++;
1930
                } elsif ( $item->{notforloan} > 0 ) {
1931
                    $notforloan_count++;
1929
                }
1932
                }
1930
1933
1931
                # is item in transit?
1934
                # is item in transit?
Lines 2065-2070 sub searchResults { Link Here
2065
        $oldbiblio->{intransitcount}       = $item_in_transit_count;
2068
        $oldbiblio->{intransitcount}       = $item_in_transit_count;
2066
        $oldbiblio->{onholdcount}          = $item_onhold_count;
2069
        $oldbiblio->{onholdcount}          = $item_onhold_count;
2067
        $oldbiblio->{orderedcount}         = $ordered_count;
2070
        $oldbiblio->{orderedcount}         = $ordered_count;
2071
        $oldbiblio->{notforloancount}      = $notforloan_count;
2068
2072
2069
        if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) {
2073
        if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) {
2070
            my $fieldspec = C4::Context->preference("AlternateHoldingsField");
2074
            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