Bug 32003: Add page-section to order search results and fix heading hierarchy
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 2 Jan 2023 22:50:48 +0000 (22:50 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 10:49:59 +0000 (12:49 +0200)
This adds a page-section to the order search results and moves
the former second h1 heading 'search results' to a h2 heading
below 'Order search', so we have a proper hierarchy

In acquisitions:
* Make sure you have an order with at least one order line
* Do an empty orders search
* Verify there are 2 h1 headings on the page and the results table doesn't
  have a white background
* Apply patch
* Verify the results list now has a white background and the second
  now smaller heading has been moved into this area

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt

index 91c4696..f9818a1 100644 (file)
@@ -62,8 +62,9 @@
                 [% END %]
 
 
-    [% IF ( order_loop ) %]<h1>Search results</h1>
+    [% IF ( order_loop ) %]
     <div id="acqui_histsearch" class="page-section">
+        <h2>Search results</h2>
         <table id="histsearcht">
             <thead>
                        <tr>