projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.12.0
[pazpar2-moved-to-github.git]
/
src
/
record.c
diff --git
a/src/record.c
b/src/record.c
index
53cb34e
..
19b06d7
100644
(file)
--- a/
src/record.c
+++ b/
src/record.c
@@
-1,5
+1,5
@@
/* This file is part of Pazpar2.
/* This file is part of Pazpar2.
- Copyright (C) 2006-2012 Index Data
+ Copyright (C) Index Data
Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-114,6
+114,7
@@
int record_compare(struct record *r1, struct record *r2,
switch (type)
{
case Metadata_type_generic:
switch (type)
{
case Metadata_type_generic:
+ case Metadata_type_skiparticle:
if (strcmp(m1->data.text.disp, m2->data.text.disp))
return 0;
break;
if (strcmp(m1->data.text.disp, m2->data.text.disp))
return 0;
break;
@@
-123,6
+124,13
@@
int record_compare(struct record *r1, struct record *r2,
m1->data.number.max != m2->data.number.max)
return 0;
break;
m1->data.number.max != m2->data.number.max)
return 0;
break;
+ case Metadata_type_float:
+ if (m1->data.fnumber != m2->data.fnumber)
+ return 0;
+ case Metadata_type_position:
+ case Metadata_type_relevance:
+ case Metadata_type_retrieval:
+ break;
}
m1 = m1->next;
m2 = m2->next;
}
m1 = m1->next;
m2 = m2->next;