From ca08c2d3db58c82d203a9f98070a67f67d9ea6c1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 13 Dec 2013 14:11:01 +0100 Subject: [PATCH] Handle metadata_type in a few more places --- src/pazpar2_config.c | 4 ++++ src/record.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 3255c08..4266275 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -1047,6 +1047,7 @@ static void info_service_metadata(struct conf_service *service, WRBUF w) switch (md->type) { case Metadata_type_generic: + case Metadata_type_skiparticle: break; case Metadata_type_year: wrbuf_puts(w, " type=\"year\""); @@ -1057,6 +1058,9 @@ static void info_service_metadata(struct conf_service *service, WRBUF w) case Metadata_type_float: wrbuf_puts(w, " type=\"float\""); break; + case Metadata_type_relevance: + case Metadata_type_position: + break; } switch (md->merge) { diff --git a/src/record.c b/src/record.c index 1b9d1e3..cba903a 100644 --- a/src/record.c +++ b/src/record.c @@ -114,6 +114,7 @@ int record_compare(struct record *r1, struct record *r2, switch (type) { case Metadata_type_generic: + case Metadata_type_skiparticle: if (strcmp(m1->data.text.disp, m2->data.text.disp)) return 0; break; @@ -126,6 +127,9 @@ int record_compare(struct record *r1, struct record *r2, case Metadata_type_float: if (m1->data.fnumber != m2->data.fnumber) return 0; + case Metadata_type_position: + case Metadata_type_relevance: + break; } m1 = m1->next; m2 = m2->next; -- 1.7.10.4