From 7cfc11f45ee2e7e9a09f3b5ff66a6d1ab214bce7 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 29 Mar 2007 17:13:45 +0000 Subject: [PATCH] Support library-type and country searches. --- web/htdocs/details/find.mc | 24 +++++++++++++----------- zebra/pqf.properties | 5 ++++- zebra/zeerex2index.xsl | 11 ++++++++++- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/web/htdocs/details/find.mc b/web/htdocs/details/find.mc index bb611d2..e56bc1a 100644 --- a/web/htdocs/details/find.mc +++ b/web/htdocs/details/find.mc @@ -1,4 +1,4 @@ -%# $Id: find.mc,v 1.10 2007-03-29 15:49:52 mike Exp $ +%# $Id: find.mc,v 1.11 2007-03-29 17:14:47 mike Exp $ % if ($r->param("_search")) { % $m->comp("found.mc"); % } else { @@ -21,11 +21,12 @@ Country - +% my $options = $m->comp("country-list.mc"); +% foreach my $option (@$options) { + +% } @@ -74,11 +75,12 @@ Type of Library - +% $options = $m->comp("libtype-list.mc"); +% foreach my $option (@$options) { + +% } diff --git a/zebra/pqf.properties b/zebra/pqf.properties index 66ba526..a1d4715 100644 --- a/zebra/pqf.properties +++ b/zebra/pqf.properties @@ -1,4 +1,4 @@ -# $Id: pqf.properties,v 1.17 2007-03-29 11:15:35 mike Exp $ +# $Id: pqf.properties,v 1.18 2007-03-29 17:14:13 mike Exp $ # # Properties file to drive the YAZ CQL-to-PQF converter for Zebra. # This specifies the interpretation of various CQL indexes, relations, @@ -41,6 +41,9 @@ index.zeerex.supports_relationModifier = 1=zeerex:supports_relationModifier index.zeerex.supports_maskingCharacter = 1=zeerex:supports_maskingCharacter index.zeerex.default_contextSet = 1=zeerex:default_contextSet index.zeerex.default_index = 1=zeerex:default_index +# Extensions +index.zeerex.libType = 1=zeerex:libType 4=3 +index.zeerex.country = 1=zeerex:country 4=3 # Relation attributes are selected according to the CQL relation by # looking up the "relation." property: diff --git a/zebra/zeerex2index.xsl b/zebra/zeerex2index.xsl index 0f3e102..89f1473 100644 --- a/zebra/zeerex2index.xsl +++ b/zebra/zeerex2index.xsl @@ -1,9 +1,10 @@ - + abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ @@ -134,6 +135,14 @@ + + + + + + + + -- 1.7.10.4