Longtext counter field

From EPrints Documentation
Revision as of 11:52, 14 June 2020 by Drn@ecs.soton.ac.uk (talk | contribs) (Added Longtext_counter field)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Metadata Fields: Boolean - Compound - Multilang - Date - Time - Float - Id - Idci - Email - Int - Itemref - Pagerange - Set - Namedset - Subject - Text - Longtext - Keywords - Longtext_counter - Name - Url



A longtext field but with a counter for number of words used displayed next to the input field. Maximum number of words can be specified as a guide but not enforced. maxlength attribute can be used to enforce maximum number of characters as a suitable multiple (e.g. 7.5) of the maxwords.

Requires jQuery JavaScript library to be added to the archive as cfg/static/javascript/auto/directory/00_jquery.js. Tested to work with latest (v3.5.1) version of jQuery. May cause issues with existing JavaScript within EPrints.


As for Longtext fields with the following difference...

name default description
maxwords undefined Can be overridden in the field definition.

Required Phrases