Bug 28998: (follow-up) Apply changes to TwoFactorAuth module and script
[koha.git] / Koha / Database / Columns.pm
1 package Koha::Database::Columns;
2
3 # This file is part of Koha.
4 #
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
17
18 use Modern::Perl;
19 use Koha::I18N qw( __ );
20
21 =head1 NAME
22
23 Koha::Database::Columns
24
25 =head1 SYNOPSIS
26
27   use Koha::Database::Columns;
28   my $columns = Koha::Database::Columns->columns;
29
30 =head1 API
31
32 =head2 Methods
33
34 =head3 columns
35
36 Static method that returns a hashref with mappings from column names
37 to descriptions, for several tables. Currently
38
39 =over
40
41 =item biblio
42
43 =item biblioitems
44
45 =item borrowers
46
47 =item items
48
49 =item statistics
50
51 =item subscription
52
53 =item suggestion
54
55 =back
56
57 =cut
58
59 sub columns {
60     return {
61         borrowers => {
62             "borrowernumber"      => __("Borrower number"),
63             "title"               => __("Salutation"),
64             "surname"             => __("Surname"),
65             "firstname"           => __("First name"),
66             "dateofbirth"         => __("Date of birth"),
67             "initials"            => __("Initials"),
68             "othernames"          => __("Other name"),
69             "sex"                 => __("Gender"),
70             "relationship"        => __("Relationship"),
71             "streetnumber"        => __("Street number"),
72             "streettype"          => __("Street type"),
73             "address"             => __("Address"),
74             "address2"            => __("Address 2"),
75             "city"                => __("City"),
76             "state"               => __("State"),
77             "zipcode"             => __("ZIP/Postal code"),
78             "country"             => __("Country"),
79             "phone"               => __("Primary phone"),
80             "phonepro"            => __("Secondary phone"),
81             "mobile"              => __("Other phone"),
82             "email"               => __("Primary email"),
83             "emailpro"            => __("Secondary email"),
84             "fax"                 => __("Fax"),
85             "B_streetnumber"      => __("Alternate address: Street number"),
86             "B_streettype"        => __("Alternate address: Street type"),
87             "B_address"           => __("Alternate address: Address"),
88             "B_address2"          => __("Alternate address: Address 2"),
89             "B_city"              => __("Alternate address: City"),
90             "B_state"             => __("Alternate address: State"),
91             "B_zipcode"           => __("Alternate address: ZIP/Postal code"),
92             "B_country"           => __("Alternate address: Country"),
93             "B_phone"             => __("Alternate address: Phone"),
94             "B_email"             => __("Alternate address: Email"),
95             "contactnote"         => __("Alternate contact: Note"),
96             "altcontactfirstname" => __("Alternate contact: First name"),
97             "altcontactsurname"   => __("Alternate contact: Surname"),
98             "altcontactaddress1"  => __("Alternate contact: Address"),
99             "altcontactaddress2"  => __("Alternate contact: Address 2"),
100             "altcontactaddress3"  => __("Alternate contact: City"),
101             "contactname"         => __("Alternate contact: Surname"),
102             "contactfirstname"    => __("Alternate contact: First name"),
103             "contacttitle"        => __("Alternate contact: Title"),
104             "altcontactstate"     => __("Alternate contact: State"),
105             "altcontactzipcode"   => __("Alternate contact: ZIP/Postal code"),
106             "altcontactcountry"   => __("Alternate contact: Country"),
107             "altcontactphone"     => __("Alternate contact: Phone"),
108             "cardnumber"          => __("Card number"),
109             "branchcode"          => __("Home library"),
110             "categorycode"        => __("Patron category"),
111             "sort1"               => __("Sort 1"),
112             "sort2"               => __("Sort 2"),
113             "dateenrolled"        => __("Registration date"),
114             "dateexpiry"          => __("Expiry date"),
115             "opacnote"            => __("OPAC note"),
116             "borrowernotes"       => __("Circulation note"),
117             "userid"              => __("Username"),
118             "password"            => __("Password"),
119             "flags"               => __("System permissions"),
120             "gonenoaddress"       => __("Gone no address flag"),
121             "lost"                => __("Lost card flag"),
122             "debarred"            => __("Restricted [until] flag"),
123             "debarredcomment"     => __("Comment"),
124             "smsalertnumber"      => __("Mobile phone number"),
125             "privacy"             => __("Privacy settings"),
126             "autorenew_checkouts" => __("Allow auto-renewals"),
127         },
128         items => {
129             "itemnumber"           => __("Item number (internal)"),
130             "biblionumber"         => __("Biblio number (internal)"),
131             "biblioitemnumber"     => __("Biblioitem number (internal)"),
132             "barcode"              => __("Barcode"),
133             "dateaccessioned"      => __("Date acquired"),
134             "booksellerid"         => __("Source of acquisition"),
135             "homebranch"           => __("Permanent library"),
136             "price"                => __("Price"),
137             "replacementprice"     => __("Replacement price"),
138             "replacementpricedate" => __("Price effective from"),
139             "datelastborrowed"     => __("Date last checked out"),
140             "datelastseen"         => __("Date last seen"),
141             "stack"                => __("Shelving control number"),
142             "onloan"               => __("Due date"),
143             "cn_source"            => __("Source of classification / shelving scheme"),
144             "cn_sort"              => __("Koha normalized classification for sorting"),
145             "notforloan"           => __("Not for loan"),
146             "itemlost"             => __("Lost status"),
147             "itemlost_on"          => __("Lost on"),
148             "withdrawn"            => __("Withdrawn status"),
149             "withdrawn_on"         => __("Withdrawn on"),
150             "itemcallnumber"       => __("Call number"),
151             "issues"               => __("Total checkouts"),
152             "renewals"             => __("Total renewals"),
153             "reserves"             => __("Total holds"),
154             "restricted"           => __("Use restrictions"),
155             "itemnotes"            => __("Public note"),
156             "itemnotes_nonpublic"  => __("Internal note"),
157             "holdingbranch"        => __("Current library"),
158             "timestamp"            => __("Timestamp"),
159             "location"             => __("Shelving location"),
160             "permanent_location"   => __("Permanent shelving location"),
161             "ccode"                => __("Collection"),
162             "itype"                => __("Koha itemtype"),
163             "stocknumber"          => __("Inventory number"),
164             "damaged"              => __("Damaged status"),
165             "damaged_on"           => __("Damaged on"),
166             "materials"            => __("Materials specified"),
167             "uri"                  => __("Uniform Resource Identifier"),
168             "more_subfields_xml"   => __("Additional subfields (XML)"),
169             "enumchron"            => __("Serial enumeraton/chronology"),
170             "copynumber"           => __("Copy number"),
171             "new_status"           => __("New status"),
172         },
173         statistics => {
174             "datetime"       => __("Statistics date and time"),
175             "branch"         => __("Library"),
176             "value"          => __("Value"),
177             "type"           => __("Type"),
178             "other"          => __(""),
179             "itemnumber"     => __("Item number"),
180             "itemtype"       => __("Itemtype"),
181             "borrowernumber" => __("Borrower number"),
182         },
183         biblio => {
184             "frameworkcode" => __("Framework code"),
185             "author"        => __("Author"),
186             "datecreated"   => __("Creation date"),
187             "timestamp"     => __("Modification date"),
188         },
189         biblioitems => {
190             "biblioitemnumber" => __("Biblioitem number"),
191             "biblionumber"     => __("Biblio number"),
192             "volume"           => __("Volume number"),
193             "number"           => __("Number"),
194             "classification"   => __("Classification"),
195             "itemtype"         => __("Biblio-level item type"),
196             "isbn"             => __("ISBN"),
197             "issn"             => __("ISSN"),
198             "dewey"            => __("Dewey/classification"),
199             "subclass"         => __("Sub classification"),
200             "publicationyear"  => __("Publication date"),
201             "publishercode"    => __("Publisher"),
202             "volumedate"       => __("Volume date"),
203             "volumedesc"       => __("Volume information"),
204             "timestamp"        => __("Timestamp"),
205             "illus"            => __("Illustrations"),
206             "pages"            => __("Number of pages"),
207             "notes"            => __("Notes"),
208             "size"             => __("Size"),
209             "place"            => __("Place of publication"),
210             "lccn"             => __("LCCN"),
211             "agerestriction"   => __("Age restriction"),
212             "url"              => __("URL"),
213             "title"            => __("Title"),
214         },
215         subscription => {
216             "startdate"   => __("Start date"),
217             "enddate"     => __("End date"),
218             "periodicity" => __("Periodicity"),
219             "callnumber"  => __("Call number"),
220             "location"    => __("Location"),
221             "branchcode"  => __("Library"),
222         },
223         suggestions=> {
224             "author"          => __("author"),
225             "copyrightdate"   => __("copyrightdate"),
226             "isbn"            => __("isbn"),
227             "publishercode"   => __("publishercode"),
228             "collectiontitle" => __("collectiontitle"),
229             "place"           => __("place"),
230             "quantity"        => __("quantity"),
231             "itemtype"        => __("itemtype"),
232             "branchcode"      => __("branchcode"),
233             "patronreason"    => __("patronreason"),
234             "note"            => __("note"),
235         }
236     };
237 }
238
239 1;