Bug 11648 - Use word item instead of copy - opac prog

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 prog 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>
This commit is contained in:
Fridolin Somers 2014-01-31 14:23:03 +01:00 committed by Galen Charlton
parent 18456ea5fc
commit 635d544111
8 changed files with 20 additions and 20 deletions

View file

@ -195,7 +195,7 @@ $(document).ready(function(){
</tr>
[% END %]
</table>[% ELSE %]
<p>No copies available.</p>
<p>No items available.</p>
[% END %]
</div>
</div>

View file

@ -19,7 +19,7 @@ function fetch_availability( prod, $tr ) {
function ( data ) {
if ( data.error ) return;
$availability_summary.html( '<span class="label">' + _("Copies available:") + ' </span><span class="available"><strong>' + data.copiesAvailable + '</strong> ' + _("out of") + ' ' + data.copiesOwned + '</span>' );
$availability_summary.html( '<span class="label">' + _("Items available:") + ' </span><span class="available"><strong>' + data.copiesAvailable + '</strong> ' + _("out of") + ' ' + data.copiesOwned + '</span>' );
if ( data.numberOfHolds ) {
$availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );

View file

@ -5,9 +5,9 @@
[% 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.
function prefixOf (s, tok) {
@ -89,7 +89,7 @@
// 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;
}
}
@ -169,7 +169,7 @@
});
if (badBib) {
alert(MSG_NO_COPY_SELECTED);
alert(MSG_NO_ITEM_SELECTED);
return false;
}
@ -442,7 +442,7 @@
/>
[% END %]
<label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label>
<label for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
[% UNLESS ( bibitemloo.holdable ) %]
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
id="reqspecific_[% bibitemloo.biblionumber %]"
@ -457,7 +457,7 @@
value="Specific"
/>
[% END %]
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label>
<label for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
</li>
[% END %]
@ -467,7 +467,7 @@
[% IF ( bibitemloo.holdable ) %]
<table class="copiesrow" 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 ) %]

View file

@ -246,7 +246,7 @@ function highlightOn() {
[% IF ( GROUP_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% GROUP_RESULT.searchhighlightblob %]</p>[% 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 ) %]

View file

@ -560,7 +560,7 @@ $(document).ready(function(){
<span class="results_summary availability">
<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">[% ELSE %]<span>[% END %]
[% IF ( singleBranchMode ) %]

View file

@ -1042,12 +1042,12 @@
</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>
@ -1079,7 +1079,7 @@
<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">

View file

@ -773,12 +773,12 @@
<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">
@ -810,7 +810,7 @@
<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])]">

View file

@ -133,11 +133,11 @@
</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">
@ -174,7 +174,7 @@
<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])]">