X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=src%2Fpazpar2.c;h=7e63f4713114540b51c33a05a1d3a219d532e9cb;hb=7dd217c5530b60f6533fff8e3420d755c5db5e25;hp=2222679fb713ccc26569565c8e5e183e2f0f2051;hpb=7a31488b5aee7ead673f2112fadd3f8b8f5c00e8;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2.c b/src/pazpar2.c index 2222679..7e63f47 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -1,4 +1,4 @@ -/* $Id: pazpar2.c,v 1.32 2007-01-15 16:56:51 quinn Exp $ */ +/* $Id: pazpar2.c,v 1.33 2007-01-15 19:17:27 quinn Exp $ */ #include #include @@ -569,7 +569,12 @@ static struct record *ingest_record(struct client *cl, Z_External *rec) newm->next = 0; if (md->type == Metadata_type_generic) { + char *p; newm->data.text = nmem_strdup(se->nmem, value); + for (p = newm->data.text + strlen(newm->data.text) - 1; + p > newm->data.text && strchr(" ,/.", *p); p--) + *p = '\0'; + } else if (md->type == Metadata_type_year) {