4 #include <libxslt/xslt.h>
5 #include <libxslt/transform.h>
6 #include <libxslt/xsltutils.h>
8 enum conf_sortkey_types
10 Metadata_sortkey_no, // This is not to be used as a sortkey
11 Metadata_sortkey_numeric, // Standard numerical sorting
12 Metadata_sortkey_range, // Range sorting (pick lowest or highest)
13 Metadata_sortkey_skiparticle, // Skip leading article when sorting
14 Metadata_sortkey_string
17 // Describes known metadata elements and how they are to be manipulated
18 // An array of these structure provides a 'map' against which discovered metadata
19 // elements are matched. It also governs storage, to minimize number of cycles needed
20 // at various tages of processing
23 char *name; // The name of this element. Output by normalization stylesheet
24 int brief; // Is this element to be returned in the brief format?
25 int termlist;// Is this field to be treated as a termlist for browsing?
26 int rank; // Rank factor. 0 means don't use this field for ranking, 1 is default
27 // values >1 give additional significance to a field
30 Metadata_type_generic, // Generic text field
31 Metadata_type_integer, // Integer type
32 Metadata_type_year // A year
34 enum conf_sortkey_types sortkey;
37 Metadata_merge_no, // Don't merge
38 Metadata_merge_unique, // Include unique elements in merged block
39 Metadata_merge_longest, // Include the longest (strlen) value
40 Metadata_merge_range, // Store value as a range of lowest-highest
41 Metadata_merge_all // Just include all elements found
49 enum conf_sortkey_types type;
55 struct conf_metadata *metadata;
57 struct conf_sortkey *sortkeys;
66 struct conf_service *service;
67 struct conf_server *next;
70 struct conf_queryprofile
75 struct conf_retrievalmap
82 xsltStylesheet *stylesheet;
83 struct conf_retrievalmap *next;
86 struct conf_retrievalprofile
97 char *native_encoding;
101 Nativemapto_marcxchange
104 struct conf_retrievalmap *maplist;
105 struct conf_retrievalprofile *next;
110 struct conf_server *servers;
111 struct conf_queryprofile *queryprofiles;
112 struct conf_retrievalprofile *retrievalprofiles;
115 #ifndef CONFIG_NOEXTERNS
117 extern struct conf_config *config;
121 int read_config(const char *fname);
128 * indent-tabs-mode: nil
130 * vim: shiftwidth=4 tabstop=8 expandtab