[Koha-patches] [PATCH] Bug 10587 - HTML errors on authority detail page in OPAC

Owen Leonard oleonard at myacpl.org
Fri Aug 9 17:44:26 CEST 2013


A validator check of the OPAC's authority detail returns a few minor
errors. This patch corrects the errors.

To test, apply the patch and run an OPAC authority detail page through
an HTML validator. There should be no errors which are specific to the
authorities detail template (as opposed to header and footer includes).
---
 .../opac-tmpl/prog/en/modules/opac-auth-detail.tt  |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt
index 8367b04..78bc5b9 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt
@@ -3,9 +3,9 @@
 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›  Entry
 [% INCLUDE 'doc-head-close.inc' %]
 [% IF ( displayhierarchy ) %]
-<script language="javascript" type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
+<script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
 [% END %]
-<script language="javascript" type="text/javascript">
+<script type="text/javascript">
 //<![CDATA[
 $(document).ready(function() {
     $('#authdescriptions').tabs();
@@ -33,7 +33,7 @@ $(document).ready(function() {
     <div id="yui-main">
     <div class="yui-b"><div class="yui-g">
 
-    <div id="views"><span class="view"><span id="Normalview">Normal view</span></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&marc=1">MARC view</a></span></div>
+    <div id="views"><span class="view"><span id="Normalview">Normal view</span></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&marc=1">MARC view</a></span></div>
 
 <div id="userauthdetails" class="container">
 
@@ -61,6 +61,7 @@ $(document).ready(function() {
         <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
         </li>
     [% END %]
+    </ul>
     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
     </div>
 [% END %]
@@ -107,5 +108,5 @@ $(document).ready(function() {
 </div>
 </div>
 </div>
-</div>
+
 [% INCLUDE 'opac-bottom.inc' %]
-- 
1.7.9.5


More information about the Koha-patches mailing list