/* This file is part of Pazpar2.
- Copyright (C) 2006-2013 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
enum conf_metadata_type {
Metadata_type_generic, // Generic text field
- Metadata_type_year, // A number
- Metadata_type_date // A number
+ Metadata_type_year, // year YYYY - YYYY
+ Metadata_type_date, // date YYYYMMDD - YYYYMMDD
+ Metadata_type_float, // float number
+ Metadata_type_skiparticle,
+ Metadata_type_relevance,
+ Metadata_type_position,
};
enum conf_metadata_merge {
Metadata_merge_first // All from first target
};
-enum conf_sortkey_type {
- Metadata_sortkey_relevance,
- Metadata_sortkey_numeric, // Standard numerical sorting
- Metadata_sortkey_skiparticle, // Skip leading article when sorting
- Metadata_sortkey_string, // Flat string
- Metadata_sortkey_position // Position
-};
-
// This controls the ability to insert 'static' values from settings into retrieval recs
enum conf_setting_type {
Metadata_setting_no,
struct conf_sortkey
{
char *name;
- enum conf_sortkey_type type;
+ enum conf_metadata_type type;
};
struct conf_server;