/[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

Contents of /search/config.pm

Parent Directory Parent Directory | Revision Log Revision Log


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

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 'ISN',
14 );
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 'ISN',
32 'MFN',
33 '215+',
34 '101',
35 );
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 '101', 'Jezik',
48 '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 'knjiz','Knji¾nica',
59 'sv', 'Podaci o svescima',
60 'ISSN', 'ISSN',
61 '326', 'Uèestalost izla¾enja',
62 '992', 'Podaci o fondu',
63 'tip', 'Tip graðe',
64 '856', 'URI',
65 );
66
67
68 # Field Display Order
69 @default::FieldDisplayOrder = (
70 'ISBN',
71 'ISSN',
72 '700+',
73 '200+',
74 '205',
75 '210+',
76 '326',
77 '215+',
78 '101',
79 '225',
80 '300+',
81 '330',
82 '423',
83 '464',
84 '610',
85 '675+',
86 '990',
87 '991',
88 '992',
89 'sv',
90 '856',
91 'knjiz',
92 'tip',
93 );
94
95 # separators
96 %default::Separator = (
97 '700+', '; ',
98 '990', ' ',
99 '991', ', ',
100 '300+', '.- ',
101 '225', ', ',
102 '610', ' * ',
103 '101', '; '
104
105 );
106
107 # tip gradje (we'll try to read all those directories in your isis data dirs)
108 %default::tip = (
109 'LIBRI', "Knjiga",
110 # 'ARTI', "Èlanak/poglavlje",
111 'PERI', "Èasopis",
112 );
113
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 $default::max_display_url_len = 80;
125
126 # 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 # 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 # 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
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 "ebsco-buh-ft",
174 "ebsco-hch-ft",
175 "ebsco-aph-ft",
176 "ebsco-f5h-ft",
177 "ebsco-hph-ft",
178 );
179
180 1;

  ViewVC Help
Powered by ViewVC 1.1.26