tags => [ qw/ 225a / ],
sep => ', ',
},
+ {
+ idx => 'location',
+ label => 'Location',
+ tags => [ qw/ 995c / ],
+ }
];
my $library_facet;
label => 'Libraries',
tags => [ qw/ 995b / ],
};
- } else {
- $library_facet = {
- idx => 'location',
- label => 'Location',
- tags => [ qw/ 995c / ],
- };
}
push( @$facets, $library_facet );
}
tags => [ qw/ 952y 942c / ],
sep => ', ',
},
+ {
+ idx => 'location',
+ label => 'Location',
+ tags => [ qw / 952c / ],
+ },
];
my $library_facet;
label => 'Libraries',
tags => [ qw / 952b / ],
};
- } else {
- $library_facet = {
- idx => 'location',
- label => 'Location',
- tags => [ qw / 952c / ],
- };
}
push( @$facets, $library_facet );
}
return;
}
+=head2 Log( $message );
+
+ Writes data to /tmp/koha.log.
+
+ This is useful for debugging forked processes
+ that do not write to the apache error log
+
+=cut
+
+sub Log {
+ my ($data) = @_;
+ warn $data;
+ open my $fh, '>>', '/tmp/koha.log';
+ print $fh "$data\n";
+ close $fh;
+}
1;
__END__