Bug 36750: Use the same label for Zebra
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
4e8500beb0
commit
4ffaa07a40
3 changed files with 12 additions and 12 deletions
14
C4/Koha.pm
14
C4/Koha.pm
|
@ -347,7 +347,7 @@ sub getFacets {
|
|||
},
|
||||
{
|
||||
idx => 'ccode',
|
||||
label => 'CollectionCodes',
|
||||
label => 'Collections',
|
||||
tags => [ qw / 099t 955h / ],
|
||||
}
|
||||
];
|
||||
|
@ -362,7 +362,7 @@ sub getFacets {
|
|||
@$facets,
|
||||
{
|
||||
idx => 'holdingbranch',
|
||||
label => 'HoldingLibrary',
|
||||
label => 'Holding libraries',
|
||||
tags => [qw / 995c /],
|
||||
}
|
||||
);
|
||||
|
@ -375,7 +375,7 @@ sub getFacets {
|
|||
@$facets,
|
||||
{
|
||||
idx => 'homebranch',
|
||||
label => 'HomeLibrary',
|
||||
label => 'Home libraries',
|
||||
tags => [qw / 995b /],
|
||||
}
|
||||
);
|
||||
|
@ -422,7 +422,7 @@ sub getFacets {
|
|||
},
|
||||
{
|
||||
idx => 'itype',
|
||||
label => 'ItemTypes',
|
||||
label => 'Item types',
|
||||
tags => [ qw/ 952y 942c / ],
|
||||
sep => ', ',
|
||||
},
|
||||
|
@ -433,7 +433,7 @@ sub getFacets {
|
|||
},
|
||||
{
|
||||
idx => 'ccode',
|
||||
label => 'CollectionCodes',
|
||||
label => 'Collections',
|
||||
tags => [ qw / 9528 / ],
|
||||
}
|
||||
];
|
||||
|
@ -448,7 +448,7 @@ sub getFacets {
|
|||
@$facets,
|
||||
{
|
||||
idx => 'holdingbranch',
|
||||
label => 'HoldingLibrary',
|
||||
label => 'Holding libraries',
|
||||
tags => [qw / 952b /],
|
||||
}
|
||||
);
|
||||
|
@ -461,7 +461,7 @@ sub getFacets {
|
|||
@$facets,
|
||||
{
|
||||
idx => 'homebranch',
|
||||
label => 'HomeLibrary',
|
||||
label => 'Home libraries',
|
||||
tags => [qw / 952a /],
|
||||
}
|
||||
);
|
||||
|
|
|
@ -85,9 +85,9 @@
|
|||
[% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %]
|
||||
[% END %]
|
||||
[% FOREACH facet IN facets_loo.facets %]
|
||||
[% IF facets_loo.type_label_CollectionCodes %]
|
||||
[% IF facets_loo.label == 'Collections' %]
|
||||
[% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value ) || facet.facet_label_value %]
|
||||
[% ELSIF facets_loo.type_label_Language %]
|
||||
[% IF facets_loo.label == 'Languages' %]
|
||||
[% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %]
|
||||
[% END %]
|
||||
[% IF loop.count > 5 && !facet.active %]
|
||||
|
@ -95,7 +95,7 @@
|
|||
[% ELSE %]
|
||||
<li>
|
||||
[% END %]
|
||||
[% SET facet_is_current_library = ( facets_loo.type_label_HomeLibrary || facets_loo.type_label_HoldingLibrary ) && !singleBranchMode && facet.facet_title_value == Branches.GetLoggedInBranchcode %]
|
||||
[% SET facet_is_current_library = ( facets_loo.label == 'Home libraries' || facets_loo.label == 'Holding libraries' ) && !singleBranchMode && facet.facet_title_value == Branches.GetLoggedInBranchcode %]
|
||||
[% SET facet_label_class = facet_is_current_library ? 'facet-label currentlibrary' : 'facet-label' %]
|
||||
[% IF facet.active %]
|
||||
[% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
|
||||
|
|
|
@ -89,8 +89,8 @@
|
|||
[% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %]
|
||||
[% END %]
|
||||
[% FOREACH facet IN facets_loo.facets %]
|
||||
[% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value, opac =>1 ) || facet.facet_label_value %][% END %]
|
||||
[% IF facets_loo.type_label_Language %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %]
|
||||
[% IF facets_loo.label == 'Collections' %][% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value, opac =>1 ) || facet.facet_label_value %][% END %]
|
||||
[% IF facets_loo.label == 'Language' %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %]
|
||||
[% IF loop.count > 5 && !facet.active %]
|
||||
<li class="collapsible-facet" style="display:none">
|
||||
[% ELSE %]
|
||||
|
|
Loading…
Reference in a new issue