|
Lines 798-819
foreach my $field (@fields) {
Link Here
|
| 798 |
} |
798 |
} |
| 799 |
$this_row{itemnumber} = $subfieldvalue if ($field->tag() eq $itemtagfield && $subfieldcode eq $itemtagsubfield); |
799 |
$this_row{itemnumber} = $subfieldvalue if ($field->tag() eq $itemtagfield && $subfieldcode eq $itemtagsubfield); |
| 800 |
|
800 |
|
| 801 |
if ( C4::Context->preference('EasyAnalyticalRecords') ) { |
801 |
if ( C4::Context->preference('EasyAnalyticalRecords') ) { |
| 802 |
foreach my $hostitemnumber (@hostitemnumbers){ |
802 |
foreach my $hostitemnumber (@hostitemnumbers) { |
| 803 |
my $item = Koha::Items->find( $hostitemnumber ); |
803 |
my $item = Koha::Items->find( $hostitemnumber ); |
| 804 |
if ($this_row{itemnumber} eq $hostitemnumber){ |
804 |
if ($this_row{itemnumber} eq $hostitemnumber) { |
| 805 |
$this_row{hostitemflag} = 1; |
805 |
$this_row{hostitemflag} = 1; |
| 806 |
$this_row{hostbiblionumber}= $item->biblio->biblionumber; |
806 |
$this_row{hostbiblionumber}= $item->biblio->biblionumber; |
| 807 |
last; |
807 |
last; |
| 808 |
} |
808 |
} |
| 809 |
} |
809 |
} |
| 810 |
|
810 |
} |
| 811 |
# my $countanalytics=GetAnalyticsCount($this_row{itemnumber}); |
|
|
| 812 |
# if ($countanalytics > 0){ |
| 813 |
# $this_row{countanalytics} = $countanalytics; |
| 814 |
# } |
| 815 |
} |
| 816 |
|
| 817 |
} |
811 |
} |
| 818 |
if (%this_row) { |
812 |
if (%this_row) { |
| 819 |
push(@big_array, \%this_row); |
813 |
push(@big_array, \%this_row); |
| 820 |
- |
|
|