Skip to content

OJSBR/customMetadata

Repository files navigation

Custom Metadata — OMP plugin

OMP Version License

⬇️ 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.

Compatibility & branches

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.

Installation

  1. Install via Settings → Website → Plugins → Upload A New Plugin, or extract the folder into plugins/generic/ so you get plugins/generic/customMetadata/.
  2. Enable Custom Metadata under the Generic plugins list.

Configuration

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.
  • typetext (default) or textarea.
  • multilingual1 or yes for multilingual fields; empty otherwise.
  • Lines starting with # are ignored.

Example:

printIsbn | Print ISBN | text
collection | Collection / Series | text | 1

Credits & authorship

  • Developed and maintained by OJSBR — original plugin.
  • Distributed under the GNU GPL v3.

Contributing

Issues and pull requests are welcome. Please target the branch matching the OMP version you are working against.

License

Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.


🇧🇷 Português

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.

Compatibilidade e branches

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.

Configuração

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.

Créditos e autoria

  • Desenvolvido e mantido pela OJSBR — plugin autoral.
  • Distribuído sob a GNU GPL v3.

Licença

Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.

About

OMP 3.4 plugin: configurable extra metadata fields on the publication Metadata tab. By OJSBR.

Topics

Resources

License

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors