1 # Config file for dbc-opensearch
3 # The program first tries to load /etc/dbc-opensearch-gw.cfg
4 # If that fails, tries to load dbc-opensearch-gw.cfg in current dir
5 # If that fails, outputs a warning and runs with defaults.
7 # Defining the back end
9 # These three are concatenated to get the URL to the opensearch server.
10 # Later more stuff is appended, like the query, start and number of records,
11 # etc. Any URL parameter can be overridden in the database name, see below
14 baseurl: http://openbibdk.addi.dk/0.8/
16 #constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=work
17 constantparams: action=search&agency=100200&profile=test&collectionType=work&rank=rank_general
18 fields: bibliotek.dk.fields.txt
20 database: bibliotek.work
21 baseurl: http://openbibdk.addi.dk/0.8/
22 objectformat: marcxchange
23 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=work
24 fields: bibliotek.dk.fields.txt
27 database: bibliotek.manifestation
28 baseurl: http://openbibdk.addi.dk/0.8/
29 objectformat: marcxchange
30 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=manifestation
31 fields: bibliotek.dk.fields.txt
33 # Looks like the collectionType can be one of
34 # 'manifestation' for single records
35 # 'work' for some kind of clustered records
36 # 'work-1' looks like manifestation to me, but can be something else
38 # agency=400151 gets (only) music stuff, and that has no marc stuff
39 # agency=100200 returns books and articles, that can handle marc stuff
41 # includeMarcXchange=true asks for MarcXchange record (in some versions).
42 # OR objectFormat=marcxchange (other versions)
44 #chunksize: 10; # initial number of records to get, grows to max present req.
46 # Set to 1 to get much more debug log
50 # Instead of talking to opensearch, it is possible to load test data from
51 # a file. The start position and number of records is appended to the file
52 # name given below, so that you can test with different files.
53 #test_data: /tmp/test_data_file # f.ex. /tmp/test_data_file_1_10.xml
55 # Formatting of the results
58 # (passed directly to LibXML's toString)