[Koha-patches] [PATCH] Bug 10008 - Serials search results 'Opened' tab should be 'Open'

Owen Leonard oleonard at myacpl.org
Tue Apr 9 21:33:30 CEST 2013


The searials search results "Opened" tab should be labeled "Open." This
patch makes this correction and changes the wording in another place
which used "opened." Markup has also been added to maintain consistency
in display of messages.

To test, perform a search for a subscription. If your search returns
results you should see an "Open" and a "Closed" tab. To test other
affected changes perform searches which return no results, only open
subscriptions, or only closed subscriptions. "No results" messages
should display correctly and consistently.
---
 .../prog/en/modules/serials/serials-search.tt      |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
index 0c937bf..459a80a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
@@ -105,7 +105,7 @@
         [% IF ( total ) %]
           <div id="serialstabs" class="toptabs" style="clear:both;">
             <ul class="ui-tabs-nav">
-              <li><a href="#opened">Opened ([% openedsubscriptions.size || 0 %])</a></li>
+              <li><a href="#opened">Open ([% openedsubscriptions.size || 0 %])</a></li>
               <li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li>
             </ul>
             <div id="opened">
@@ -188,7 +188,9 @@
                   </tbody>
                 </table>
               [% ELSE %]
-                There is no opened subscription for your search.
+                <div class="dialog message">
+                  <p>Your search returned no open subscriptions.</p>
+                </div>
               [% END %]
             </div>
             <div id="closed">
@@ -252,10 +254,16 @@
                   </tbody>
                 </table>
               [% ELSE %]
-                There is no closed subscription for your search.
+                <div class="dialog message">
+                  <p>Your search returned no closed subscriptions.</p>
+                </div>
               [% END %]
             </div>
           </div>
+        [% ELSE %]
+            <div class="dialog message">
+              <p>Your search returned no results.</p>
+            </div>
         [% END %]
       [% END %]
     </div>
-- 
1.7.9.5


More information about the Koha-patches mailing list