/[webpac-proto]/search/config.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /search/config.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations)
Sun Oct 27 21:20:47 2002 UTC (18 years, 11 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +5 -1 lines
mode dbs

1 dpavlin 1.1 #!/usr/bin/perl
2    
3     use strict;
4    
5     ### this is for search
6    
7     # define fileds in basic search
8     @main::NormalSearchFieldNames = (
9     '700+',
10     '200+',
11     '610',
12     '210+',
13 dpavlin 1.8 'ISN',
14 dpavlin 1.1 );
15     $main::NormalSearchDropdowns = 3 ;
16    
17     # define fileds in Advanced search
18     @main::AdvancedSearchFieldNames = (
19     '700+',
20     '200+',
21     '610',
22     '210+',
23     '225',
24     '300+',
25     '330',
26     '464',
27     '675',
28     '686',
29     '990',
30     '991',
31 dpavlin 1.8 'ISN',
32 dpavlin 1.1 'MFN',
33     '215+',
34 dpavlin 1.5 '101',
35 dpavlin 1.1 );
36     $main::AdvancedSearchDropdowns = 4 ;
37    
38     ### this is for output
39    
40     # Field Names
41     %default::FieldNames = (
42     '700+', 'Autor(i)',
43     '200+', 'Naslov',
44     '205', 'Izdanje',
45     '210+', 'Izdavanje',
46     '215+', 'Materijalni opis',
47 dpavlin 1.5 '101', 'Jezik',
48 dpavlin 1.1 '225', 'Nakladnièka cjelina',
49     '300+', 'Napomena',
50     '330', 'Sadr¾aj',
51     '423', 'Prikriveni radovi',
52     '464', 'Analitièki radovi',
53     '610', 'Kljuène rijeèi',
54     '675+', 'Klasifik. oznaka',
55     '990', 'Signatura',
56     '991', 'Inventarni broj',
57     'ISBN', 'ISBN',
58 dpavlin 1.4 'knjiz','Knji¾nica',
59 dpavlin 1.1 'sv', 'Podaci o svescima',
60 dpavlin 1.8 'ISSN', 'ISSN',
61     '326', 'Uèestalost izla¾enja',
62     '992', 'Podaci o fondu',
63     'tip', 'Tip graðe',
64 dpavlin 1.10 '856', 'URI',
65 dpavlin 1.1 );
66    
67    
68     # Field Display Order
69     @default::FieldDisplayOrder = (
70     'ISBN',
71 dpavlin 1.8 'ISSN',
72 dpavlin 1.1 '700+',
73     '200+',
74     '205',
75     '210+',
76 dpavlin 1.8 '326',
77 dpavlin 1.1 '215+',
78 dpavlin 1.5 '101',
79 dpavlin 1.1 '225',
80     '300+',
81     '330',
82     '423',
83     '464',
84     '610',
85     '675+',
86     '990',
87     '991',
88 dpavlin 1.8 '992',
89 dpavlin 1.1 'sv',
90 dpavlin 1.10 '856',
91 dpavlin 1.4 'knjiz',
92 dpavlin 1.8 'tip',
93 dpavlin 1.1 );
94    
95     # separators
96     %default::Separator = (
97 dpavlin 1.3 '700+', '; ',
98 dpavlin 1.1 '990', ' ',
99     '991', ', ',
100     '300+', '.- ',
101     '225', ', ',
102     '610', ' * ',
103 dpavlin 1.5 '101', '; '
104 dpavlin 1.1
105 dpavlin 1.8 );
106    
107 dpavlin 1.12 # tip gradje (we'll try to read all those directories in your isis data dirs)
108 dpavlin 1.8 %default::tip = (
109     'LIBRI', "Knjiga",
110 dpavlin 1.9 # 'ARTI', "Èlanak/poglavlje",
111 dpavlin 1.8 'PERI', "Èasopis",
112 dpavlin 1.1 );
113 dpavlin 1.12
114     # define mapping from types to html output and define order of display
115     @default::tip_html = (
116     # tip # html output
117     'Knjiga', "Knjiga",
118     # 'Èlanak/poglavlje', "Èlanak/poglavlje",
119     'Èasopis', "Èasopis",
120     'on-line', "on-line izdanje",
121     );
122    
123     # chop URL to this len and add ...
124 dpavlin 1.11 $default::max_display_url_len = 80;
125 dpavlin 1.1
126 dpavlin 1.2 # Search.cgi Configuration Constrants
127    
128     # List of default configuration settings
129     %main::DefaultSettings = (
130     'lowest-year', '1990',
131     'max-score', '1000',
132     'allow-summary-displays','no',
133     'allow-similiar-search','no',
134     'allow-regular-searches','no',
135     'deliver-empty-results-from-regular-search','no',
136     # 'allow-relevance-feedback-searches','no',
137     'mailer-application','/usr/lib/sendmail',
138     'server-log','mps.log',
139     'output-colums','yes',
140     'show-nr-colums',3,
141     'show-past-date-list','no',
142     'database-for-SearchFieldDescriptions','ps',
143     );
144    
145 dpavlin 1.6 # Hash of icon/images names that we use
146     %main::ImageNames = (
147     'banner', 'banner.gif',
148     'collapse', 'collapse.gif',
149     'expand', 'expand.gif',
150     );
151    
152 dpavlin 1.7 # Javascript magic
153     $main::JavaScript_SetChecked = '<SCRIPT LANGUAGE="JavaScript">
154     <!-- hide
155     function SetChecked(val) {
156     dml=document.Search;
157     len = dml.elements.length;
158     var i=0;
159     for( i=0 ; i<len ; i++) {
160     if (dml.elements[i].name==\'Database\') {
161     dml.elements[i].checked=val;
162     }
163     }
164     }
165     // -->
166     </SCRIPT>
167     ';
168 dpavlin 1.11
169     # databases which don't have to be in database.cf (for example filled by
170     # other external script like web crawler)
171     @main::always_selected_databases = (
172     "sciencedirect",
173 dpavlin 1.14 "ebsco-buh-ft",
174     "ebsco-hch-ft",
175     "ebsco-aph-ft",
176     "ebsco-f5h-ft",
177     "ebsco-hph-ft",
178 dpavlin 1.11 );
179 dpavlin 1.2
180 dpavlin 1.1 1;

  ViewVC Help
Powered by ViewVC 1.1.26