Bug 26947: DBIC schema changes
[koha.git] / Koha / Schema / Result / Z3950server.pm
1 use utf8;
2 package Koha::Schema::Result::Z3950server;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Z3950server
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<z3950servers>
19
20 =cut
21
22 __PACKAGE__->table("z3950servers");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique identifier assigned by Koha
33
34 =head2 host
35
36   data_type: 'varchar'
37   is_nullable: 1
38   size: 255
39
40 target's host name
41
42 =head2 port
43
44   data_type: 'integer'
45   is_nullable: 1
46
47 port number used to connect to target
48
49 =head2 db
50
51   data_type: 'varchar'
52   is_nullable: 1
53   size: 255
54
55 target's database name
56
57 =head2 userid
58
59   data_type: 'varchar'
60   is_nullable: 1
61   size: 255
62
63 username needed to log in to target
64
65 =head2 password
66
67   data_type: 'varchar'
68   is_nullable: 1
69   size: 255
70
71 password needed to log in to target
72
73 =head2 servername
74
75   data_type: 'longtext'
76   is_nullable: 0
77
78 name given to the target by the library
79
80 =head2 checked
81
82   data_type: 'smallint'
83   is_nullable: 1
84
85 whether this target is checked by default  (1 for yes, 0 for no)
86
87 =head2 rank
88
89   data_type: 'integer'
90   is_nullable: 1
91
92 where this target appears in the list of targets
93
94 =head2 syntax
95
96   data_type: 'varchar'
97   is_nullable: 1
98   size: 80
99
100 marc format provided by this target
101
102 =head2 timeout
103
104   data_type: 'integer'
105   default_value: 0
106   is_nullable: 0
107
108 number of seconds before Koha stops trying to access this server
109
110 =head2 servertype
111
112   data_type: 'enum'
113   default_value: 'zed'
114   extra: {list => ["zed","sru"]}
115   is_nullable: 0
116
117 zed means z39.50 server
118
119 =head2 encoding
120
121   data_type: 'mediumtext'
122   is_nullable: 1
123
124 characters encoding provided by this target
125
126 =head2 recordtype
127
128   data_type: 'enum'
129   default_value: 'biblio'
130   extra: {list => ["authority","biblio"]}
131   is_nullable: 0
132
133 server contains bibliographic or authority records
134
135 =head2 sru_options
136
137   data_type: 'varchar'
138   is_nullable: 1
139   size: 255
140
141 options like sru=get, sru_version=1.1; will be passed to the server via ZOOM
142
143 =head2 sru_fields
144
145   data_type: 'longtext'
146   is_nullable: 1
147
148 contains the mapping between the Z3950 search fields and the specific SRU server indexes
149
150 =head2 add_xslt
151
152   data_type: 'longtext'
153   is_nullable: 1
154
155 zero or more paths to XSLT files to be processed on the search results
156
157 =head2 attributes
158
159   data_type: 'varchar'
160   is_nullable: 1
161   size: 255
162
163 additional attributes passed to PQF queries
164
165 =cut
166
167 __PACKAGE__->add_columns(
168   "id",
169   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
170   "host",
171   { data_type => "varchar", is_nullable => 1, size => 255 },
172   "port",
173   { data_type => "integer", is_nullable => 1 },
174   "db",
175   { data_type => "varchar", is_nullable => 1, size => 255 },
176   "userid",
177   { data_type => "varchar", is_nullable => 1, size => 255 },
178   "password",
179   { data_type => "varchar", is_nullable => 1, size => 255 },
180   "servername",
181   { data_type => "longtext", is_nullable => 0 },
182   "checked",
183   { data_type => "smallint", is_nullable => 1 },
184   "rank",
185   { data_type => "integer", is_nullable => 1 },
186   "syntax",
187   { data_type => "varchar", is_nullable => 1, size => 80 },
188   "timeout",
189   { data_type => "integer", default_value => 0, is_nullable => 0 },
190   "servertype",
191   {
192     data_type => "enum",
193     default_value => "zed",
194     extra => { list => ["zed", "sru"] },
195     is_nullable => 0,
196   },
197   "encoding",
198   { data_type => "mediumtext", is_nullable => 1 },
199   "recordtype",
200   {
201     data_type => "enum",
202     default_value => "biblio",
203     extra => { list => ["authority", "biblio"] },
204     is_nullable => 0,
205   },
206   "sru_options",
207   { data_type => "varchar", is_nullable => 1, size => 255 },
208   "sru_fields",
209   { data_type => "longtext", is_nullable => 1 },
210   "add_xslt",
211   { data_type => "longtext", is_nullable => 1 },
212   "attributes",
213   { data_type => "varchar", is_nullable => 1, size => 255 },
214 );
215
216 =head1 PRIMARY KEY
217
218 =over 4
219
220 =item * L</id>
221
222 =back
223
224 =cut
225
226 __PACKAGE__->set_primary_key("id");
227
228
229 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
230 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6X1cn33CRBtk/lMZF8QY2Q
231
232 sub koha_object_class {
233     'Koha::Z3950Server';
234 }
235 sub koha_objects_class {
236     'Koha::Z3950Servers';
237 }
238
239 1;