-/* $Id: config.c,v 1.31 2007-04-26 10:19:05 marc Exp $
+/* $Id: config.c,v 1.32 2007-04-27 09:38:13 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
02111-1307, USA.
*/
-/* $Id: config.c,v 1.31 2007-04-26 10:19:05 marc Exp $ */
+/* $Id: config.c,v 1.32 2007-04-27 09:38:13 marc Exp $ */
#include <string.h>
metadata->name = nmem_strdup(nmem, name);
metadata->type = type;
- metadata->merge = merge;
+
+ // enforcing that years are always range merged
+ if (metadata->type == Metadata_type_year)
+ metadata->merge = Metadata_merge_range;
+ else
+ metadata->merge = merge;
+
metadata->brief = brief;
metadata->termlist = termlist;
metadata->rank = rank;
metadata->sortkey_offset = sortkey_offset;
-
return metadata;
}