4 #include <libxslt/xslt.h>
5 #include <libxslt/transform.h>
6 #include <libxslt/xsltutils.h>
8 // Describes known metadata elements and how they are to be manipulated
11 char *name; // The name of this element. Output by normalization stylesheet
12 int brief; // Is this element to be returned in the brief format?
13 int termlist;// Is this field to be treated as a termlist for browsing?
14 int rank; // Rank factor. 0 means don't use this field for ranking, 1 is default
17 Metadata_type_generic, // Generic text field
18 Metadata_type_integer, // Integer type
19 Metadata_type_year // A year
23 Metadata_sortkey_no, // This is not to be used as a sortkey
24 Metadata_sortkey_numeric, // Standard numerical sorting
25 Metadata_sortkey_range, // Range sorting (pick lowest or highest)
26 Metadata_sortkey_skiparticle // Skip leading article when sorting
30 Metadata_merge_no, // Don't merge
31 Metadata_merge_unique, // Include unique elements in merged block
32 Metadata_merge_longest, // Include the longest (strlen) value
33 Metadata_merge_range, // Store value as a range of lowest-highest
34 Metadata_merge_all // Just include all elements found
41 struct conf_metadata *metadata;
50 struct conf_service *service;
51 struct conf_server *next;
54 struct conf_queryprofile
58 struct conf_retrievalmap
65 xsltStylesheet *stylesheet;
66 struct conf_retrievalmap *next;
69 struct conf_retrievalprofile
80 char *native_encoding;
84 Nativemapto_marcxchange
87 struct conf_retrievalmap *maplist;
88 struct conf_retrievalprofile *next;
93 struct conf_server *servers;
94 struct conf_queryprofile *queryprofiles;
95 struct conf_retrievalprofile *retrievalprofiles;
98 #ifndef CONFIG_NOEXTERNS
100 extern struct conf_config *config;
104 int read_config(const char *fname);
111 * indent-tabs-mode: nil
113 * vim: shiftwidth=4 tabstop=8 expandtab