X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fretrieval.c;h=f60e231ffe05447ce09f5ab469ad43e50f8ac6c5;hp=982afc9c6b53cdd03e34527488b5be06d6f25a24;hb=1fbd038d97d6e1bfe97270ecc17cca123bcc435c;hpb=7a98e9bfbb9d5fe7d44822a9838e3becbdce9363 diff --git a/src/retrieval.c b/src/retrieval.c index 982afc9..f60e231 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 2005-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. - * - * $Id: retrieval.c,v 1.21 2007-05-08 08:22:36 adam Exp $ */ /** * \file retrieval.c @@ -19,6 +17,7 @@ #include #include #include +#include #include #include @@ -297,7 +296,7 @@ int yaz_retrieval_request(yaz_retrieval_t p, schema_ok = 1; else { - if (el->name && !strcmp(schema, el->name)) + if (el->name && yaz_match_glob(el->name, schema)) schema_ok = 1; if (el->identifier && !strcmp(schema, el->identifier)) schema_ok = 1; @@ -373,6 +372,7 @@ void yaz_retrieval_set_path(yaz_retrieval_t p, const char *path) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab