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

(-)a/circ/branchtransfers.pl (-10 lines)
Lines 188-202 if ($found) { Link Here
188
    }
188
    }
189
}
189
}
190
190
191
#####################
192
193
# Used for branch transfer limits error messages.
194
my $codeTypeDescription = 'Collection Code';
195
my $codeType = C4::Context->preference("BranchTransferLimitsType");
196
if ( $codeType eq 'itemtype' ) {   
197
    $codeTypeDescription = 'Item Type';
198
}
199
200
my @errmsgloop;
191
my @errmsgloop;
201
foreach my $code ( keys %$messages ) {
192
foreach my $code ( keys %$messages ) {
202
    if ( $code ne 'WasTransfered' ) {
193
    if ( $code ne 'WasTransfered' ) {
Lines 212-218 foreach my $code ( keys %$messages ) { Link Here
212
            my ( $tbr, $typecode ) = split( /::/,  $messages->{'NotAllowed'} );
203
            my ( $tbr, $typecode ) = split( /::/,  $messages->{'NotAllowed'} );
213
            $err{tbr}      = $branches->{ $tbr }->{'branchname'};
204
            $err{tbr}      = $branches->{ $tbr }->{'branchname'};
214
            $err{code}     = $typecode;
205
            $err{code}     = $typecode;
215
            $err{codeType} = $codeTypeDescription;
216
        }
206
        }
217
        elsif ( $code eq 'IsPermanent' ) {
207
        elsif ( $code eq 'IsPermanent' ) {
218
            $err{errispermanent} = 1;
208
            $err{errispermanent} = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-16 / +29 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
2
[% USE ItemTypes %]
3
[% USE AuthorisedValues %]
1
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
5
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
3
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
Lines 110-116 Link Here
110
                                  <li>Please return item to home library: [% errmsgloo.msg %]</li>
113
                                  <li>Please return item to home library: [% errmsgloo.msg %]</li>
111
                              [% END %]
114
                              [% END %]
112
                              [% IF ( errmsgloo.errnotallowed ) %]
115
                              [% IF ( errmsgloo.errnotallowed ) %]
113
                                  <li>You cannot transfer items of [% errmsgloo.codeType %] <b>[% errmsgloo.code %]</b> to <b>[% errmsgloo.tbr %]</b></li>
116
                                  <li>Transfer is not allowed for:
117
                                      <ol>
118
                                          [% IF ( Koha.Preference('BranchTransferLimitsType') == 'itemtype' ) %]
119
                                              <li>Item type: <b>[% ItemTypes.GetDescription( errmsgloo.code ) %]</b></li>
120
                                          [% ELSE %]
121
                                              <li>Collection code: <b>[% AuthorisedValues.GetByCode( 'CCODE', errmsgloo.code ) %]</b></li>
122
                                          [% END %]
123
                                          <li>Destination library: <b>[% errmsgloo.tbr %]</b></li>
124
                                      </ol>
125
                                  </li>
114
                              [% END %]
126
                              [% END %]
115
                              [% IF ( errmsgloo.errdesteqholding ) %]
127
                              [% IF ( errmsgloo.errdesteqholding ) %]
116
                                  <li>Item is already at destination library.</li>
128
                                  <li>Item is already at destination library.</li>
Lines 164-186 Link Here
164
		<table>
176
		<table>
165
            <caption>Transferred items</caption>
177
            <caption>Transferred items</caption>
166
            <tr>
178
            <tr>
167
                <th>Title</th>
179
                <th class="tf-title">Title</th>
168
                <th>Author</th>
180
                <th class="tf-author">Author</th>
169
                <th>Barcode</th>
181
                <th class="tf-barcode">Barcode</th>
170
                <th>Shelving location</th>
182
                <th class="tf-location">Shelving location</th>
171
                <th>Call number</th>
183
                <th class="tf-itemcallnumber">Call number</th>
172
                <th>Type</th>
184
                <th class="tf-itemtype">Item type</th>
173
                <th>To</th>
185
                <th class="tf-ccode">Collection code</th>
186
                <th class="tf-destination">Destination</th>
174
            </tr>
187
            </tr>
175
            [% FOREACH trsfitemloo IN trsfitemloop %]
188
            [% FOREACH trsfitemloo IN trsfitemloop %]
176
                <tr>
189
                <tr>
177
                    <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% trsfitemloo.biblionumber %]">[% trsfitemloo.title |html %]</a></td>
190
                    <td class="tf-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% trsfitemloo.biblionumber %]">[% trsfitemloo.title |html %]</a></td>
178
                    <td>[% trsfitemloo.author %]</td>
191
                    <td class="tf-author">[% trsfitemloo.author %]</td>
179
                    <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.biblionumber %]&amp;itemnumber=[% trsfitemloo.itemnumber %]#item[% trsfitemloo.itemnumber %]">[% trsfitemloo.barcode %]</a></td>
192
                    <td class="tf-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.biblionumber %]&amp;itemnumber=[% trsfitemloo.itemnumber %]#item[% trsfitemloo.itemnumber %]">[% trsfitemloo.barcode %]</a></td>
180
                    <td>[% trsfitemloo.location %]</td>
193
                    <td class="tf-location">[% trsfitemloo.location %]</td>
181
                    <td>[% trsfitemloo.itemcallnumber %]</td>
194
                    <td class="tf-itemcallnumber">[% trsfitemloo.itemcallnumber %]</td>
182
                    <td>[% trsfitemloo.ccode %]</td>
195
                    <td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.itemtype ) %]</td>
183
                    <td>[% trsfitemloo.tobrname %]</td>
196
                    <td class="tf-ccode">[% AuthorisedValues.GetByCode( 'CCODE', trsfitemloo.ccode ) %]</td>
197
                    <td class="tf-destination">[% trsfitemloo.tobrname %]</td>
184
                </tr>
198
                </tr>
185
            [% END %]
199
            [% END %]
186
        </table>
200
        </table>
187
- 

Return to bug 15301