projects
/
Biblio-Z3950.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
we need english stemmer because remote database is configured wrong
[Biblio-Z3950.git]
/
server.pl
diff --git
a/server.pl
b/server.pl
index
5823549
..
7b02608
100755
(executable)
--- a/
server.pl
+++ b/
server.pl
@@
-11,6
+11,8
@@
use Aleph;
use GoogleBooks;
use vuFind;
use DPLA;
use GoogleBooks;
use vuFind;
use DPLA;
+use AlephTR;
+use CROSBI;
use Encode;
use Encode;
@@
-23,6
+25,12
@@
my $databases = {
'GOOGLEBOOKS' => 'GoogleBooks',
'HATHITRUST' => 'vuFind',
'DPLA' => 'DPLA',
'GOOGLEBOOKS' => 'GoogleBooks',
'HATHITRUST' => 'vuFind',
'DPLA' => 'DPLA',
+ 'MKUTUP' => 'AlephTR',
+ 'CROSBI' => 'CROSBI',
+ 'CROSBI-CASOPIS' => 'CROSBI',
+ 'CROSBI-PREPRINT' => 'CROSBI',
+ 'CROSBI-RKNJIGA' => 'CROSBI',
+ 'CROSBI-ZBORNIK' => 'CROSBI',
};
my $max_records = 10; # XXX configure this
};
my $max_records = 10; # XXX configure this
@@
-64,7
+72,7
@@
diag "SearchHandle ",Dumper($self);
diag "using $module for $database ", Dumper( $from );
eval { $query = $rpn->{query}->render( $from->usemap ); };
diag "using $module for $database ", Dumper( $from );
eval { $query = $rpn->{query}->render( $from->usemap ); };
- warn "ERROR:
$@"
if $@;
+ warn "ERROR:
", Dumper($@)
if $@;
if ( $@ && ref($@) ) { ## Did someone/something report any errors?
$self->{ERR_CODE} = $@->{errcode};
$self->{ERR_STR} = $@->{errstr};
if ( $@ && ref($@) ) { ## Did someone/something report any errors?
$self->{ERR_CODE} = $@->{errcode};
$self->{ERR_STR} = $@->{errstr};
@@
-268,7
+276,8
@@
warn "# usemap ", dump($usemap);
}
}
if ( defined( $attributes->{5} ) ) { ## No truncation
}
}
if ( defined( $attributes->{5} ) ) { ## No truncation
- die { errcode => 113, errstr => 5 };
+# die { errcode => 113, errstr => 5 };
+ warn "# truncation is ignored";
}
my $comp = $attributes->{6};
if ($prefix) {
}
my $comp = $attributes->{6};
if ($prefix) {
@@
-283,7
+292,7
@@
warn "# usemap ", dump($usemap);
warn "# using custom prefix_term query";
$q = $usemap->{prefix_term}->( $prefix, $self->{term} );
} else {
warn "# using custom prefix_term query";
$q = $usemap->{prefix_term}->( $prefix, $self->{term} );
} else {
- $q = $prefix . $self->{term} . '*';
+
$q = $prefix . $self->{term} . '*';
}
print "# q: $q\n";
return $q;
}
print "# q: $q\n";
return $q;