webstaff: Integrate URL Verification UI
authorMike Rylander <mrylander@gmail.com>
Tue, 7 Apr 2015 18:48:15 +0000 (14:48 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:15 +0000 (13:39 -0400)
Will require modification to de-XUL-ify in a later sprint

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/cat/catalog/t_verifyurls.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_verifyurls.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_verifyurls.tt2
new file mode 100644 (file)
index 0000000..d34371d
--- /dev/null
@@ -0,0 +1 @@
+<eg-embed-frame save-space="150" url="verifyurls_url"></eg-embed-frame>
index 0dda526..de0b1cd 100644 (file)
               [% l('MARC Batch Edit') %]
             </a>
           </li>
+          <li class="divider"></li>
+          <li>
+            <a href="./cat/catalog/verifyURLs" target="_self">
+              <span class="glyphicon glyphicon-link"></span>
+              [% l('Link Checker') %]
+            </a>
+          </li>
        </ul>
       </li>
 
index 950079f..ab678eb 100644 (file)
@@ -66,6 +66,12 @@ angular.module('egCatalogApp', ['ui.bootstrap','ngRoute','egCoreMod','egGridMod'
         resolve : resolver
     });
 
+    $routeProvider.when('/cat/catalog/verifyURLs', {
+        templateUrl: './cat/catalog/t_verifyurls',
+        controller: 'URLVerifyCtrl',
+        resolve : resolver
+    });
+
     $routeProvider.otherwise({redirectTo : '/cat/catalog/index'});
 })
 
@@ -354,6 +360,12 @@ function($scope , $routeParams , $location , $q , egCore , egHolds,
 
 }])
 
+.controller('URLVerifyCtrl',
+       ['$scope','$location',
+function($scope , $location) {
+    $scope.verifyurls_url = $location.absUrl().replace(/\/staff.*/, '/url_verify/sessions');
+}])
+
 .controller('VandelayCtrl',
        ['$scope','$location',
 function($scope , $location) {