Lines 343-378
sub _do_xslt_proc {
Link Here
|
343 |
} |
343 |
} |
344 |
} |
344 |
} |
345 |
|
345 |
|
346 |
sub _add_rowdata { |
|
|
347 |
my ($row, $record)=@_; |
348 |
my %fetch= ( |
349 |
title => 'biblio.title', |
350 |
author => 'biblio.author', |
351 |
isbn =>'biblioitems.isbn', |
352 |
lccn =>'biblioitems.lccn', #LC control number (not call number) |
353 |
edition =>'biblioitems.editionstatement' |
354 |
); |
355 |
$fetch{date} = C4::Context->preference('marcflavour') eq "MARC21" ? 'biblio.copyrightdate' : 'biblioitems.publicationyear'; |
356 |
|
357 |
#foreach my $k (keys %fetch) { |
358 |
# $row->{$k} = C4::Biblio::TransformMarcToKohaOneField( $fetch{$k}, $record ); |
359 |
#} |
360 |
$row->{date}//= $row->{date2}; |
361 |
$row->{isbn}=_isbn_replace($row->{isbn}); |
362 |
|
363 |
$row = _add_custom_field_rowdata( |
364 |
$row, |
365 |
$record, |
366 |
C4::Context->preference('AdditionalFieldsInZ3950ResultSearch')) |
367 |
if C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); |
368 |
return $row; |
369 |
} |
370 |
|
371 |
sub _add_custom_field_rowdata |
346 |
sub _add_custom_field_rowdata |
372 |
{ |
347 |
{ |
373 |
# my ( $row, $record ) = @_; |
|
|
374 |
# my $pref_newtags = C4::Context->preference('AdditionalFieldsInZ3950ResultSearch'); |
375 |
# hks3 |
376 |
my ( $row, $record, $pref_newtags ) = @_; |
348 |
my ( $row, $record, $pref_newtags ) = @_; |
377 |
my $pref_flavour = C4::Context->preference('MarcFlavour'); |
349 |
my $pref_flavour = C4::Context->preference('MarcFlavour'); |
378 |
|
350 |
|
379 |
- |
|
|