Browse the Catalog bug with the OPAC

Bug #1746584 reported by Steve Callender
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
High
Unassigned
3.0
Fix Released
High
Unassigned

Bug Description

Tested in 3.0.3 but looks to affect all of 3.0.

When going to the OPAC and then going to "Browse the Catalog", searches are giving an error.

The error states,

An error occurred browsing records. Please try again in a moment or report the issue to library staff.

Doing the same search in the staff client works. It looks like the difference in searching is related to a flag that designates one as a staff client search, other other as not.

For example, this works,

select metabib.browse( 'title', 'fish', '1', NULL, 't', NULL, '10');

This does not,

select metabib.browse( 'title', 'fish', '1', NULL, 'f', NULL, '10');

The staff flag is utilized in metabib.staged_browse as follows,

IF NOT staff THEN
    SELECT x.c_attrs, x.b_attrs INTO c_tests, b_tests FROM asset.patron_default_visibility_mask() x;
END IF;

Steve

Revision history for this message
Terran McCanna (tmccanna) wrote :

We're not having problems with the browse part of the OPAC in 3.0.2.

See: http://gapines.org/eg/opac/browse?blimit=20&qtype=author&bterm=m&locg=1

Revision history for this message
Kathy Lussier (klussier) wrote :

I see the same error on one of my test servers running master. I suspect it's related to one of the visibility fixes that made it into 3.0.3.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Mike Rylander (mrylander) wrote :

DING DING DING!

Kathy, you're exactly right. Branch forthcoming...

Changed in evergreen:
assignee: nobody → Mike Rylander (mrylander)
Revision history for this message
Mike Rylander (mrylander) wrote :

Aforementioned branch is here: http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/miker/lp-1746584-browse-visibility-test

From the commit message:

With updates to address visibility testing issues for LURIs, a change was made
to allow the default bib tests to supply the most appropriate query_int
operator with which to join those to non-default tests. The browse code,
however, is all database-level and was not adjusted with the Perl code that
implements general search. This commit addresses that issue by acknowledging
that the bib vis testing code to provide its own operator, either | or &, as
appropriate to the actual default test values.

tags: added: pull search
tags: added: pullrequest
removed: pull
Changed in evergreen:
assignee: Mike Rylander (mrylander) → nobody
milestone: none → 3.0.4
Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I was going to look into this on a vm with 3.0.3 and production data, but turns out the db upgrade and ingest is going to take too long.

FWIW, I was not able to reproduce this on master with concerto data, but none of my searches turned up records with located URIs. Are there any in concerto?

Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
Revision history for this message
Kathy Lussier (klussier) wrote :

This bug is unrelated to Located URIs. In my testing, also done with concerto data, the error occurred in the public catalog with any browse search.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I'll give it another go. I think it was not happening for me because I had been using the web staff client in the same browser where I tried to reproduce this.

Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
Changed in evergreen:
milestone: 3.0.4 → 3.1-beta
assignee: Jason Stephenson (jstephenson) → nobody
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Mike's branch works for me, so I pushed it to master and rel_3_0.

Thanks, everyone!

Changed in evergreen:
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.