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

(-)a/C4/Biblio.pm (-4 / +3 lines)
Lines 1383-1389 sub GetAuthorisedValueDesc { Link Here
1383
1383
1384
        #---- branch
1384
        #---- branch
1385
        if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
1385
        if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
1386
            $cache_key = "LibraryNames";
1386
            $cache_key = "libraries:name";
1387
            my $libraries = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1387
            my $libraries = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1388
            if ( !$libraries ) {
1388
            if ( !$libraries ) {
1389
                $libraries = {
1389
                $libraries = {
Lines 1401-1407 sub GetAuthorisedValueDesc { Link Here
1401
        if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) {
1401
        if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) {
1402
            my $lang = C4::Languages::getlanguage;
1402
            my $lang = C4::Languages::getlanguage;
1403
            $lang //= 'en';
1403
            $lang //= 'en';
1404
            $cache_key = $lang . 'ItemTypeDescriptions';
1404
            $cache_key = 'itemtype:description:' . $lang;
1405
            my $itypes = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1405
            my $itypes = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1406
            if ( !$itypes ) {
1406
            if ( !$itypes ) {
1407
                $itypes =
1407
                $itypes =
Lines 1433-1439 sub GetAuthorisedValueDesc { Link Here
1433
1433
1434
    my $dbh = C4::Context->dbh;
1434
    my $dbh = C4::Context->dbh;
1435
    if ( $category ne "" ) {
1435
    if ( $category ne "" ) {
1436
        $cache_key = "AVDescriptions-" . $category;
1436
        $cache_key = "AV_descriptions:" . $category;
1437
        my $av_descriptions = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1437
        my $av_descriptions = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1438
        if ( !$av_descriptions ) {
1438
        if ( !$av_descriptions ) {
1439
            $av_descriptions = {
1439
            $av_descriptions = {
1440
- 

Return to bug 30920