[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. 711853d2cad00c73fa5da75fbcaa22abd4975486

Evergreen Git git at git.evergreen-ils.org
Fri Sep 15 17:42:38 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_12 has been updated
       via  711853d2cad00c73fa5da75fbcaa22abd4975486 (commit)
      from  b594538b00f4c7afa9d0bf58ed24401d3c764cbb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 711853d2cad00c73fa5da75fbcaa22abd4975486
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Mon Sep 11 15:43:18 2017 -0400

    LP#1708951: fix tabbing in webstaff catalog app for Firefox
    
    This patch works around an issue where Firefox appears to require
    that the iframe for the embedded OPAC not have a null catalog_url
    value. It also fixes an issue where navigating to the OPAC View tab
    after retrieving the record with a different default view set would
    cause it to jump back to that default view... the first time.
    
    To test:
    
    [1] In the web staff client, retrieve a bib record and set the default
        view to a tab other than 'OPAC View'.
    [2] Retrieve another bib by TCN or ID. Note that although the default tab
        will briefly display, the page will jump over to the OPAC view and
        display an empty record.
    [3] Apply the patch and repeat step 2. This time, it should display the
        record with the current default view.
    [4] Select the 'OPAC View' tab and verify that it loads the record details
        page.
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
    Signed-off-by: Beth Willis <willis at noblenet.org>
    Signed-off-by: Cesar Velez <cesar.velez at equinoxinitiative.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
index c8b4950..f1e6ba2 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
@@ -453,7 +453,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         $scope.$apply();
 
         if (!$scope.in_opac_call) {
-            if ($scope.record_id) {
+            if ($scope.record_id && !$scope.record_tab) {
                 $scope.default_tab = egCore.hatch.getLocalItem( 'eg.cat.default_record_tab' );
                 tab = $routeParams.record_tab || $scope.default_tab || 'catalog';
             } else {
@@ -1600,10 +1600,15 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
     // ------------------------------------------------------------------
     // Initialize the selected tab
 
+    // we explicitly initialize catalog_url because otherwise Firefox
+    // ends up setting it to $BASE_URL/{{url}}, which then messes
+    // things up. See LP#1708951
+    $scope.catalog_url = '';
+
     function init_cat_url() {
         // Set the initial catalog URL.  This only happens once.
         // The URL is otherwise generated through user navigation.
-        if ($scope.catalog_url) return; 
+        if ($scope.catalog_url) return;
 
         var url = $location.absUrl().replace(/\/staff.*/, '/opac/advanced');
 

-----------------------------------------------------------------------

Summary of changes:
 .../web/js/ui/default/staff/cat/catalog/app.js     |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list