[Koha-patches] [PATCH] Bug 2780 - Capitalize strings consistently (OPAC includes)

Owen Leonard oleonard at myacpl.org
Wed Apr 4 21:23:29 CEST 2012


Correcting capitalization in OPAC includes
---
 koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc  |   50 ++++++++++----------
 .../prog/en/includes/opac-detail-sidebar.inc       |    8 ++--
 .../opac-tmpl/prog/en/includes/opac-facets.inc     |    2 +-
 .../opac-tmpl/prog/en/includes/resort_form.inc     |   32 ++++++------
 .../prog/en/includes/subtypes_unimarc.inc          |    6 +-
 5 files changed, 49 insertions(+), 49 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
index c3a6c95..822cb6e 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
@@ -2,7 +2,7 @@
   [% IF ( opacuserlogin ) %]
 	<ul>
 [% UNLESS ( loggedinusername ) %]
-               <li><a href="/cgi-bin/koha/opac-user.pl">Log in to Your Account</a></li>[% END %]
+               <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %]
             [% IF ( loggedinusername ) %]
                 <li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></span></li>
 
@@ -37,9 +37,9 @@
 
 	<select name="idx" id="masthead_search" class="left">
 	[% IF ( ms_kw ) %]
-        <option selected="selected" value="">Library Catalog</option>
+        <option selected="selected" value="">Library catalog</option>
 		[% ELSE %]
-        <option value="">Library Catalog</option>
+        <option value="">Library catalog</option>
 		[% END %]
 		[% IF ( ms_ti ) %]
         <option selected="selected" value="ti">Title</option>
@@ -67,9 +67,9 @@
         <option value="se">Series</option>
 		[% END %]
 		[% IF ( ms_callnum ) %]
-        <option selected="selected" value="callnum">Call Number</option>
+        <option selected="selected" value="callnum">Call number</option>
 		[% ELSE %]
-        <option value="callnum">Call Number</option>
+        <option value="callnum">Call number</option>
 		[% END %]</select>
 [% IF ( ms_value ) %]
         <input type="text" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
@@ -78,7 +78,7 @@
 [% END %]
    [% IF ( OpacAddMastheadLibraryPulldown ) %]
       <select name="limit" id="select_library" class="left">
-         <option value="">All Libraries</option>
+         <option value="">All libraries</option>
          [% FOREACH BranchesLoo IN BranchesLoop %]
             [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
             [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
@@ -109,16 +109,16 @@
 [% END %]
 
 <div id="moresearches">
-<a href="/cgi-bin/koha/opac-search.pl">Advanced Search</a>
-[% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a>[% END %]
+<a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
+[% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by author or subject</a>[% END %]
-[% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent Comments</a>[% END %]
-[% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a>[% END %]
-[% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a>[% END %]
-[% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a>[% END %]
+[% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
+[% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
+[% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
+[% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
 [% IF ( suggestion ) %]
-  [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
-  [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
+  [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
+  [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
   [% END %]
 [% END %]
 </div>
@@ -132,34 +132,34 @@
 [% IF ( virtualshelves ) %]
 <div id="listsmenu" class="yuimenu" style="display: none">
     <div class="bd">
-	<h4>Public Lists</h4>
+    <h4>Public lists</h4>
 		[% IF ( pubshelves ) %]
 			<ul class="first-of-type">
 			[% FOREACH pubshelvesloo IN pubshelvesloop %]
 			<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
 			[% END %]
 			<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
-			</ul>   
+        </ul>
 		[% ELSE %]
-			No Public Lists
+        No public lists
 		[% END %]
   [% IF ( opacuserlogin ) %]
-	<h4>Your Lists</h4>
+    <h4>Your lists</h4>
 	[% IF ( loggedinusername ) %]
 		[% IF ( barshelves ) %]
 			<ul class="first-of-type">
 			[% FOREACH barshelvesloo IN barshelvesloop %]
 			<li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
 			[% END %]
-			<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View All]</a></li>
-			</ul>   
+        <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
+        </ul>
 		[% ELSE %]
 			<ul class="first-of-type">
-			<li>No Private Lists</li>
-			<li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New List]</a></li></ul>
+        <li>No private lists</li>
+        <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
 		[% END %]
 	[% ELSE %]
-		<ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to Create Your Own Lists</a></li></ul>
+        <ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
 	[% END %]
   [% END %]
 	  </div>
@@ -172,10 +172,10 @@
 [% IF ( searchdesc ) %]<p>[% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong> [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;count=[% countrss |html %]&amp;sort_by=acqdate_dsc&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
 [% ELSE %]
-<strong>No Results Found!</strong>
+<strong>No results found!</strong>
 <p>
     [% IF ( searchdesc ) %]
-    No results found for that in [% LibraryName %] Catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
+    No results found for that in [% LibraryName %] catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
     [% ELSE %]
     You did not specify any search criteria.
     [% END %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-detail-sidebar.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-detail-sidebar.inc
index d615be6..85d44d7 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-detail-sidebar.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-detail-sidebar.inc
@@ -3,10 +3,10 @@
         [% IF ( opacuserlogin ) %]
             [% IF ( RequestOnOpac ) %]
                 [% IF ( AllowOnShelfHolds ) %]
-                    <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber %]">Place Hold</a></li>
+                    <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber %]">Place hold</a></li>
                 [% ELSE %]
                     [% IF ( ItemsIssued ) %]
-                        <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber %]">Place Hold</a></li>
+                        <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber %]">Place hold</a></li>
                     [% END %]
                 [% END %]
             [% END %]
@@ -16,7 +16,7 @@
     [% IF ( virtualshelves ) %]
         [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %]
             <li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% biblionumber %]'); return false;">
-                Save to Your Lists
+                Save to your lists
             </a></li>
         [% END %][% END %]
     [% END %]
@@ -44,7 +44,7 @@
 [% IF ( export_options.size ) %]
     <div id="export" class="detailtagcell">
         <form method="get" action="/cgi-bin/koha/opac-export.pl">
-        <label for="format">Save Record:</label>
+        <label for="format">Save record:</label>
         <select name="format" id="format">
         [% FOREACH option IN export_options %]
             [% SWITCH option %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
index ccb37b0..b3c1bc3 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
@@ -19,7 +19,7 @@
 [% END %]
 <ul>
         [% FOREACH facet IN facets_loo.facets %]<li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by %][% END %]&amp;limit=[% facet.type_link_value %]:[% facet.facet_link_value %]" title="[% facet.facet_title_value |html %]">[% facet.facet_label_value %]</a> [% IF ( displayFacetCount ) %]([% facet.facet_count %])[% END %]</li>[% END %][% IF ( facets_loo.expandable ) %]
-        <li class="showmore"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by %][% END %][% IF ( offset ) %]&amp;offset=[% offset %][% END %]&amp;expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show More</a></li>
+        <li class="showmore"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by %][% END %][% IF ( offset ) %]&amp;offset=[% offset %][% END %]&amp;expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show more</a></li>
 [% END %]
 </ul></li>
 [% END %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/resort_form.inc b/koha-tmpl/opac-tmpl/prog/en/includes/resort_form.inc
index bf1954e..45215f3 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/resort_form.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/resort_form.inc
@@ -1,12 +1,12 @@
 <option value="relevance">Relevance</option>
 <optgroup label="Popularity">
 [% IF ( sort_by == "popularity_dsc" ) %]
-<option value="popularity_dsc" selected="selected">Popularity (Most to Least)</option>[% ELSE %]
-<option value="popularity_dsc">Popularity (Most to Least)</option>
+<option value="popularity_dsc" selected="selected">Popularity (most to least)</option>[% ELSE %]
+<option value="popularity_dsc">Popularity (most to least)</option>
 [% END %]
 [% IF ( sort_by == "popularity_asc" ) %]
-<option value="popularity_asc" selected="selected">Popularity (Least to Most)</option>[% ELSE %]
-<option value="popularity_asc">Popularity (Least to Most)</option>
+<option value="popularity_asc" selected="selected">Popularity (least to most)</option>[% ELSE %]
+<option value="popularity_asc">Popularity (least to most)</option>
 [% END %]
 </optgroup>
 <optgroup label="Author">
@@ -23,36 +23,36 @@
 </optgroup>
 <optgroup label="Call Number">
 [% IF ( sort_by == "call_number_asc" ) %]
-<option value="call_number_asc" selected="selected">Call Number (0-9 to A-Z)</option>
+<option value="call_number_asc" selected="selected">Call number (0-9 to A-Z)</option>
 [% ELSE %]
-<option value="call_number_asc">Call Number (0-9 to A-Z)</option>
+<option value="call_number_asc">Call number (0-9 to A-Z)</option>
 [% END %]
 [% IF ( sort_by == "call_number_dsc" ) %]
-<option value="call_number_dsc" selected="selected">Call Number (Z-A to 9-0)</option>
+<option value="call_number_dsc" selected="selected">Call number (Z-A to 9-0)</option>
 [% ELSE %]
-<option value="call_number_dsc">Call Number (Z-A to 9-0)</option>
+<option value="call_number_dsc">Call number (Z-A to 9-0)</option>
 [% END %]
 </optgroup>
 <optgroup label="Dates">
 [% IF ( sort_by == "pubdate_dsc" ) %]
-<option value="pubdate_dsc" selected="selected">Publication/Copyright Date: Newest to Oldest</option>
+<option value="pubdate_dsc" selected="selected">Publication/Copyright date: Newest to oldest</option>
 [% ELSE %]
-<option value="pubdate_dsc">Publication/Copyright Date: Newest to Oldest</option>
+<option value="pubdate_dsc">Publication/Copyright date: Newest to oldest</option>
 [% END %]
 [% IF ( sort_by == "pubdate_asc" ) %]
-<option value="pubdate_asc" selected="selected">Publication/Copyright Date: Oldest to Newest</option>
+<option value="pubdate_asc" selected="selected">Publication/Copyright date: Oldest to newest</option>
 [% ELSE %]
-<option value="pubdate_asc">Publication/Copyright Date: Oldest to Newest</option>
+<option value="pubdate_asc">Publication/Copyright date: Oldest to newest</option>
 [% END %]
 [% IF ( sort_by == "acqdate_dsc" ) %]
-<option value="acqdate_dsc" selected="selected">Acquisition Date: Newest to Oldest</option>
+<option value="acqdate_dsc" selected="selected">Acquisition date: Newest to oldest</option>
 [% ELSE %]
-<option value="acqdate_dsc">Acquisition Date: Newest to Oldest</option>
+<option value="acqdate_dsc">Acquisition date: Newest to oldest</option>
 [% END %]
 [% IF ( sort_by == "acqdate_asc" ) %]
-<option value="acqdate_asc" selected="selected">Acquisition Date: Oldest to Newest</option>
+<option value="acqdate_asc" selected="selected">Acquisition date: Oldest to newest</option>
 [% ELSE %]
-<option value="acqdate_asc">Acquisition Date: Oldest to Newest</option>
+<option value="acqdate_asc">Acquisition date: Oldest to newest</option>
 [% END %]
 </optgroup>
 <optgroup label="Title">
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/subtypes_unimarc.inc b/koha-tmpl/opac-tmpl/prog/en/includes/subtypes_unimarc.inc
index 413f423..2a68959 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/subtypes_unimarc.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/subtypes_unimarc.inc
@@ -1,5 +1,5 @@
     <fieldset>
-    <legend>Coded Fields</legend>
+    <legend>Coded fields</legend>
     <p>
     <label>Audience</label>
     <select name="limit" class="subtype">
@@ -106,7 +106,7 @@
     </select>
         </p>
         <p>
-    <label>Video Types</label>
+    <label>Video types</label>
     <select name="limit" class="subtype">
             <option value="">Any</option>
       <option value="Video-mt:a">motion picture</option>
@@ -118,7 +118,7 @@
     <fieldset>
     <legend>Serials</legend><p>
     <p>
-    <label>Serial Type</label>
+    <label>Serial type</label>
     <select name="limit" class="subtype">
            <option value="">Any type</option>
            <option value="Type-Of-Serial:a">Periodical</option>
-- 
1.7.5.4



More information about the Koha-patches mailing list