diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 1156a8d309..6795b17c4c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -350,72 +350,76 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
| Item type | -Location | -Collection | -Call Number | -Vol Info | -URL | -Copy | - -Serial Data | -Published | -Status | -Notes | -Date Due | -||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - | - | (&shelfbrowse_itemnumber=#shelfbrowser">Browse Shelf) | -- | "> | -- | - | - |
- Not for loan ()
-
- Not for loan ()
-
-
-
- Checked out to
-
- Checked out
+
+ This record has many physical items. &viewallitems=1">Click here to view them all. + +
|
+ + | + + | &item=">Fix Itemtype | + +
No physical items for this record
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 2eb819b949..0dfe23c363 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -126,6 +126,14 @@ foreach my $subscription (@subscriptions) { $dat->{'count'} = scalar(@items); +# If there is a lot of items, and the user has not decided +# to view them all yet, we first warn him +# TODO: The limit of 50 could be a syspref +my $viewallitems = $query->param('viewallitems'); +if ($dat->{'count'} >= 50 && !$viewallitems) { + $template->param('lotsofitems' => 1); +} + my $biblio_authorised_value_images = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $biblionumber, $record ) ); my $norequests = 1; @@ -607,7 +615,7 @@ switch (C4::Context->preference('opacSerialDefaultTab')) { case "holdings" { if ($dat->{'count'} > 0) { - $dat->{'defaultholdings'} = 1; + $defaulttab = 'holdings'; } else { # As this is the last option, we try other options if there are no items if ($subscriptionsnumber) {