PINES Workaround for Broken Splash Page Search Box
authorTerran McCanna <tmccanna@georgialibraries.org>
Fri, 22 Jan 2021 18:00:06 +0000 (13:00 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 15 Sep 2021 18:51:34 +0000 (14:51 -0400)
With the change from 3.4 to 3.6, the search box on /eg/staff/splash
broke for multiple word searches. This workaround redirects the
old staff page to the Angular staff page.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/eg2/src/app/staff/splash.component.html
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/src/templates/staff/t_splash.tt2
Open-ILS/web/staff/index.html

index bd57834..69e9277 100644 (file)
@@ -3,7 +3,7 @@
     <div class="navbar-nav">
       <div class="nav-item">
         <a i18n class="nav-link with-material-icon" 
-          href="/eg/staff/"
+          href="/eg2/en-US/staff/splash"
           egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
           keySpec="alt+h" keyDesc="Navigate Home">
           <span class="material-icons">home</span>
index 323a6eb..83b5b7f 100644 (file)
@@ -33,7 +33,7 @@
     <div class="col-lg-4">
       <div class="card">
         <div class="card-header">
-          <h2 class="panel-title text-center" i18n>Circulation and Patrons</h2>
+          <h2 class="panel-title text-center" i18n style="text-decoration:none;">Circulation and Patrons</h2>
         </div>
         <div class="card-body">
           <div class="list-group">
@@ -75,7 +75,7 @@
     <div class="col-lg-4">
       <div class="card">
         <div class="card-header">
-          <h2 class="panel-title text-center" i18n>Item Search and Cataloging</h2>
+          <h2 class="panel-title text-center" i18n style="text-decoration:none;">Item Search and Cataloging</h2>
         </div>
         <div class="card-body">
           <div class="list-group">
     <div class="col-lg-4">
       <div class="card">
         <div class="card-header">
-          <h2 class="panel-title text-center" i18n>Administration</h2>
+          <h2 class="panel-title text-center" i18n style="text-decoration:none;">Administration</h2>
         </div>
         <div class="card-body">
           <div class="list-group">
index a00cf50..59d052c 100644 (file)
@@ -25,7 +25,7 @@
 
   <div class="navbar-collapse collapse" ng-class="!navCollapsed && 'in'">
     <ul class="nav navbar-nav">
-      <li><a href='./' title="[% l('Home') %]" target="_self"
+      <li><a href='/eg2/en-US/staff/splash' title="[% l('Home') %]" target="_self"
         class="glyphicon glyphicon-home"></a><li>
 
       <!-- search -->
index 5bd0436..ea33f94 100644 (file)
@@ -1,3 +1,9 @@
+<!-- Redirect to EG2 Splash Page -->
+        <script type="text/javascript">
+            window.location.href = "/eg2/en-US/staff/splash"
+        </script>
+
+
 <div class="container">
   <div class="row">
     <div class="col-md-12 text-center">
     </div>
   </div>
   <br/>
-  <div class="row" id="splash-nav">
 
-    <div class="col-md-4">
-      <div class="panel panel-success">
-        <div class="panel-heading">
-          <h2 class="panel-title text-center">[% l('Circulation and Patrons') %]</h2>
-        </div>
-        <div class="panel-body">
-          <div>
-            <a target="_self" href="./circ/patron/bcsearch">
-              <img src="[% ctx.media_prefix %]/images/portal/forward.png" alt="" role="presentation"/>
-              [% l('Check Out Items') %]
-            </a>
-          </div>
-          <div>
-            <a target="_self" href="./circ/checkin/index">
-              <img src="[% ctx.media_prefix %]/images/portal/back.png" alt="" role="presentation"/>
-              [% l('Check In Items') %]
-            </a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/registerpatron.png" alt="" role="presentation"/>
-            <a target="_self" href="./circ/patron/register">[% l('Register New Patron') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/retreivepatron.png" alt="" role="presentation"/>
-            <a target="_self" href="./circ/patron/search">[% l('Search For Patron By Name') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/holds.png" alt="" role="presentation"/>
-            <a target="_self" href="./circ/holds/pull">[% l('Pull List for Hold Requests') %]</a>
-          </div>
-        </div>
-      </div>
-    </div>
-
-    <div class="col-md-4">
-      <div class="panel panel-success">
-        <div class="panel-heading">
-          <h2 class="panel-title text-center">[% l('Item Search and Cataloging') %]</h2>
-        </div>
-        <div class="panel-body">
-          <div>
-            <div class="input-group">
-                <input focus-me="focus_search" 
-                    aria-label="[% l('Search for...') %]"
-                    class="form-control" ng-model="cat_query" type="text" 
-                    ng-keypress="catalog_search($event)"
-                    placeholder="[% l('Search for...') %]"/>
-                <span class="input-group-btn">
-                    <button class='btn btn-default' ng-click="catalog_search()">
-                        [% l('Search Catalog') %]
-                    </button>
-                </span>
-            </div>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/book.png" alt="" role="presentation"/>
-            <a target="_self" href="/eg2/staff/catalog/search">[% l('Advanced Search') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/book.png" alt="" role="presentation"/>
-            <a target="_self" href="./cat/item/search">[% l('Item Status / Display') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/batchimport.png" alt="" role="presentation"/>
-            <a target="_self" href="/eg2/staff/cat/vandelay/import">[% l('MARC Batch Import / Export') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/z3950.png" alt="" role="presentation"/>
-            <a target="_self" href="./cat/z3950/index">[% l('z39.50 Import') %]</a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/bucket.png" alt="" role="presentation"/>
-            <a target="_self" href="./cat/bucket/record/">[% l('Record Buckets') %]</a>
-          </div>
-          <div>
-            <a target="_self" href="./cat/bucket/copy/">
-              <img src="[% ctx.media_prefix %]/images/portal/bucket.png" alt="" role="presentation"/>
-              [% l('Item Buckets') %]
-            </a>
-          </div>
-        </div>
-      </div>
-    </div>
-
-    <div class="col-md-4">
-      <div class="panel panel-success">
-        <div class="panel-heading">
-          <div class="panel-title text-center">[% l('Administration and Documentation') %]</div>
-        </div>
-        <div class="panel-body">
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/helpdesk.png" alt="" role="presentation"/>
-            <a target="_new" href="https://help.georgialibraries.org">
-              [% l('GPLS Help Desk') %]
-            </a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/helpdesk.png" alt="" role="presentation"/>
-            <a target="_new" href="https://pines.georgialibraries.org/documentation/">
-              [% l('PINES Documentation') %]
-            </a>
-          </div>
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/reports.png" alt="" role="presentation"/>
-            <a target="_top" href="./reporter/legacy/main">
-              [% l('Reports') %]
-            </a>
-          </div>          
-          <div>
-            <img src="[% ctx.media_prefix %]/images/portal/reports.png"/>
-            <a target="_new" href="/report-creator/">
-              [% l('PINES Quick Reports') %]
-            </a>
-          </div>
-          <div>
-            <a target="_top" href="./admin/workstation/index">
-              <img src="[% ctx.media_prefix %]/images/portal/helpdesk.png" alt="" role="presentation"/>
-              [% l('Workstation Administration') %]
-            </a>
-          </div>
-        </div>
-      </div>
-    </div>
-
-  </div>
+<p>If you are not redirected automatically, follow the <a  href='/eg2/en-US/staff/splash'>link to the main page</a>.</p>
 </div>
index 278cdfe..28f53ff 100644 (file)
@@ -2,13 +2,13 @@
 <html lang="en-US">
     <head>
         <meta charset="UTF-8">
-        <meta http-equiv="refresh" content="1;url=/eg/staff">
+        <meta http-equiv="refresh" content="1;url=/eg2/en-US/staff/splash">
         <script type="text/javascript">
-            window.location.href = "/eg/staff"
+            window.location.href = "/eg2/en-US/staff/splash"
         </script>
         <title>Staff</title>
     </head>
     <body>
-        <p>If you are not redirected automatically, follow the <a  href='/eg/staff'>link to the main page</a>.</p>
+        <p>If you are not redirected automatically, follow the <a  href='/eg2/en-US/staff/splash'>link to the main page</a>.</p>
     </body>
 </html>
\ No newline at end of file