Lines 176-183
for ( my $tabloop = 0 ; $tabloop <= 9 ; $tabloop++ ) {
Link Here
|
176 |
next if ( ($sf_def->{tab}||0) != $tabloop ); |
176 |
next if ( ($sf_def->{tab}||0) != $tabloop ); |
177 |
next if ( ($sf_def->{hidden}||0) > 0 ); |
177 |
next if ( ($sf_def->{hidden}||0) > 0 ); |
178 |
my %subfield_data; |
178 |
my %subfield_data; |
179 |
$subfield_data{marc_lib} = ($sf_def->{lib} eq $previous) ? '--' : $sf_def->{lib}; |
179 |
my $lib = $sf_def->{lib} // ''; |
180 |
$previous = $sf_def->{lib}; |
180 |
$subfield_data{marc_lib} = ($lib eq $previous) ? '--' : $sf_def->{lib}; |
|
|
181 |
$previous = $lib; |
181 |
$subfield_data{link} = $sf_def->{link}; |
182 |
$subfield_data{link} = $sf_def->{link}; |
182 |
$subf[$i][1] =~ s/\n/<br\/>/g; |
183 |
$subf[$i][1] =~ s/\n/<br\/>/g; |
183 |
if ( $sf_def->{isurl} ) { |
184 |
if ( $sf_def->{isurl} ) { |
Lines 211-222
for ( my $tabloop = 0 ; $tabloop <= 9 ; $tabloop++ ) {
Link Here
|
211 |
$tag_data{tag} = $tagslib->{ $fields[$x_i]->tag() }->{lib}; |
212 |
$tag_data{tag} = $tagslib->{ $fields[$x_i]->tag() }->{lib}; |
212 |
} |
213 |
} |
213 |
else { |
214 |
else { |
|
|
215 |
my $tag = $fields[$x_i]->tag(); |
214 |
$tag_data{tag} = |
216 |
$tag_data{tag} = |
215 |
$fields[$x_i]->tag() |
217 |
$tag |
216 |
. ' ' |
218 |
. ' ' |
217 |
. C4::Koha::display_marc_indicators($fields[$x_i]) |
219 |
. C4::Koha::display_marc_indicators($fields[$x_i]) |
218 |
. ' - ' |
220 |
. ' - ' |
219 |
. $tagslib->{ $fields[$x_i]->tag() }->{lib}; |
221 |
. ($tagslib->{ $tag }->{lib} // ''); |
220 |
} |
222 |
} |
221 |
} |
223 |
} |
222 |
my @tmp = @subfields_data; |
224 |
my @tmp = @subfields_data; |
223 |
- |
|
|