From 4a3267c2d1e914f4a5b985425f99e18ace34f1d1 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 4 Jan 2006 17:54:58 +0000 Subject: [PATCH] showing all volumes in the detail page now makes the cn browser show items for all locations regardless of the location of the selected CN. git-svn-id: svn://svn.open-ils.org/ILS/trunk@2601 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/rdetail.js | 10 +++++++--- .../web/opac/skin/default/xml/common/cn_browse.xml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 2a0ee4004b..31b9a0b89d 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -14,6 +14,7 @@ var statusRow = null; var numStatuses = null; var defaultCN; var callnumberCache = {}; +var rdetailLocalOnly = true; function rdetailDraw() { @@ -57,6 +58,7 @@ function rdetailShowLocalCopies() { if(!found) unHideMe(G.ui.rdetail.cp_info_none); hideMe(G.ui.rdetail.cp_info_local); unHideMe(G.ui.rdetail.cp_info_all); + rdetailLocalOnly = true; } function rdetailShowAllCopies() { @@ -68,6 +70,7 @@ function rdetailShowAllCopies() { hideMe(G.ui.rdetail.cp_info_all); unHideMe(G.ui.rdetail.cp_info_local); hideMe(G.ui.rdetail.cp_info_none); + rdetailLocalOnly = false; } @@ -156,7 +159,7 @@ function rdetailShowExtra(type) { case 'cn': unHideMe($('rdetail_cn_browse_div')); - rdetailShowCNBrowse(defaultCN); + rdetailShowCNBrowse(defaultCN, null, true); break; } } @@ -173,12 +176,12 @@ function rdetailBuildCNList() { function rdetailGatherCN() { var cn = getSelectorVal($('cn_browse_selector')); - rdetailShowCNBrowse( cn, getDepth() ); + rdetailShowCNBrowse( cn, getDepth(), true ); setSelector( $('cn_browse_selector'), cn ); } -function rdetailShowCNBrowse( cn, depth ) { +function rdetailShowCNBrowse( cn, depth, fromOnclick ) { if(!cn) return; rdetailBuildCNList(); setSelector( $('cn_browse_selector'), cn ); @@ -188,6 +191,7 @@ function rdetailShowCNBrowse( cn, depth ) { hideMe($('rdetail_marc_div')); unHideMe($('rdetail_cn_browse_div')); unHideMe($('cn_browse')); + if( !rdetailLocalOnly && ! fromOnclick ) depth = findOrgDepth(globalOrgTree); cnBrowseGo(cn, depth); } diff --git a/Open-ILS/web/opac/skin/default/xml/common/cn_browse.xml b/Open-ILS/web/opac/skin/default/xml/common/cn_browse.xml index 641dda9bf8..307c913982 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/cn_browse.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/cn_browse.xml @@ -10,10 +10,10 @@ << Previous Page + href='javascript:cnBrowsePrev();'><< Previous Page Shelf Browser Next Page>> + href='javascript:cnBrowseNext();'>Next Page>> -- 2.43.2