|
Lines 535-548
sub getRecords {
Link Here
|
| 535 |
|
535 |
|
| 536 |
# fix the length that will display in the label, |
536 |
# fix the length that will display in the label, |
| 537 |
my $facet_label_value = $one_facet; |
537 |
my $facet_label_value = $one_facet; |
| 538 |
my $facet_max_length = C4::Context->preference( |
|
|
| 539 |
'FacetLabelTruncationLength') |
| 540 |
|| 20; |
| 541 |
$facet_label_value = |
| 542 |
substr( $one_facet, 0, $facet_max_length ) |
| 543 |
. "..." |
| 544 |
if length($facet_label_value) > |
| 545 |
$facet_max_length; |
| 546 |
|
538 |
|
| 547 |
# if it's a branch, label by the name, not the code, |
539 |
# if it's a branch, label by the name, not the code, |
| 548 |
if ( $link_value =~ /branch/ ) { |
540 |
if ( $link_value =~ /branch/ ) { |