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

(-)a/catalogue/detail.pl (+8 lines)
Lines 288-293 foreach my $item (@items) { Link Here
288
    }
288
    }
289
}
289
}
290
290
291
# Display only one tab if one items list is empty
292
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
293
    $template->param(SeparateHoldings => 0);
294
    if (scalar(@itemloop) == 0) {
295
        @itemloop = @otheritemloop;
296
    }
297
}
298
291
$template->param( norequests => $norequests );
299
$template->param( norequests => $norequests );
292
$template->param(
300
$template->param(
293
	MARCNOTES   => $marcnotesarray,
301
	MARCNOTES   => $marcnotesarray,
(-)a/opac/opac-detail.pl (-1 / +8 lines)
Lines 581-586 for my $itm (@items) { Link Here
581
    }
581
    }
582
}
582
}
583
583
584
# Display only one tab if one items list is empty
585
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
586
    $template->param(SeparateHoldings => 0);
587
    if (scalar(@itemloop) == 0) {
588
        @itemloop = @otheritemloop;
589
    }
590
}
591
584
# If there is a lot of items, and the user has not decided
592
# If there is a lot of items, and the user has not decided
585
# to view them all yet, we first warn him
593
# to view them all yet, we first warn him
586
# TODO: The limit of 50 could be a syspref
594
# TODO: The limit of 50 could be a syspref
587
- 

Return to bug 7674