projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Back to v1.21 -- cql_target() is not unnecessary after all, since it's
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Utils.pm
diff --git
a/lib/ZOOM/IRSpy/Utils.pm
b/lib/ZOOM/IRSpy/Utils.pm
index
c31d188
..
4f7562d
100644
(file)
--- a/
lib/ZOOM/IRSpy/Utils.pm
+++ b/
lib/ZOOM/IRSpy/Utils.pm
@@
-1,4
+1,4
@@
-# $Id: Utils.pm,v 1.22 2007-03-01 13:51:18 mike Exp $
+# $Id: Utils.pm,v 1.23 2007-03-01 13:52:54 mike Exp $
package ZOOM::IRSpy::Utils;
package ZOOM::IRSpy::Utils;
@@
-10,6
+10,7
@@
use Exporter 'import';
our @EXPORT_OK = qw(isodate
xml_encode
cql_quote
our @EXPORT_OK = qw(isodate
xml_encode
cql_quote
+ cql_target
irspy_xpath_context
modify_xml_document
bib1_access_point);
irspy_xpath_context
modify_xml_document
bib1_access_point);
@@
-71,6
+72,16
@@
sub cql_quote {
}
}
+# Makes a CQL query that finds a specified target
+sub cql_target {
+ my($host, $port, $db) = @_;
+
+ return ("host=" . cql_quote($host) . " and " .
+ "port=" . cql_quote($port) . " and " .
+ "path=" . cql_quote($db));
+}
+
+
# PRIVATE to irspy_namespace() and irspy_xpath_context()
my %_namespaces = (
e => 'http://explain.z3950.org/dtd/2.0/',
# PRIVATE to irspy_namespace() and irspy_xpath_context()
my %_namespaces = (
e => 'http://explain.z3950.org/dtd/2.0/',