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

(-)a/C4/Items.pm (+25 lines)
Lines 1270-1275 sub GetItemsInfo { Link Here
1270
            $data->{notforloanvalue} = $lib;
1270
            $data->{notforloanvalue} = $lib;
1271
        }
1271
        }
1272
1272
1273
        # get restricted status and description if applicable
1274
        my $restrictedstatus = $dbh->prepare(
1275
            'SELECT authorised_value
1276
            FROM   marc_subfield_structure
1277
            WHERE  kohafield="items.restricted"
1278
        '
1279
        );
1280
1281
        $restrictedstatus->execute;
1282
        my ($authorised_valuecode) = $restrictedstatus->fetchrow;
1283
        if ($authorised_valuecode) {
1284
            $restrictedstatus = $dbh->prepare(
1285
                "SELECT lib,lib_opac FROM authorised_values
1286
                 WHERE  category=?
1287
                 AND authorised_value=?"
1288
            );
1289
            $restrictedstatus->execute( $authorised_valuecode,
1290
                $data->{restricted} );
1291
1292
            if ( my $rstdata = $restrictedstatus->fetchrow_hashref ) {
1293
                $data->{restricted} = $rstdata->{'lib'};
1294
                $data->{restrictedopac} = $rstdata->{'lib_opac'};
1295
            }
1296
        }
1297
1273
        # my stack procedures
1298
        # my stack procedures
1274
        my $stackstatus = $dbh->prepare(
1299
        my $stackstatus = $dbh->prepare(
1275
            'SELECT authorised_value
1300
            'SELECT authorised_value
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl (+2 lines)
Lines 326-331 function verify_images() { Link Here
326
                <!-- TMPL_UNLESS name="itemnotforloan" --><!-- TMPL_UNLESS NAME="onloan" --><!-- TMPL_UNLESS NAME="itemlost" --><!-- TMPL_UNLESS NAME="wthdrawn" --><!-- TMPL_UNLESS NAME="damaged" --><!-- TMPL_UNLESS NAME="transfertwhen" --><!-- TMPL_UNLESS NAME="reservedate" -->
326
                <!-- TMPL_UNLESS name="itemnotforloan" --><!-- TMPL_UNLESS NAME="onloan" --><!-- TMPL_UNLESS NAME="itemlost" --><!-- TMPL_UNLESS NAME="wthdrawn" --><!-- TMPL_UNLESS NAME="damaged" --><!-- TMPL_UNLESS NAME="transfertwhen" --><!-- TMPL_UNLESS NAME="reservedate" -->
327
                                        Available
327
                                        Available
328
                <!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
328
                <!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
329
330
                <!-- TMPL_IF NAME="restricted" --><span class="restricted">(<!-- TMPL_VAR NAME="restricted" -->)</span><!-- /TMPL_IF -->
329
                        
331
                        
330
                    </td>
332
                    </td>
331
                    <td class="datelastseen"><!-- TMPL_VAR NAME="datelastseen" --></td>
333
                    <td class="datelastseen"><!-- TMPL_VAR NAME="datelastseen" --></td>
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc (-5 / +4 lines)
Lines 19-32 Link Here
19
    <!-- /TMPL_IF -->
19
    <!-- /TMPL_IF -->
20
<!-- TMPL_ELSIF name="itemnotforloan" -->
20
<!-- TMPL_ELSIF name="itemnotforloan" -->
21
    <!-- TMPL_IF NAME="notforloanvalue" -->
21
    <!-- TMPL_IF NAME="notforloanvalue" -->
22
        <!-- TMPL_VAR NAME="notforloanvalue" -->
22
        <!-- TMPL_VAR NAME="notforloanvalue" --> <!-- TMPL_IF NAME="restrictedopac" --><span class="restricted">(<!-- TMPL_VAR NAME="restrictedopac" -->)</span><!-- /TMPL_IF -->
23
    <!-- TMPL_ELSE -->
23
    <!-- TMPL_ELSE -->
24
        Not for loan
24
        Not for loan <!-- TMPL_IF NAME="restrictedopac" --><span class="restricted">(<!-- TMPL_VAR NAME="restrictedopac" -->)</span><!-- /TMPL_IF -->
25
    <!-- /TMPL_IF -->
25
    <!-- /TMPL_IF -->
26
<!-- TMPL_ELSIF name="notforloan_per_itemtype" -->
26
<!-- TMPL_ELSIF name="notforloan_per_itemtype" -->
27
    Not for loan
27
    Not for loan <!-- TMPL_IF NAME="restrictedopac" --><span class="restricted">(<!-- TMPL_VAR NAME="restrictedopac" -->)</span><!-- /TMPL_IF -->
28
<!-- TMPL_ELSIF NAME="damaged" -->
28
<!-- TMPL_ELSIF NAME="damaged" -->
29
    Item damaged
29
    Item damaged
30
<!-- TMPL_ELSE -->
30
<!-- TMPL_ELSE -->
31
    Available
31
    Available <!-- TMPL_IF NAME="restrictedopac" --><span class="restricted">(<!-- TMPL_VAR NAME="restrictedopac" -->)</span><!-- /TMPL_IF -->
32
<!-- /TMPL_IF -->
32
<!-- /TMPL_IF -->
33
- 

Return to bug 4173