projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 18251: SCO alerts - need a trigger for successful checkouts
[koha.git]
/
opac
/
ilsdi.pl
diff --git
a/opac/ilsdi.pl
b/opac/ilsdi.pl
index
05e7c5c
..
290abad
100755
(executable)
--- a/
opac/ilsdi.pl
+++ b/
opac/ilsdi.pl
@@
-32,7
+32,7
@@
use CGI qw ( -utf8 );
This script is a basic implementation of ILS-DI protocol for Koha.
It acts like a dispatcher, that get the CGI request, check required and
This script is a basic implementation of ILS-DI protocol for Koha.
It acts like a dispatcher, that get the CGI request, check required and
-optionals arguments, call a function from C4::ILS-DI, and finaly
+optionals arguments, call a function from C4::ILS-DI, and final
l
y
outputs the returned hashref as XML.
=cut
outputs the returned hashref as XML.
=cut
@@
-47,7
+47,7
@@
my @services = (
# Level 1: Basic Discovery Interfaces
# 'HarvestBibliographicRecords', # OAI-PMH
# 'HarvestExpandedRecords', # OAI-PMH
# Level 1: Basic Discovery Interfaces
# 'HarvestBibliographicRecords', # OAI-PMH
# 'HarvestExpandedRecords', # OAI-PMH
- 'GetAvailability', # FIXME Add bib
b
liographic level
+ 'GetAvailability', # FIXME Add bibliographic level
# 'GoToBibliographicRequestPage' # I don't understant this one
# Level 2: Elementary OPAC supplement
# 'GoToBibliographicRequestPage' # I don't understant this one
# Level 2: Elementary OPAC supplement
@@
-104,7
+104,7
@@
my %optional = (
'GetAuthorityRecords' => ['schema'],
'LookupPatron' => ['id_type'],
'AuthenticatePatron' => [],
'GetAuthorityRecords' => ['schema'],
'LookupPatron' => ['id_type'],
'AuthenticatePatron' => [],
- 'GetPatronInfo' => [ 'show_contact', 'show_fines', 'show_holds', 'show_loans' ],
+ 'GetPatronInfo' => [ 'show_contact', 'show_fines', 'show_holds', 'show_loans'
, 'show_attributes'
],
'GetPatronStatus' => [],
'GetServices' => [],
'RenewLoan' => ['desired_due_date'],
'GetPatronStatus' => [],
'GetServices' => [],
'RenewLoan' => ['desired_due_date'],
@@
-128,7
+128,7
@@
unless ( $cgi->param('service') ) {
}
# If user requested a service description, then display it
}
# If user requested a service description, then display it
-if (
$cgi->param('service') eq "Describe" and any {
$cgi->param('verb') eq $_ } @services ) {
+if (
scalar $cgi->param('service') eq "Describe" and any { scalar
$cgi->param('verb') eq $_ } @services ) {
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "ilsdi.tt",
query => $cgi,
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ template_name => "ilsdi.tt",
query => $cgi,
@@
-137,7
+137,7
@@
if ( $cgi->param('service') eq "Describe" and any { $cgi->param('verb') eq $_ }
debug => 1,
}
);
debug => 1,
}
);
- $template->param( $cgi->param('verb') => 1 );
+ $template->param(
scalar
$cgi->param('verb') => 1 );
output_html_with_http_headers $cgi, $cookie, $template->output;
exit 0;
}
output_html_with_http_headers $cgi, $cookie, $template->output;
exit 0;
}
@@
-171,7
+171,7
@@
if ( $service and any { $service eq $_ } @services ) {
my @parmsrequired = @{ $required{$service} };
my @parmsoptional = @{ $optional{$service} };
my @parmsall = ( @parmsrequired, @parmsoptional );
my @parmsrequired = @{ $required{$service} };
my @parmsoptional = @{ $optional{$service} };
my @parmsall = ( @parmsrequired, @parmsoptional );
- my @names = $cgi->param;
+ my @names = $cgi->
multi_
param;
my %paramhash;
$paramhash{$_} = 1 for @names;
my %paramhash;
$paramhash{$_} = 1 for @names;
@@
-199,7
+199,7
@@
if ( $service and any { $service eq $_ } @services ) {
# check for multiple parameters
for ( @names ) {
# check for multiple parameters
for ( @names ) {
- my @values = $cgi->param($_);
+ my @values = $cgi->
multi_
param($_);
if ( $#values != 0 ) {
$out->{'code'} = "MultipleValuesNotAllowed";
$out->{'message'} = "Multiple values not allowed for the parameter ".$_.".";
if ( $#values != 0 ) {
$out->{'code'} = "MultipleValuesNotAllowed";
$out->{'message'} = "Multiple values not allowed for the parameter ".$_.".";