Bug 11648 - Use word item instead of copy - opac bootstrap
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 31 Jan 2014 13:22:45 +0000 (14:22 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 12 Mar 2014 14:21:44 +0000 (14:21 +0000)
Sometimes, the word copy/copies is use to speak about item/items.
It would be better to use only item because translation of the word
copy depends on context, it should be used only when speaking about
copy like in "copy and paste".

This patch replaces copy/copies in opac bootstrap theme.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl

index d731c7d..e7e83fe 100644 (file)
                                         [% END %]
                                 </table>
                             [% ELSE %]
-                                <p>No copies available.</p>
+                                <p>No items available.</p>
                             [% END %]
                         </div> <!-- / #catalogue_detail_biblio -->
                     </div> <!-- / #usermarcdetail -->
index e408078..9aeff2d 100644 (file)
@@ -73,7 +73,7 @@ function fetch_availability( prod, $tr ) {
         function ( data ) {
             if ( data.error ) return;
 
-            $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Copies available:") + ' </b>' +  data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' );
+            $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Items available:") + ' </b>' +  data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' );
 
             if ( data.numberOfHolds ) {
                 $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );
index e715ff9..d42323c 100644 (file)
                                                         [% IF ( OPACItemHolds ) %]
                                                             <!-- ITEM HOLDS -->
                                                             <li class="lradio">
-                                                                <label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label>
+                                                                <label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
                                                                 [% UNLESS ( bibitemloo.holdable ) %]
                                                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" disabled="disabled" />
                                                                 [% ELSE %]
                                                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" checked="checked" />
                                                                 [% END %]
 
-                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label>
+                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
                                                                 [% UNLESS ( bibitemloo.holdable ) %]
                                                                     <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqspecific_[% bibitemloo.biblionumber %]" class="selectspecific" disabled="disabled" value="Specific" />
                                                                 [% ELSE %]
 
                                                     [% IF ( OPACItemHolds ) %]
                                                         <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]">
-                                                            <caption>Select a specific copy:</caption>
+                                                            <caption>Select a specific item:</caption>
                                                             <tr>
                                                                 <th>Copy number</th>
                                                                 [% IF ( item_level_itypes ) %]
 [% INCLUDE 'calendar.inc' %]
 <script type="text/javascript">
 // <![CDATA[
-    var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection.");
+    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
     var ForceHoldNotesReasons=new Array(
-       _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific copy information may be helpful."),
+       _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."),
        "*** Add a new reason above this line ***" );
        // NOTE: Do not renumber reasons; this will affect use of existing ones.
 
                     // Find the selected copy
                     var item = $(".checkitem_" + biblioNum + ":checked");
                     if ($(item).size() == 0) {
-                        alert(MSG_NO_COPY_SELECTED);
+                        alert(MSG_NO_ITEM_SELECTED);
                         return false;
                     }
                 }
             });
 
             if (badBib) {
-                alert(MSG_NO_COPY_SELECTED);
+                alert(MSG_NO_ITEM_SELECTED);
                 return false;
             }
 
index 855714a..82bee0e 100644 (file)
@@ -202,7 +202,7 @@ href="/cgi-bin/koha/opac-rss.pl?[% query_cgi %][% limit_cgi |html %]" />
                                                             [% END %]
                                                             <p class="availability">
                                                                 [% IF ( GROUP_RESULT.available_items_loop ) %]
-                                                                    <span class="available"><strong>Copies available at:</strong>
+                                                                    <span class="available"><strong>Items available at:</strong>
                                                                         [% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
                                                                             [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
                                                                             [% IF ( OPACItemsResultsDisplay ) %]
index 8f0a089..1328583 100644 (file)
                                                     <span class="results_summary">
                                                         <span class="label">Availability:</span>
                                                             [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
-                                                                <span class="available"><strong>Copies available:</strong>
+                                                                <span class="available"><strong>Items available:</strong>
                                                                     [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
                                                                         [% IF available_items_loo.this_branch %]
                                                                             <span class="highlight-row-results">
index a4981c6..238b81f 100644 (file)
                             </xsl:for-each>
                             (<xsl:value-of select="$AlternateHoldingsCount"/>)
                             </xsl:when>
-                            <xsl:otherwise>No copies available </xsl:otherwise>
+                            <xsl:otherwise>No items available </xsl:otherwise>
                         </xsl:choose>
                                   </xsl:when>
                    <xsl:when test="count(key('item-by-status', 'available'))>0">
                    <span class="available">
-                       <b><xsl:text>Copies available for loan: </xsl:text></b>
+                       <b><xsl:text>Items available for loan: </xsl:text></b>
                        <xsl:variable name="available_items"
                            select="key('item-by-status', 'available')"/>
                <xsl:choose>
             <xsl:choose>
                 <xsl:when test="count(key('item-by-status', 'reference'))>0">
                     <span class="available">
-                        <b><xsl:text>Copies available for reference: </xsl:text></b>
+                        <b><xsl:text>Items available for reference: </xsl:text></b>
                         <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/>
                         <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
                             <xsl:if test="$singleBranchMode=0">
index 5336af1..111fb54 100644 (file)
 <span class="results_summary">
                         <span class="label">Availability: </span>
                         <xsl:choose>
-                                  <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No copies available
+                             <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No items available
                                   </xsl:when>
 
                    <xsl:when test="count(key('item-by-status', 'available'))>0">
                    <span class="available">
-                       <b><xsl:text>Copies available for loan: </xsl:text></b>
+                       <b><xsl:text>Items available for loan: </xsl:text></b>
                        <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
                <xsl:choose>
                <xsl:when test="$singleBranchMode=1">
                    <xsl:choose>
                    <xsl:when test="count(key('item-by-status', 'reference'))>0">
                    <span class="available">
-                       <b><xsl:text>Copies available for reference: </xsl:text></b>
+                       <b><xsl:text>Items available for reference: </xsl:text></b>
                        <xsl:variable name="reference_items"
                            select="key('item-by-status', 'reference')"/>
                        <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
index dd70bca..5c9c88e 100644 (file)
         </xsl:for-each>
       </xsl:when>
       <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
-        No copies available
+        No items available
       </xsl:when>
       <xsl:when test="count(key('item-by-status', 'available'))>0">
         <span class="available">
-          <b><xsl:text>Copies available for loan: </xsl:text></b>
+          <b><xsl:text>Items available for loan: </xsl:text></b>
           <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
       <xsl:choose>
       <xsl:when test="$singleBranchMode=1">
     <xsl:choose>
       <xsl:when test="count(key('item-by-status', 'reference'))>0">
         <span class="available">
-          <b><xsl:text>Copies available for reference: </xsl:text></b>
+          <b><xsl:text>Items available for reference: </xsl:text></b>
           <xsl:variable name="reference_items"
                         select="key('item-by-status', 'reference')"/>
           <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">