Difference between revisions of "Text field"

From EPrints Documentation
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{fieldtypes}}
 +
__NOTOC__
 +
== Inheritance ==
 +
 
* [[Metadata]]
 
* [[Metadata]]
 
** [[Text field]]
 
** [[Text field]]
  
 
== Description ==
 
== Description ==
 +
 +
This is a very simple type of metadata field, which is used as a basis for several others.
 +
 +
It stores a string of text. The maximum possible length of the string is 255 bytes.
 +
 +
Note that 255 bytes does not mean 255 characters! UTF-8 can use 1 to 4 bytes to store a character. ASCII characters (a-z,0-9 etc) only use 1 byte so it will store 255 ASCII characters, but less of latin and much less of chinese.
  
 
== Properties ==
 
== Properties ==
Line 9: Line 19:
 
| name || default || description  
 
| name || default || description  
 
|-
 
|-
| '''sql_index''' || 0 || ''as for [[Metadata]] but with a different default.''
+
| '''sql_index''' || 0 || ''as for [[Metadata]] but with a different default.''  
 
|-
 
|-
| '''text_index''' || 1 || ''as for [[Metadata]] but with a different default.''
+
| '''text_index''' || 1 || ''as for [[Metadata]] but with a different default.''  
 
|}
 
|}
  
 
== Required Phrases ==
 
== Required Phrases ==
 +
 +
None
 +
 +
== Database ==
 +
 +
Text fields are stored in the database as
 +
 +
fieldname VARCHAR(255)

Revision as of 15:24, 11 January 2007

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Metadata Fields: Arclanguage - Base64 - Bigint - Boolean - Compound - Counter - Dataobjref - Date - Decimal - Email - Fields - Float - Id - Idci - Image - Int - Itemref - Keywords - Langid - Longtext - Longtext_counter - Multilang - Multipart - Name - Namedset - Pagerange - Recaptcha - Relation - Search - Secret - Set - Storable - Subject - Subobject - Text - Time - Timestamp - Url - Uuid

Inheritance

Description

This is a very simple type of metadata field, which is used as a basis for several others.

It stores a string of text. The maximum possible length of the string is 255 bytes.

Note that 255 bytes does not mean 255 characters! UTF-8 can use 1 to 4 bytes to store a character. ASCII characters (a-z,0-9 etc) only use 1 byte so it will store 255 ASCII characters, but less of latin and much less of chinese.

Properties

name default description
sql_index 0 as for Metadata but with a different default.
text_index 1 as for Metadata but with a different default.

Required Phrases

None

Database

Text fields are stored in the database as

fieldname VARCHAR(255)