/[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.9 - (hide annotations)
Wed Jul 17 19:33:21 2002 UTC (19 years, 2 months ago) by dpavlin
Branch: MAIN
Changes since 1.8: +1 -1 lines
privremeno maknuti ARTI

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.1 );
65    
66    
67     # Field Display Order
68     @default::FieldDisplayOrder = (
69     'ISBN',
70 dpavlin 1.8 'ISSN',
71 dpavlin 1.1 '700+',
72     '200+',
73     '205',
74     '210+',
75 dpavlin 1.8 '326',
76 dpavlin 1.1 '215+',
77 dpavlin 1.5 '101',
78 dpavlin 1.1 '225',
79     '300+',
80     '330',
81     '423',
82     '464',
83     '610',
84     '675+',
85     '990',
86     '991',
87 dpavlin 1.8 '992',
88 dpavlin 1.1 'sv',
89 dpavlin 1.4 'knjiz',
90 dpavlin 1.8 'tip',
91 dpavlin 1.1 );
92    
93     # separators
94     %default::Separator = (
95 dpavlin 1.3 '700+', '; ',
96 dpavlin 1.1 '990', ' ',
97     '991', ', ',
98     '300+', '.- ',
99     '225', ', ',
100     '610', ' * ',
101 dpavlin 1.5 '101', '; '
102 dpavlin 1.1
103 dpavlin 1.8 );
104    
105     # tip gradje
106     %default::tip = (
107     'LIBRI', "Knjiga",
108 dpavlin 1.9 # 'ARTI', "Èlanak/poglavlje",
109 dpavlin 1.8 'PERI', "Èasopis",
110 dpavlin 1.1 );
111    
112 dpavlin 1.2 # Search.cgi Configuration Constrants
113    
114     # List of default configuration settings
115     %main::DefaultSettings = (
116     'lowest-year', '1990',
117     'max-score', '1000',
118     'allow-summary-displays','no',
119     'allow-similiar-search','no',
120     'allow-regular-searches','no',
121     'deliver-empty-results-from-regular-search','no',
122     # 'allow-relevance-feedback-searches','no',
123     'mailer-application','/usr/lib/sendmail',
124     'server-log','mps.log',
125     'output-colums','yes',
126     'show-nr-colums',3,
127     'show-past-date-list','no',
128     'database-for-SearchFieldDescriptions','ps',
129     );
130    
131 dpavlin 1.6 # Hash of icon/images names that we use
132     %main::ImageNames = (
133     'banner', 'banner.gif',
134     'collapse', 'collapse.gif',
135     'expand', 'expand.gif',
136     );
137    
138 dpavlin 1.7 # Javascript magic
139     $main::JavaScript_SetChecked = '<SCRIPT LANGUAGE="JavaScript">
140     <!-- hide
141     function SetChecked(val) {
142     dml=document.Search;
143     len = dml.elements.length;
144     var i=0;
145     for( i=0 ; i<len ; i++) {
146     if (dml.elements[i].name==\'Database\') {
147     dml.elements[i].checked=val;
148     }
149     }
150     }
151     // -->
152     </SCRIPT>
153     ';
154 dpavlin 1.2
155 dpavlin 1.1 1;

  ViewVC Help
Powered by ViewVC 1.1.26