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

(-)a/circ/branchtransfers.pl (-10 / +1 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;
206
            $err{codeType} = C4::Context->preference("BranchTransferLimitsType");
216
        }
207
        }
217
        elsif ( $code eq 'IsPermanent' ) {
208
        elsif ( $code eq 'IsPermanent' ) {
218
            $err{errispermanent} = 1;
209
            $err{errispermanent} = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-5 / +17 lines)
Lines 1-3 Link Here
1
[% USE ItemTypes %]
2
[% USE AuthorisedValues %]
1
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
4
<title>Koha &rsaquo; Circulation &rsaquo; Transfers</title>
3
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
Lines 110-116 Link Here
110
                                  <li>Please return item to home library: [% errmsgloo.msg %]</li>
112
                                  <li>Please return item to home library: [% errmsgloo.msg %]</li>
111
                              [% END %]
113
                              [% END %]
112
                              [% IF ( errmsgloo.errnotallowed ) %]
114
                              [% IF ( errmsgloo.errnotallowed ) %]
113
                                  <li>You cannot transfer items of [% errmsgloo.codeType %] <b>[% errmsgloo.code %]</b> to <b>[% errmsgloo.tbr %]</b></li>
115
                                  <li>Transfer is not allowed for:
116
                                      <ol>
117
                                          [% IF ( errmsgloo.codeType ) == 'itemtype' %]
118
                                              <li>Item type: <b>[% ItemTypes.GetDescription( errmsgloo.code ) %]</b></li>
119
                                          [% ELSE %]
120
                                              <li>Collection code: <b>[% AuthorisedValues.GetByCode( 'CCODE', errmsgloo.code ) %]</b></li>
121
                                          [% END %]
122
                                          <li>Destination library: <b>[% errmsgloo.tbr %]</b></li>
123
                                      </ol>
124
                                  </li>
114
                              [% END %]
125
                              [% END %]
115
                              [% IF ( errmsgloo.errdesteqholding ) %]
126
                              [% IF ( errmsgloo.errdesteqholding ) %]
116
                                  <li>Item is already at destination library.</li>
127
                                  <li>Item is already at destination library.</li>
Lines 169-176 Link Here
169
                <th>Barcode</th>
180
                <th>Barcode</th>
170
                <th>Shelving location</th>
181
                <th>Shelving location</th>
171
                <th>Call number</th>
182
                <th>Call number</th>
172
                <th>Type</th>
183
                <th>Item type</th>
173
                <th>To</th>
184
                <th>Collection code</th>
185
                <th>Destination</th>
174
            </tr>
186
            </tr>
175
            [% FOREACH trsfitemloo IN trsfitemloop %]
187
            [% FOREACH trsfitemloo IN trsfitemloop %]
176
                <tr>
188
                <tr>
Lines 179-185 Link Here
179
                    <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.biblionumber %]&amp;itemnumber=[% trsfitemloo.itemnumber %]#item[% trsfitemloo.itemnumber %]">[% trsfitemloo.barcode %]</a></td>
191
                    <td><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>
192
                    <td>[% trsfitemloo.location %]</td>
181
                    <td>[% trsfitemloo.itemcallnumber %]</td>
193
                    <td>[% trsfitemloo.itemcallnumber %]</td>
182
                    <td>[% trsfitemloo.ccode %]</td>
194
                    <td>[% ItemTypes.GetDescription( trsfitemloo.itemtype ) %]</td>
195
                    <td>[% AuthorisedValues.GetByCode( 'CCODE', trsfitemloo.ccode ) %]</td>
183
                    <td>[% trsfitemloo.tobrname %]</td>
196
                    <td>[% trsfitemloo.tobrname %]</td>
184
                </tr>
197
                </tr>
185
            [% END %]
198
            [% END %]
186
- 

Return to bug 15301