├── languages ├── fr.mo ├── de_DE.mo ├── template.base.pot ├── template.pot ├── de_DE.po └── fr.po ├── models ├── ElementType.php └── Table │ └── ElementType.php ├── views └── admin │ ├── javascripts │ └── date.js │ └── index │ ├── edit-options.php │ ├── edit.php │ └── index.php ├── plugin.ini ├── README.md ├── controllers └── IndexController.php └── ElementTypesPlugin.php /languages/fr.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biblibre/omeka-plugin-ElementTypes/HEAD/languages/fr.mo -------------------------------------------------------------------------------- /languages/de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biblibre/omeka-plugin-ElementTypes/HEAD/languages/de_DE.mo -------------------------------------------------------------------------------- /models/ElementType.php: -------------------------------------------------------------------------------- 1 | getSelect()->where('element_id = ?', $elementId); 8 | return $this->fetchObject($select); 9 | } 10 | 11 | public function findByElementType($elementType) 12 | { 13 | $select = $this->getSelect()->where('element_type = ?', $elementType); 14 | return $this->fetchObjects($select); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /views/admin/index/edit-options.php: -------------------------------------------------------------------------------- 1 | __('Element Types'))); ?> 2 | 3 | 4 |
5 | 6 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /plugin.ini: -------------------------------------------------------------------------------- 1 | [info] 2 | name = "Element Types" 3 | author = "Julian Maurice" 4 | description = "Allow elements to have a type, thus allowing easier input. For instance, this plugin implements the 'date' type and show a datepicker widget for elements of this type. Other types can be implemented by plugins." 5 | version = "0.5.0" 6 | license = "GPLv3" 7 | link = "https://github.com/biblibre/omeka-plugin-ElementTypes" 8 | support_link = "https://github.com/biblibre/omeka-plugin-ElementTypes/issues" 9 | omeka_minimum_version = "2.0" 10 | omeka_target_version = "2.3" 11 | required_plugins = "" 12 | optional_plugins = "" 13 | -------------------------------------------------------------------------------- /languages/template.base.pot: -------------------------------------------------------------------------------- 1 | # Translation for the Element Types plugin for Omeka. 2 | # Copyright (C) 2015 BibLibre 3 | # This file is distributed under the same license as the Omeka package. 4 | # Julian Maurice| 8 | | 9 | | 10 | |
|---|---|---|
| 18 | | 19 | 24 | | 25 |26 | "> 27 | 28 | | "> 29 | 30 | 31 | | 32 |
| j | ' . __('Day of month') . ' |
| d | ' . __('Day of month (with padding zero)') . ' |
| z | ' . __('Day of year') . ' |
| D | ' . __('Day name (short)') . ' |
| l | ' . __('Day name (long)') . ' |
| n | ' . __('Month of year') . ' |
| m | ' . __('Month of year (with padding zero)') . ' |
| M | ' . __('Month name (short)') . ' |
| F | ' . __('Month name (long)') . ' |
| y | ' . __('Year (2 digits)') . ' |
| Y | ' . __('Year (4 digits)') . ' |