4 #include <libxslt/xslt.h>
5 #include <libxslt/transform.h>
6 #include <libxslt/xsltutils.h>
10 Metadata_sortkey_relevance,
11 Metadata_sortkey_numeric, // Standard numerical sorting
12 Metadata_sortkey_skiparticle, // Skip leading article when sorting
13 Metadata_sortkey_string // Flat string
16 // Describes known metadata elements and how they are to be manipulated
17 // An array of these structure provides a 'map' against which discovered metadata
18 // elements are matched. It also governs storage, to minimize number of cycles needed
19 // at various tages of processing
22 char *name; // The name of this element. Output by normalization stylesheet
23 int brief; // Is this element to be returned in the brief format?
24 int termlist;// Is this field to be treated as a termlist for browsing?
25 int rank; // Rank factor. 0 means don't use this field for ranking, 1 is default
26 // values >1 give additional significance to a field
27 int sortkey_offset; // -1 if it's not a sortkey, otherwise index
28 // into service/record_cluster->sortkey array
31 Metadata_type_generic, // Generic text field
32 Metadata_type_number, // A number
33 Metadata_type_year // A number
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_type type;
52 // It is conceivable that there will eventually be several 'services' offered
53 // from one server, with separate configuration -- possibly more than one services
54 // associated with the same port. For now, however, only a single service is possible.
58 struct conf_metadata *metadata;
60 struct conf_sortkey *sortkeys;
69 struct conf_service *service;
70 struct conf_server *next;
73 struct conf_queryprofile
78 struct conf_retrievalmap
85 xsltStylesheet *stylesheet;
86 struct conf_retrievalmap *next;
89 struct conf_retrievalprofile
100 char *native_encoding;
104 Nativemapto_marcxchange
107 struct conf_retrievalmap *maplist;
108 struct conf_retrievalprofile *next;
113 struct conf_server *servers;
114 struct conf_queryprofile *queryprofiles;
115 struct conf_retrievalprofile *retrievalprofiles;
118 #ifndef CONFIG_NOEXTERNS
120 extern struct conf_config *config;
124 int read_config(const char *fname);
131 * indent-tabs-mode: nil
133 * vim: shiftwidth=4 tabstop=8 expandtab