Bug 19949: Update popup window templates to use Bootstrap grid: Cataloging authority...
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Jan 2018 17:42:59 +0000 (17:42 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:21 +0000 (17:31 -0300)
This patch updates the cataloging authority search templates to use the
Bootstrap grid instead of the YUI grid.

To test you must have a MARC subfield configured with "Thesaurus"
linked to an authority type.

Apply the patch and go to Cataloging -> New record. Click the plugin
link for the field which is linked to authorities. In the popup window,
the search form and search results should look correct.

Signed-off-by: Zoe Bennett <zoebennett1308@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt

index 8a7459c..a7e1aaa 100644 (file)
@@ -2,27 +2,14 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Cataloging authority plugin</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
-#custom-doc { width:51.46em;*width:50.17em;min-width:675px; margin:auto; text-align:left; } 
-</style>
-
 </head>
+
 <body id="auth_auth_finder" class="auth">
-<div id="custom-doc" class="yui-t7">
-   
-   <div id="bd">
-       <div id="yui-main">
-       <div class="yui-b"><div class="yui-g">
+    <div class="container-fluid">
 
 <h1>Authority search</h1>
 [% INCLUDE 'auth-finder-search.inc' %]
 
-       </div>
-       </div>
-   </div>
-</div>
-</div>
-
 [% MACRO jsinclude BLOCK %]
     <script type="text/javascript">
         var index = "[% index %]";
index 3b99d6e..f8c86cf 100644 (file)
@@ -3,21 +3,14 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Cataloging authority plugin</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
-#custom-doc { width:51.46em;*width:50.17em;min-width:675px; margin:auto; text-align:left; } 
-</style>
 </head>
 
 <body id="auth_searchresultlist_auth" class="auth">
-<div id="custom-doc" class="yui-t7">
-
-   <div id="bd">
-           <div id="yui-main">
-                  <div class="yui-b"><div class="yui-g">
+    <div class="container-fluid">
 
        <h1>Authority search results</h1>
        [% INCLUDE 'auth-finder-search.inc' %]
-       [% IF ( total ) %]<div id="resultnumber">
+        [% IF ( total ) %]<div class="resultnumber">
             [% IF ( displayprev ) %]
                     <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranet&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
                         &lt;&lt;
@@ -70,7 +63,7 @@
             </table>
     
         </div>
-        <div id="resultnumber">
+        <div class="resultnumber">
             [% IF ( displayprev ) %]
                     <a href="auth_finder.pl?startfrom=[% startfromprev %]&amp;authtypecode=[% authtypecode %][% FOREACH searchdat IN searchdata %]&amp;[% searchdat.term %]=[% searchdat.val %][% END %]&amp;op=do_search&amp;type=intranetamp;&amp;index=[% index %]&amp;tagid=[% tagid %]&amp;orderby=[% orderby %]">
                         &lt;&lt;
                         &gt;&gt;</a>
                 [% END %]
         </div>[% END %]
-</div>
-</div>
-</div>
-</div>
-</div>
+    </div>
 
 [% MACRO jsinclude BLOCK %]
     <script type="text/javascript">