Bugzilla – Attachment 14528 Details for
Bug 7674
Separate tabs for my holdings and others holdings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7674: Hide empty items tab
Bug-7674-Hide-empty-items-tab.patch (text/plain), 1.44 KB, created by
Julian Maurice
on 2013-01-10 16:05:27 UTC
(
hide
)
Description:
Bug 7674: Hide empty items tab
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2013-01-10 16:05:27 UTC
Size:
1.44 KB
patch
obsolete
>From b8718e1a8ea90e7f715af7d1839d2cdd38ff4dc9 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 10 Jan 2013 17:01:37 +0100 >Subject: [PATCH] Bug 7674: Hide empty items tab > >--- > catalogue/detail.pl | 8 ++++++++ > opac/opac-detail.pl | 8 ++++++++ > 2 files changed, 16 insertions(+), 0 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index 9379704..946454f 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -288,6 +288,14 @@ foreach my $item (@items) { > } > } > >+# Display only one tab if one items list is empty >+if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { >+ $template->param(SeparateHoldings => 0); >+ if (scalar(@itemloop) == 0) { >+ @itemloop = @otheritemloop; >+ } >+} >+ > $template->param( norequests => $norequests ); > $template->param( > MARCNOTES => $marcnotesarray, >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 22c922b..baf67ad 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -581,6 +581,14 @@ for my $itm (@items) { > } > } > >+# Display only one tab if one items list is empty >+if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { >+ $template->param(SeparateHoldings => 0); >+ if (scalar(@itemloop) == 0) { >+ @itemloop = @otheritemloop; >+ } >+} >+ > # 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 >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7674
:
12416
|
12417
|
12418
|
12433
|
12749
|
12750
|
13002
|
13003
|
13189
|
13190
|
13191
|
13204
|
13205
|
13206
|
13207
|
13215
|
13832
|
13833
|
13834
|
13835
|
13990
|
13991
|
13992
|
13993
|
14082
|
14111
|
14528
|
16493
|
16502