projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d817dce
)
Change encoding mergekey fields
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Dec 2009 11:55:29 +0000
(12:55 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Dec 2009 11:55:29 +0000
(12:55 +0100)
Change encoding so harmonize with the "old" marc21.xsl mergekey
scheme. That is field and value pairs separated by space and with
no trailing space.
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
57f36b4
..
1d34bee
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-897,15
+897,15
@@
static int get_mergekey_from_doc(xmlDoc *doc, xmlNode *root, const char *name,
service->mergekey_pct,
(const char *) value, 0);
+ if (wrbuf_len(norm_wr) > 0)
+ wrbuf_puts(norm_wr, " ");
wrbuf_puts(norm_wr, name);
- wrbuf_puts(norm_wr, "=");
while ((norm_str =
pp2_relevance_token_next(prt)))
{
if (*norm_str)
{
- if (wrbuf_len(norm_wr))
- wrbuf_puts(norm_wr, " ");
+ wrbuf_puts(norm_wr, " ");
wrbuf_puts(norm_wr, norm_str);
}
}