Lines 110-116
sub get_description_by_koha_field {
Link Here
|
110 |
return $cached if $cached; |
110 |
return $cached if $cached; |
111 |
|
111 |
|
112 |
my $av = $self->find_by_koha_field($params); |
112 |
my $av = $self->find_by_koha_field($params); |
113 |
return {} unless defined $av; |
113 |
if ( ! defined $av ){ |
|
|
114 |
$memory_cache->set_in_cache( $cache_key, {} ); |
115 |
return {}; |
116 |
} |
114 |
my $descriptions = { lib => $av->lib, opac_description => $av->opac_description }; |
117 |
my $descriptions = { lib => $av->lib, opac_description => $av->opac_description }; |
115 |
$memory_cache->set_in_cache( $cache_key, $descriptions ); |
118 |
$memory_cache->set_in_cache( $cache_key, $descriptions ); |
116 |
return $descriptions; |
119 |
return $descriptions; |
117 |
- |
|
|