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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt (-1 / +1 lines)
Lines 149-155 Link Here
149
                                        [% END %]
149
                                        [% END %]
150
                                </table>
150
                                </table>
151
                            [% ELSE %]
151
                            [% ELSE %]
152
                                <p>No copies available.</p>
152
                                <p>No items available.</p>
153
                            [% END %]
153
                            [% END %]
154
                        </div> <!-- / #catalogue_detail_biblio -->
154
                        </div> <!-- / #catalogue_detail_biblio -->
155
                    </div> <!-- / #usermarcdetail -->
155
                    </div> <!-- / #usermarcdetail -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt (-1 / +1 lines)
Lines 73-79 function fetch_availability( prod, $tr ) { Link Here
73
        function ( data ) {
73
        function ( data ) {
74
            if ( data.error ) return;
74
            if ( data.error ) return;
75
75
76
            $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Copies available:") + ' </b>' +  data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' );
76
            $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Items available:") + ' </b>' +  data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' );
77
77
78
            if ( data.numberOfHolds ) {
78
            if ( data.numberOfHolds ) {
79
                $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );
79
                $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' );
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-7 / +7 lines)
Lines 232-245 Link Here
232
                                                        [% IF ( OPACItemHolds ) %]
232
                                                        [% IF ( OPACItemHolds ) %]
233
                                                            <!-- ITEM HOLDS -->
233
                                                            <!-- ITEM HOLDS -->
234
                                                            <li class="lradio">
234
                                                            <li class="lradio">
235
                                                                <label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available copy</label>
235
                                                                <label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
236
                                                                [% UNLESS ( bibitemloo.holdable ) %]
236
                                                                [% UNLESS ( bibitemloo.holdable ) %]
237
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" disabled="disabled" />
237
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" disabled="disabled" />
238
                                                                [% ELSE %]
238
                                                                [% ELSE %]
239
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" checked="checked" />
239
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqany_[% bibitemloo.biblionumber %]" class="selectany" value="Any" checked="checked" />
240
                                                                [% END %]
240
                                                                [% END %]
241
241
242
                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific copy</label>
242
                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
243
                                                                [% UNLESS ( bibitemloo.holdable ) %]
243
                                                                [% UNLESS ( bibitemloo.holdable ) %]
244
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqspecific_[% bibitemloo.biblionumber %]" class="selectspecific" disabled="disabled" value="Specific" />
244
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" id="reqspecific_[% bibitemloo.biblionumber %]" class="selectspecific" disabled="disabled" value="Specific" />
245
                                                                [% ELSE %]
245
                                                                [% ELSE %]
Lines 251-257 Link Here
251
251
252
                                                    [% IF ( OPACItemHolds ) %]
252
                                                    [% IF ( OPACItemHolds ) %]
253
                                                        <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]">
253
                                                        <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]">
254
                                                            <caption>Select a specific copy:</caption>
254
                                                            <caption>Select a specific item:</caption>
255
                                                            <tr>
255
                                                            <tr>
256
                                                                <th>Copy</th>
256
                                                                <th>Copy</th>
257
                                                                [% IF ( item_level_itypes ) %]
257
                                                                [% IF ( item_level_itypes ) %]
Lines 370-378 Link Here
370
[% INCLUDE 'calendar.inc' %]
370
[% INCLUDE 'calendar.inc' %]
371
<script type="text/javascript">
371
<script type="text/javascript">
372
// <![CDATA[
372
// <![CDATA[
373
    var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection.");
373
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
374
    var ForceHoldNotesReasons=new Array(
374
    var ForceHoldNotesReasons=new Array(
375
       _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific copy information may be helpful."),
375
       _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."),
376
       "*** Add a new reason above this line ***" );
376
       "*** Add a new reason above this line ***" );
377
       // NOTE: Do not renumber reasons; this will affect use of existing ones.
377
       // NOTE: Do not renumber reasons; this will affect use of existing ones.
378
378
Lines 452-458 Link Here
452
                    // Find the selected copy
452
                    // Find the selected copy
453
                    var item = $(".checkitem_" + biblioNum + ":checked");
453
                    var item = $(".checkitem_" + biblioNum + ":checked");
454
                    if ($(item).size() == 0) {
454
                    if ($(item).size() == 0) {
455
                        alert(MSG_NO_COPY_SELECTED);
455
                        alert(MSG_NO_ITEM_SELECTED);
456
                        return false;
456
                        return false;
457
                    }
457
                    }
458
                }
458
                }
Lines 531-537 Link Here
531
            });
531
            });
532
532
533
            if (badBib) {
533
            if (badBib) {
534
                alert(MSG_NO_COPY_SELECTED);
534
                alert(MSG_NO_ITEM_SELECTED);
535
                return false;
535
                return false;
536
            }
536
            }
537
537
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt (-1 / +1 lines)
Lines 202-208 href="/cgi-bin/koha/opac-rss.pl?[% query_cgi %][% limit_cgi |html %]" /> Link Here
202
                                                            [% END %]
202
                                                            [% END %]
203
                                                            <p class="availability">
203
                                                            <p class="availability">
204
                                                                [% IF ( GROUP_RESULT.available_items_loop ) %]
204
                                                                [% IF ( GROUP_RESULT.available_items_loop ) %]
205
                                                                    <span class="available"><strong>Copies available at:</strong>
205
                                                                    <span class="available"><strong>Items available at:</strong>
206
                                                                        [% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
206
                                                                        [% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
207
                                                                            [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
207
                                                                            [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
208
                                                                            [% IF ( OPACItemsResultsDisplay ) %]
208
                                                                            [% IF ( OPACItemsResultsDisplay ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 / +1 lines)
Lines 348-354 Link Here
348
                                                    <span class="results_summary">
348
                                                    <span class="results_summary">
349
                                                        <span class="label">Availability:</span>
349
                                                        <span class="label">Availability:</span>
350
                                                            [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
350
                                                            [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
351
                                                                <span class="available"><strong>Copies available:</strong>
351
                                                                <span class="available"><strong>Items available:</strong>
352
                                                                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
352
                                                                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
353
                                                                        [% IF available_items_loo.this_branch %]
353
                                                                        [% IF available_items_loo.this_branch %]
354
                                                                            <span class="highlight-row-results">
354
                                                                            <span class="highlight-row-results">
(-)a/koha-tmpl/opac-tmpl/bootstrap/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:value-of select="items:homebranch"/>
1085
                                <xsl:value-of select="items:homebranch"/>
(-)a/koha-tmpl/opac-tmpl/bootstrap/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/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (-4 / +3 lines)
Lines 126-136 Link Here
126
        </xsl:for-each>
126
        </xsl:for-each>
127
      </xsl:when>
127
      </xsl:when>
128
      <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
128
      <xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
129
        No copies available
129
        No items available
130
      </xsl:when>
130
      </xsl:when>
131
      <xsl:when test="count(key('item-by-status', 'available'))>0">
131
      <xsl:when test="count(key('item-by-status', 'available'))>0">
132
        <span class="available">
132
        <span class="available">
133
          <b><xsl:text>Copies available for loan: </xsl:text></b>
133
          <b><xsl:text>Items available for loan: </xsl:text></b>
134
          <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
134
          <xsl:variable name="available_items" select="key('item-by-status', 'available')"/>
135
      <xsl:choose>
135
      <xsl:choose>
136
      <xsl:when test="$singleBranchMode=1">
136
      <xsl:when test="$singleBranchMode=1">
Lines 167-173 Link Here
167
    <xsl:choose>
167
    <xsl:choose>
168
      <xsl:when test="count(key('item-by-status', 'reference'))>0">
168
      <xsl:when test="count(key('item-by-status', 'reference'))>0">
169
        <span class="available">
169
        <span class="available">
170
          <b><xsl:text>Copies available for reference: </xsl:text></b>
170
          <b><xsl:text>Items available for reference: </xsl:text></b>
171
          <xsl:variable name="reference_items"
171
          <xsl:variable name="reference_items"
172
                        select="key('item-by-status', 'reference')"/>
172
                        select="key('item-by-status', 'reference')"/>
173
          <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
173
          <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
174
- 

Return to bug 11648