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:
85d83a5
)
Try to preserve order of repeated fields (bug #2165).
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 24 Apr 2008 11:44:06 +0000
(13:44 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 24 Apr 2008 11:44:06 +0000
(13:44 +0200)
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
afc84a9
..
8b15df5
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-1225,8
+1225,11
@@
struct record *ingest_record(struct client *cl, Z_External *rec,
value, type);
continue;
}
- rec_md->next = record->metadata[md_field_id];
- record->metadata[md_field_id] = rec_md;
+ wheretoput = &record->metadata[md_field_id];
+ while (*wheretoput)
+ wheretoput = &(*wheretoput)->next;
+ rec_md->next = 0;
+ *wheretoput = rec_md;
// merged metadata
rec_md = record_metadata_init(se->nmem, (char *) value,