Koha/misc/cronjobs/social_data/get_report_social_data.pl
Fridolin Somers 3410608b66 Bug 15193 - Perl scripts missing exec permission
Some perl scripts have 644 permissions instead of 755.

I think some are special like install-CPAN.pl.

This patch corrects some common perl scripts.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2015-12-11 16:36:08 +00:00

16 lines
629 B
Perl
Executable file

#!/usr/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} };