Bug 15253: Convert all tabs into 4 spaces in affected files
[koha.git] / C4 / SIP / example_institution_dump.sh
blob549b2f0bfa53976e8c63a1a0bfd31f542d67e5c2
1 #!/bin/bash
3 perl -I ./ -e '
4 use Data::Dumper;
5 use C4::SIP::ILS;
6 use C4::SIP::Sip::Configuration;
7 my $code = "MAIN";
8 my $conf = C4::SIP::Sip::Configuration->new("SIPconfig.xml");
9 my $ils = C4::SIP::ILS->new($conf->{institutions}->{$code});
10 print "XML for $code: ", Dumper($conf->{institutions}->{$code}), "\n";
11 print "ILS for $code: ", Dumper($ils), "\n";
12 print "\$ils->checkout_ok(): ", ($ils->checkout_ok() ? "Y" : "N"), "\n";
13 print "\$ils->checkin_ok() : ", ($ils->checkin_ok() ? "Y" : "N"), "\n";
14 print "\$ils->offline_ok() : ", ($ils->offline_ok() ? "Y" : "N"), "\n";
15 print "\n";