1 package Koha::Database::Columns;
3 # This file is part of Koha.
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.
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.
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>.
19 use Koha::I18N qw( __ );
23 Koha::Database::Columns
27 use Koha::Database::Columns;
28 my $columns = Koha::Database::Columns->columns;
36 Static method that returns a hashref with mappings from column names
37 to descriptions, for several tables. Currently
62 "borrowernumber" => __("Borrower number"),
63 "title" => __("Salutation"),
64 "surname" => __("Surname"),
65 "firstname" => __("First name"),
66 "middle_name" => __("Middle name"),
67 "dateofbirth" => __("Date of birth"),
68 "initials" => __("Initials"),
69 "othernames" => __("Other name"),
70 "sex" => __("Gender"),
71 "relationship" => __("Relationship"),
72 "streetnumber" => __("Street number"),
73 "streettype" => __("Street type"),
74 "address" => __("Address"),
75 "address2" => __("Address 2"),
77 "state" => __("State"),
78 "zipcode" => __("ZIP/Postal code"),
79 "country" => __("Country"),
80 "phone" => __("Primary phone"),
81 "phonepro" => __("Secondary phone"),
82 "mobile" => __("Other phone"),
83 "email" => __("Primary email"),
84 "emailpro" => __("Secondary email"),
86 "B_streetnumber" => __("Alternate address: Street number"),
87 "B_streettype" => __("Alternate address: Street type"),
88 "B_address" => __("Alternate address: Address"),
89 "B_address2" => __("Alternate address: Address 2"),
90 "B_city" => __("Alternate address: City"),
91 "B_state" => __("Alternate address: State"),
92 "B_zipcode" => __("Alternate address: ZIP/Postal code"),
93 "B_country" => __("Alternate address: Country"),
94 "B_phone" => __("Alternate address: Phone"),
95 "B_email" => __("Alternate address: Email"),
96 "contactnote" => __("Alternate contact: Note"),
97 "altcontactfirstname" => __("Alternate contact: First name"),
98 "altcontactsurname" => __("Alternate contact: Surname"),
99 "altcontactaddress1" => __("Alternate contact: Address"),
100 "altcontactaddress2" => __("Alternate contact: Address 2"),
101 "altcontactaddress3" => __("Alternate contact: City"),
102 "contactname" => __("Alternate contact: Surname"),
103 "contactfirstname" => __("Alternate contact: First name"),
104 "contacttitle" => __("Alternate contact: Title"),
105 "altcontactstate" => __("Alternate contact: State"),
106 "altcontactzipcode" => __("Alternate contact: ZIP/Postal code"),
107 "altcontactcountry" => __("Alternate contact: Country"),
108 "altcontactphone" => __("Alternate contact: Phone"),
109 "cardnumber" => __("Card number"),
110 "branchcode" => __("Home library"),
111 "categorycode" => __("Patron category"),
112 "sort1" => __("Sort 1"),
113 "sort2" => __("Sort 2"),
114 "dateenrolled" => __("Registration date"),
115 "dateexpiry" => __("Expiry date"),
116 "opacnote" => __("OPAC note"),
117 "borrowernotes" => __("Circulation note"),
118 "userid" => __("Username"),
119 "password" => __("Password"),
120 "flags" => __("System permissions"),
121 "gonenoaddress" => __("Gone no address flag"),
122 "lost" => __("Lost card flag"),
123 "debarred" => __("Restricted [until] flag"),
124 "debarredcomment" => __("Comment"),
125 "smsalertnumber" => __("Mobile phone number"),
126 "privacy" => __("Privacy settings"),
127 "autorenew_checkouts" => __("Allow auto-renewals"),
130 "itemnumber" => __("Item number (internal)"),
131 "biblionumber" => __("Biblio number (internal)"),
132 "biblioitemnumber" => __("Biblioitem number (internal)"),
133 "barcode" => __("Barcode"),
134 "dateaccessioned" => __("Date acquired"),
135 "booksellerid" => __("Source of acquisition"),
136 "homebranch" => __("Permanent library"),
137 "price" => __("Price"),
138 "replacementprice" => __("Replacement price"),
139 "replacementpricedate" => __("Price effective from"),
140 "datelastborrowed" => __("Date last checked out"),
141 "datelastseen" => __("Date last seen"),
142 "stack" => __("Shelving control number"),
143 "onloan" => __("Due date"),
144 "cn_source" => __("Source of classification / shelving scheme"),
145 "cn_sort" => __("Koha normalized classification for sorting"),
146 "notforloan" => __("Not for loan"),
147 "itemlost" => __("Lost status"),
148 "itemlost_on" => __("Lost on"),
149 "withdrawn" => __("Withdrawn status"),
150 "withdrawn_on" => __("Withdrawn on"),
151 "itemcallnumber" => __("Call number"),
152 "issues" => __("Total checkouts"),
153 "renewals" => __("Total renewals"),
154 "reserves" => __("Total holds"),
155 "restricted" => __("Use restrictions"),
156 "itemnotes" => __("Public note"),
157 "itemnotes_nonpublic" => __("Internal note"),
158 "holdingbranch" => __("Current library"),
159 "timestamp" => __("Timestamp"),
160 "location" => __("Shelving location"),
161 "permanent_location" => __("Permanent shelving location"),
162 "ccode" => __("Collection"),
163 "itype" => __("Koha itemtype"),
164 "stocknumber" => __("Inventory number"),
165 "damaged" => __("Damaged status"),
166 "damaged_on" => __("Damaged on"),
167 "materials" => __("Materials specified"),
168 "uri" => __("Uniform Resource Identifier"),
169 "more_subfields_xml" => __("Additional subfields (XML)"),
170 "enumchron" => __("Serial enumeraton/chronology"),
171 "copynumber" => __("Copy number"),
172 "new_status" => __("New status"),
175 "datetime" => __("Statistics date and time"),
176 "branch" => __("Library"),
177 "value" => __("Value"),
178 "type" => __("Type"),
180 "itemnumber" => __("Item number"),
181 "itemtype" => __("Itemtype"),
182 "borrowernumber" => __("Borrower number"),
185 "frameworkcode" => __("Framework code"),
186 "author" => __("Author"),
187 "datecreated" => __("Creation date"),
188 "timestamp" => __("Modification date"),
191 "biblioitemnumber" => __("Biblioitem number"),
192 "biblionumber" => __("Biblio number"),
193 "volume" => __("Volume number"),
194 "number" => __("Number"),
195 "classification" => __("Classification"),
196 "itemtype" => __("Biblio-level item type"),
197 "isbn" => __("ISBN"),
198 "issn" => __("ISSN"),
199 "dewey" => __("Dewey/classification"),
200 "subclass" => __("Sub classification"),
201 "publicationyear" => __("Publication date"),
202 "publishercode" => __("Publisher"),
203 "volumedate" => __("Volume date"),
204 "volumedesc" => __("Volume information"),
205 "timestamp" => __("Timestamp"),
206 "illus" => __("Illustrations"),
207 "pages" => __("Number of pages"),
208 "notes" => __("Notes"),
209 "size" => __("Size"),
210 "place" => __("Place of publication"),
211 "lccn" => __("LCCN"),
212 "agerestriction" => __("Age restriction"),
214 "title" => __("Title"),
217 "startdate" => __("Start date"),
218 "enddate" => __("End date"),
219 "periodicity" => __("Periodicity"),
220 "callnumber" => __("Call number"),
221 "location" => __("Location"),
222 "branchcode" => __("Library"),
225 "author" => __("author"),
226 "copyrightdate" => __("copyrightdate"),
227 "isbn" => __("isbn"),
228 "publishercode" => __("publishercode"),
229 "collectiontitle" => __("collectiontitle"),
230 "place" => __("place"),
231 "quantity" => __("quantity"),
232 "itemtype" => __("itemtype"),
233 "branchcode" => __("branchcode"),
234 "patronreason" => __("patronreason"),
235 "note" => __("note"),