⬇️ Install package: OMP 3.5 · OMP 3.4 — or browse all Releases.
A generic plugin for Open Monograph Press (OMP) that lets you add configurable extra
metadata fields to the publication Metadata tab. The values are persisted in the
publication schema and are available in the book theme via $publication->getData('key')
or $publication->getLocalizedData('key').
Developed and maintained by OJSBR. See the Credits & authorship section below.
| OMP version | Branch | Plugin release |
|---|---|---|
| OMP 3.5.x | stable-3_5_0 (default) |
1.0.0.0 |
| OMP 3.4.x | stable-3_4_0 |
1.0.0.0 |
Both branches share the same feature set. The OMP 3.5 branch follows PKP issue #11793:
the schema/form hooks are always registered and the getEnabled() check runs inside the
callbacks, so the publication schema is extended on every request and the SchemaDAO save
does not silently drop the custom fields.
- Install via Settings → Website → Plugins → Upload A New Plugin, or extract the folder
into
plugins/generic/so you getplugins/generic/customMetadata/. - Enable Custom Metadata under the Generic plugins list.
Open the plugin Settings and declare one field per line, in the format:
key | Label | type | multilingual
- key — letters, numbers and underscore only; the name used in the theme, e.g.
$publication->getData('printIsbn'). - Label — the label shown on the Metadata tab.
- type —
text(default) ortextarea. - multilingual —
1oryesfor multilingual fields; empty otherwise. - Lines starting with
#are ignored.
Example:
printIsbn | Print ISBN | text
collection | Collection / Series | text | 1
- Developed and maintained by OJSBR — original plugin.
- Distributed under the GNU GPL v3.
Issues and pull requests are welcome. Please target the branch matching the OMP version you are working against.
Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.
Plugin genérico para o Open Monograph Press (OMP) que permite adicionar campos de
metadados extras configuráveis à aba Metadados da publicação. Os valores são persistidos
no schema da publicação e ficam disponíveis no tema do livro via
$publication->getData('chave') ou $publication->getLocalizedData('chave').
Desenvolvido e mantido pela OJSBR. Veja a seção Créditos e autoria abaixo.
| Versão do OMP | Branch | Release do plugin |
|---|---|---|
| OMP 3.5.x | stable-3_5_0 (padrão) |
1.0.0.0 |
| OMP 3.4.x | stable-3_4_0 |
1.0.0.0 |
A branch do OMP 3.5 segue a issue #11793 da PKP: os hooks de schema/formulário são sempre
registrados e o getEnabled() é checado dentro dos callbacks, para que o schema da
publicação seja estendido em todo request e o SchemaDAO não descarte os campos.
Nas Configurações do plugin, declare um campo por linha no formato
chave | Rótulo | tipo | multilingue. A chave aceita apenas letras, números e
underscore e é o nome usado para ler o valor no tema; o tipo pode ser text (padrão) ou
textarea; use 1/yes para campos multilíngues. Linhas iniciadas por # são ignoradas.
- Desenvolvido e mantido pela OJSBR — plugin autoral.
- Distribuído sob a GNU GPL v3.
Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.