]> git.evergreen-ils.org Git - Evergreen.git/commit
TPac: detail page distinct copy/holdings display depth
authorBill Erickson <berick@esilibrary.com>
Thu, 1 Mar 2012 15:18:49 +0000 (10:18 -0500)
committerDan Scott <dan@coffeecode.net>
Sun, 11 Mar 2012 00:57:19 +0000 (19:57 -0500)
commit82868632f2478d1d554fb0433418e9227df3a52c
tree76aaa082cb0a5ec456aa95df3f6bd9fdbddaec5a
parent01e0058a678bc8642d12ded314b95dc66d85a3a8
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 "locg" 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 "locg".  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>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/templates/opac/parts/record/copy_counts.tt2