Koha/misc/cronjobs/social_data/get_report_social_data.pl
Jonathan Druart f35a1cce68 Bug 7470: Babeltheque integration
3 features:
- adds social network information in search results
- adds babeltheque data in opac-detail
- adds social network links in opac-detail too (google+, twitter, mail
  and co.)
2012-03-26 14:24:04 +02:00

16 lines
625 B
Perl

#!/bin/perl
use Modern::Perl;
use C4::SocialData;
my $results = C4::SocialData::get_report;
say "==== Social Data report ====";
say "Matched : (" . scalar( @{ $results->{with} } ) . ")";
say "biblionumber = $_->{biblionumber},\toriginal = $_->{original},\tisbn = $_->{isbn}" for @{ $results->{with} };
say "No Match : (" . scalar( @{ $results->{without} } ) . ")";
say "biblionumber = $_->{biblionumber},\toriginal = $_->{original},\tisbn = $_->{isbn}" for @{ $results->{without} };
say "Without ISBN : (" . scalar( @{ $results->{no_isbn} } ) . ")";
say "biblionumber = $_->{biblionumber}" for @{ $results->{no_isbn} };