showing all volumes in the detail page now makes the cn browser show items for
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 17:54:58 +0000 (17:54 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 17:54:58 +0000 (17:54 +0000)
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
Open-ILS/web/opac/skin/default/xml/common/cn_browse.xml

index 2a0ee40..31b9a0b 100644 (file)
@@ -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);
 }
 
index 641dda9..307c913 100644 (file)
                        <thead>
                                <tr>
                                        <td><a id='cn_browse_next' class='classic_link' 
-                                               href='javascript:cnBrowsePrev();'>&lt;&lt; Previous Page</a></td>
+                                               href='javascript:cnBrowsePrev();'><b>&lt;&lt; Previous Page</b></a></td>
                                        <td colspan='1' align='center'>Shelf Browser</td>
                                        <td><a id='cn_browse_prev' class='classic_link' 
-                                               href='javascript:cnBrowseNext();'>Next Page&gt;&gt;</a></td>
+                                               href='javascript:cnBrowseNext();'><b>Next Page&gt;&gt;</b></a></td>
                                </tr>
                        </thead>
                        <tbody id='cn_tbody'>