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, 8 Mar 2012 14:12:36 +0000 (09:12 -0500)
commit65c7c5dfb7ce0959a1070024260469578d0c6afd
tree655fcc9a981d4830c1683a145ddd462c9a39abba
parentf7d30dcaefc792d7a80b884375755a9a9d5cb1b4
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