Bugzilla – Attachment 7748 Details for
Bug 6488
opachiddenitems not working in master
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6488 - followup - fixes issue with bibs with no items and serials being suppressed
Bug-6488---followup---fixes-issue-with-bibs-with-n.patch (text/plain), 1.72 KB, created by
Jared Camins-Esakov
on 2012-02-18 16:31:38 UTC
(
hide
)
Description:
Bug 6488 - followup - fixes issue with bibs with no items and serials being suppressed
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-02-18 16:31:38 UTC
Size:
1.72 KB
patch
obsolete
>From 34f3d697a2b7301007a12c2fb2244b43df3272c3 Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >Date: Fri, 17 Feb 2012 14:00:53 -0600 >Subject: [PATCH] Bug 6488 - followup - fixes issue with bibs with no items and serials being suppressed >Content-Type: text/plain; charset="UTF-8" > >To test: > >* create a bib with no items >* update your index > serial records and your new bib with no items should be displayed. >* add something to the OPACHiddenItems syspref (I like itype: [BK] from the test data) >*** test both ways, with something in there and with the syspref empty. >* add an item to your new bib that would be suppressed >* update your index >* search for the bib > The item should not show >* change the item into a state where it would no longer be suppressed >* update your index >* search for the bib > The item should show in the opac >* just for fun, delete your item >* update your index >* Search for the bib - it should still display. > >I tested on MARC21 - please test UNIMARC as well. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > C4/Search.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index c4276a3..e326986 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1758,10 +1758,10 @@ sub searchResults { > } > } > } # notforloan, item level and biblioitem level >- >+ if ($items_count > 0) { > next if $is_opac && $hideatopac_count >= $items_count; > next if $hidelostitems && $itemlost_count >= $items_count; >- >+ } > my ( $availableitemscount, $onloanitemscount, $otheritemscount ); > for my $key ( sort keys %$onloan_items ) { > (++$onloanitemscount > $maxitems) and last; >-- >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 6488
:
5312
|
5314
|
5315
|
5351
|
5477
|
5767
|
6310
|
6687
|
6783
|
7284
|
7386
|
7745
|
7748
|
7957
|
8045
|
8054