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 constantparams: action=search&agency=100200&profile=test&collectionType=work
19 fields: bibliotek.dk.fields.txt
21 database: bibliotek.work
22 baseurl: http://openbibdk.addi.dk/0.8/
23 objectformat: marcxchange
24 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=work
25 fields: bibliotek.dk.fields.txt
28 database: bibliotek.manifestation
29 baseurl: http://openbibdk.addi.dk/0.8/
30 objectformat: marcxchange
31 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=manifestation
32 fields: bibliotek.dk.fields.txt
34 # Looks like the collectionType can be one of
35 # 'manifestation' for single records
36 # 'work' for some kind of clustered records
37 # 'work-1' looks like manifestation to me, but can be something else
39 # agency=400151 gets (only) music stuff, and that has no marc stuff
40 # agency=100200 returns books and articles, that can handle marc stuff
42 # includeMarcXchange=true asks for MarcXchange record (in some versions).
43 # OR objectFormat=marcxchange (other versions)
45 #chunksize: 10; # initial number of records to get, grows to max present req.
47 # Set to 1 to get much more debug log
51 # Instead of talking to opensearch, it is possible to load test data from
52 # a file. The start position and number of records is appended to the file
53 # name given below, so that you can test with different files.
54 #test_data: /tmp/test_data_file # f.ex. /tmp/test_data_file_1_10.xml
56 # Formatting of the results
59 # (passed directly to LibXML's toString)