TPac: detail page distinct copy/holdings display depth
authorBill Erickson <berick@esilibrary.com>
Thu, 1 Mar 2012 15:18:49 +0000 (10:18 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 1 Mar 2012 15:50:34 +0000 (10:50 -0500)
commit7c0587dca886dd83c15a5ce816babce48e5e04db
treefd3717ee06e8d0f9e41e628a609d7223f79fb9c0
parent6a682e53597798aa7c5d8b04a7ddedb8193b40a3
TPac: detail page distinct copy/holdings display depth

This adds a new CGI param "copy_depth" which the record detail page uses
to determine which copies to display in the copy grid and what serials
holdings data to show.

The goal is to separate search depth from copy display depth for 2
main reasons:

1. When present, the search ou is set by the "logc" parameter (org +
copy location group).  The "Show" links in the record detail page use
"loc" to determine the copy location org (and subsequently the depth),
which is ignored in the presence of "logc".  In other words, we need
a different way to communicate which range of copies to display.

2. Separating copy depth and search depth allows us to display
search location-related summary information while at the same time
displaying a broader set of copy information.  For example, searching
BR1, we can see copy summary info for BR1, SYS1, and CONS even when
explicitly viewing copy information for CONS.  In other words, viewing a
broader set of copies for a record does not change the search/context
org unit, it only extends the set of copies to display.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/templates/opac/parts/record/copy_counts.tt2