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