View | Details | Raw Unified | Return to bug 11648
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tt (-1 / +1 lines)
Lines 195-201 $(document).ready(function(){ Link Here
195
                    </tr>
195
                    </tr>
196
                [% END %]
196
                [% END %]
197
        </table>[% ELSE %]
197
        </table>[% ELSE %]
198
        <p>No copies available.</p>
198
        <p>No items available.</p>
199
    [% END %]
199
    [% END %]
200
    </div>
200
    </div>
201
    </div>
201
    </div>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-overdrive-search.tt (-1 / +1 lines)
Lines 19-25 function fetch_availability( prod, $tr ) { Link Here
19
        function ( data ) {
19
        function ( data ) {
20
            if ( data.error ) return;
20
            if ( data.error ) return;
21
21
22
            $availability_summary.html( '<span class="label">' + _("Copies available:") + ' </span><span class="available"><strong>' +  data.copiesAvailable + '</strong> ' + _("out of") + ' ' + data.copiesOwned + '</span>' );
22
            $availability_summary.html( '<span class="label">' + _("Items available:") + ' </span><span class="available"><strong>' +  data.copiesAvailable + '</strong> ' + _("out of") + ' ' + data.copiesOwned + '</span>' );
23
23
24
            if ( data.numberOfHolds ) {
24
            if ( data.numberOfHolds ) {
25
                $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );
25
                $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt (-7 / +7 lines)
Lines 5-13 Link Here
5
[% INCLUDE 'calendar.inc' %]
5
[% INCLUDE 'calendar.inc' %]
6
<script type="text/javascript">
6
<script type="text/javascript">
7
// <![CDATA[
7
// <![CDATA[
8
 var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection.");
8
 var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
9
 var ForceHoldNotesReasons=new Array(
9
 var ForceHoldNotesReasons=new Array(
10
    _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific copy information may be helpful."),
10
    _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."),
11
    "*** Add a new reason above this line ***" ); // NOTE: Do not renumber reasons; this will affect use of existing ones.
11
    "*** Add a new reason above this line ***" ); // NOTE: Do not renumber reasons; this will affect use of existing ones.
12
12
13
 function prefixOf (s, tok) {
13
 function prefixOf (s, tok) {
Lines 89-95 Link Here
89
                // Find the selected copy
89
                // Find the selected copy
90
                var item = $(".checkitem_" + biblioNum + ":checked");
90
                var item = $(".checkitem_" + biblioNum + ":checked");
91
                if ($(item).size() == 0) {
91
                if ($(item).size() == 0) {
92
                    alert(MSG_NO_COPY_SELECTED);
92
                    alert(MSG_NO_ITEM_SELECTED);
93
                    return false;
93
                    return false;
94
                }
94
                }
95
            }
95
            }
Lines 169-175 Link Here
169
        });
169
        });
170
170
171
        if (badBib) {
171
        if (badBib) {
172
            alert(MSG_NO_COPY_SELECTED);
172
            alert(MSG_NO_ITEM_SELECTED);
173
            return false;
173
            return false;
174
        }
174
        }
175
175
Lines 442-448 Link Here
442
                                    />
442
                                    />
443
                                  [% END %]
443
                                  [% END %]
444
444
445
                                  <label for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label>
445
                                  <label for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
446
                                  [% UNLESS ( bibitemloo.holdable ) %]
446
                                  [% UNLESS ( bibitemloo.holdable ) %]
447
                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
447
                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
448
                                           id="reqspecific_[% bibitemloo.biblionumber %]"
448
                                           id="reqspecific_[% bibitemloo.biblionumber %]"
Lines 457-463 Link Here
457
                                           value="Specific"
457
                                           value="Specific"
458
                                    />
458
                                    />
459
                                  [% END %]
459
                                  [% END %]
460
                                  <label for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label>
460
                                  <label for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
461
                                </li>
461
                                </li>
462
462
463
                            [% END %]
463
                            [% END %]
Lines 467-473 Link Here
467
                  [% IF ( bibitemloo.holdable ) %]
467
                  [% IF ( bibitemloo.holdable ) %]
468
468
469
                        <table class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]">
469
                        <table class="copiesrow" id="copiesrow_[% bibitemloo.biblionumber %]">
470
                          <caption>Select a specific copy:</caption>
470
                          <caption>Select a specific item:</caption>
471
                          <tr>
471
                          <tr>
472
                            <th>Copy</th>
472
                            <th>Copy</th>
473
                            [% IF ( item_level_itypes ) %]
473
                            [% IF ( item_level_itypes ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt (-1 / +1 lines)
Lines 246-252 function highlightOn() { Link Here
246
        [% IF ( GROUP_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% GROUP_RESULT.searchhighlightblob %]</p>[% END %]
246
        [% IF ( GROUP_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% GROUP_RESULT.searchhighlightblob %]</p>[% END %]
247
				<p class="availability">
247
				<p class="availability">
248
					[% IF ( GROUP_RESULT.available_items_loop ) %]
248
					[% IF ( GROUP_RESULT.available_items_loop ) %]
249
					<span class="available"><strong>Copies available at:</strong>
249
					<span class="available"><strong>Items available at:</strong>
250
					[% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
250
					[% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
251
					[% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
251
					[% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
252
					[% IF ( OPACItemsResultsDisplay ) %]
252
					[% IF ( OPACItemsResultsDisplay ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-1 / +1 lines)
Lines 560-566 $(document).ready(function(){ Link Here
560
                <span class="results_summary availability">
560
                <span class="results_summary availability">
561
                <span class="label">Availability:</span>
561
                <span class="label">Availability:</span>
562
                    [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
562
                    [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
563
                    <span class="available"><strong>Copies available:</strong>
563
                    <span class="available"><strong>Items available:</strong>
564
                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
564
                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
565
                    [% IF available_items_loo.this_branch %]<span class="highlight-row-results">[% ELSE %]<span>[% END %]
565
                    [% IF available_items_loo.this_branch %]<span class="highlight-row-results">[% ELSE %]<span>[% END %]
566
                    [% IF ( singleBranchMode ) %]
566
                    [% IF ( singleBranchMode ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl (-3 / +3 lines)
Lines 1042-1053 Link Here
1042
                            </xsl:for-each>
1042
                            </xsl:for-each>
1043
                            (<xsl:value-of select="$AlternateHoldingsCount"/>)
1043
                            (<xsl:value-of select="$AlternateHoldingsCount"/>)
1044
                            </xsl:when>
1044
                            </xsl:when>
1045
                            <xsl:otherwise>No copies available </xsl:otherwise>
1045
                            <xsl:otherwise>No items available </xsl:otherwise>
1046
                        </xsl:choose>
1046
                        </xsl:choose>
1047
				   </xsl:when>
1047
				   </xsl:when>
1048
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
1048
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
1049
                   <span class="available">
1049
                   <span class="available">
1050
                       <b><xsl:text>Copies available for loan: </xsl:text></b>
1050
                       <b><xsl:text>Items available for loan: </xsl:text></b>
1051
                       <xsl:variable name="available_items"
1051
                       <xsl:variable name="available_items"
1052
                           select="key('item-by-status', 'available')"/>
1052
                           select="key('item-by-status', 'available')"/>
1053
               <xsl:choose>
1053
               <xsl:choose>
Lines 1079-1085 Link Here
1079
            <xsl:choose>
1079
            <xsl:choose>
1080
                <xsl:when test="count(key('item-by-status', 'reference'))>0">
1080
                <xsl:when test="count(key('item-by-status', 'reference'))>0">
1081
                    <span class="available">
1081
                    <span class="available">
1082
                        <b><xsl:text>Copies available for reference: </xsl:text></b>
1082
                        <b><xsl:text>Items available for reference: </xsl:text></b>
1083
                        <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/>
1083
                        <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/>
1084
                        <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1084
                        <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
1085
                            <xsl:if test="$singleBranchMode=0">
1085
                            <xsl:if test="$singleBranchMode=0">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl (-3 / +3 lines)
Lines 773-784 Link Here
773
<span class="results_summary">
773
<span class="results_summary">
774
                        <span class="label">Availability: </span>
774
                        <span class="label">Availability: </span>
775
                        <xsl:choose>
775
                        <xsl:choose>
776
				   <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No copies available
776
				   <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No items available
777
				   </xsl:when>
777
				   </xsl:when>
778
778
779
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
779
                   <xsl:when test="count(key('item-by-status', 'available'))>0">
780
                   <span class="available">
780
                   <span class="available">
781
                       <b><xsl:text>Copies available for loan: </xsl:text></b>
781
                       <b><xsl:text>Items available for loan: </xsl:text></b>
782
                       <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
782
                       <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
783
               <xsl:choose>
783
               <xsl:choose>
784
               <xsl:when test="$singleBranchMode=1">
784
               <xsl:when test="$singleBranchMode=1">
Lines 810-816 Link Here
810
                   <xsl:choose>
810
                   <xsl:choose>
811
                   <xsl:when test="count(key('item-by-status', 'reference'))>0">
811
                   <xsl:when test="count(key('item-by-status', 'reference'))>0">
812
                   <span class="available">
812
                   <span class="available">
813
                       <b><xsl:text>Copies available for reference: </xsl:text></b>
813
                       <b><xsl:text>Items available for reference: </xsl:text></b>
814
                       <xsl:variable name="reference_items"
814
                       <xsl:variable name="reference_items"
815
                           select="key('item-by-status', 'reference')"/>
815
                           select="key('item-by-status', 'reference')"/>
816
                       <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
816
                       <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl (-4 / +3 lines)
Lines 133-143 Link Here
133
        </xsl:for-each>
133
        </xsl:for-each>
134
      </xsl:when>
134
      </xsl:when>
135
      <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
135
      <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
136
        No copies available
136
        No items available
137
      </xsl:when>
137
      </xsl:when>
138
      <xsl:when test="count(key('item-by-status', 'available'))>0">
138
      <xsl:when test="count(key('item-by-status', 'available'))>0">
139
        <span class="available">
139
        <span class="available">
140
          <b><xsl:text>Copies available for loan: </xsl:text></b>
140
          <b><xsl:text>Items available for loan: </xsl:text></b>
141
          <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
141
          <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
142
      <xsl:choose>
142
      <xsl:choose>
143
      <xsl:when test="$singleBranchMode=1">
143
      <xsl:when test="$singleBranchMode=1">
Lines 174-180 Link Here
174
    <xsl:choose>
174
    <xsl:choose>
175
      <xsl:when test="count(key('item-by-status', 'reference'))>0">
175
      <xsl:when test="count(key('item-by-status', 'reference'))>0">
176
        <span class="available">
176
        <span class="available">
177
          <b><xsl:text>Copies available for reference: </xsl:text></b>
177
          <b><xsl:text>Items available for reference: </xsl:text></b>
178
          <xsl:variable name="reference_items"
178
          <xsl:variable name="reference_items"
179
                        select="key('item-by-status', 'reference')"/>
179
                        select="key('item-by-status', 'reference')"/>
180
          <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
180
          <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
181
- 

Return to bug 11648