| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Since 1.1.1.0 the OJS and the OMP editions of this plugin are the same code, in OJSBR/requiredMultilingualMetadata. One package installs on OJS 3.5 and on OMP 3.5. Get new versions there; the releases below stay available for older installations.
A partir da 1.1.1.0, as edições OJS e OMP deste plugin são o mesmo código, em OJSBR/requiredMultilingualMetadata. Um pacote só instala no OJS 3.5 e no OMP 3.5. Baixe as versões novas lá; as releases abaixo continuam disponíveis para instalações antigas.
⬇️ Install package: OMP 3.5 — or browse all Releases.
A generic plugin for Open Monograph Press (OMP) that lets a press require the title, the abstract and the keywords in metadata languages beyond the submission's own language — something OMP 3.5 cannot do on its own — without patching OMP core and without blocking editorial staff working on legacy submissions.
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.1.0.2 |
Looking for the OJS edition? It lives in its own repository, OJSBR/requiredMultilingualMetadata. This repository is the same plugin with the terminology and the data model of a book publisher.
In OMP 3.5 the title, the abstract and the keywords are required in one language only: the submission's primary language, chosen by the author on the first step of the wizard. Neither the press's default language nor the language the author is browsing in has any effect, and there is no native setting to require a translation. This plugin adds that.
| Situation | Blocked? |
|---|---|
| Author submitting | Yes |
| Manager/editor submitting their own book (assigned as Author) | Yes |
| Manager/editor working on someone else's submission | No |
| Editing metadata later in the editorial workflow (including incomplete legacy) | No |
| Section set to "Abstract not required" | Abstract stays optional in every language |
| Press not set to Keywords = Require | Keywords stay optional in every language |
The editorial exemption is deliberate: migrated archives usually have metadata missing, and the rule must not stop an editor from saving what is already there.
Install under Settings → Website → Plugins → Upload A New Plugin, or extract the folder into plugins/generic/ (ending up as plugins/generic/requiredMultilingualMetadata/). Then enable Required Multilingual Metadata in the Generic plugins list.
Keep the folder name. PKP 3.5 derives the plugin's class namespace from its installation directory, so the folder must be requiredMultilingualMetadata — the Omp suffix belongs to the repository name only. The release tarball already unpacks with the right name.
Open the plugin's Settings and tick the languages per field. The press's own metadata languages come from Context::getSupportedSubmissionMetadataLocales().
The submission's own language is always excluded — the core already requires it — and languages that are no longer active in the press are ignored at runtime, with no need to reconfigure.
A detail that trips people up. The interface locale code and the metadata locale code are different: the interface uses en, submission metadata uses en_US. The settings screen always stores the metadata code, otherwise the rule would never match.
| Hook | Purpose |
|---|---|
| Submission::validateSubmit | adds the errors for the extra languages |
| TemplateManager::display (submission/wizard.tpl) | opens the language tabs and writes the field notice |
No core file is modified. The wizard hook is needed because PKPSubmissionHandler::getLocalizedForm() pins visibleLocales to the submission language, so without it the author would be shown an error on a field they cannot see.
Known behaviour. When the abstract is empty in the submission's own language, the plugin's message about the extra languages does not show in that round: the application subclass of Repository::validateSubmit() assigns $errors['abstract'] after the hook runs, replacing the array. The submission is still blocked (by the core's own error) and the field notice is still displayed; the author simply sees the two messages in different rounds. Title and keywords are not affected, because the core writes those before the hook. Cases E09, E10 and K10 in the test suite lock this invariant down.
Verified on OMP 3.5.0.4 against a live press, driving the real core validation:
The two PHP regression suites of the OJS edition are not shipped here yet: they build OJS-only fixtures (a section with abstractsNotRequired, a section word count) that have no counterpart in OMP, where series carry neither setting. Porting them is tracked for a later release.
Ships in 7 languages: English, Portuguese (Brazil), Portuguese (Portugal), Spanish, French, Italian and German. Note the French folder is locale/fr — PKP 3.5 has no fr_FR locale, so a fr_FR folder would never be loaded.
Issues and pull requests are welcome. Please target the branch matching the OMP version you are working against. See CONTRIBUTING.md.
Distributed under the GNU GPL v3. See LICENSE and docs/COPYING.
Plugin genérico para o Open Monograph Press (OMP) que permite à editora exigir o título, o resumo e as palavras-chave em idiomas de metadados além do idioma principal da submissão — algo que o OMP 3.5 não faz sozinho — sem alterar o núcleo do OMP e sem bloquear o corpo editorial que trabalha em submissões de acervo.
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.1.0.2 |
Procurando a versão de OJS? Ela tem repositório próprio, OJSBR/requiredMultilingualMetadata. Este repositório é o mesmo plugin com a terminologia e o modelo de dados de uma editora de livros.
No OMP 3.5, título, resumo e palavras-chave são exigidos em um único idioma: o idioma principal da submissão, escolhido pelo autor no primeiro passo do assistente. Nem o idioma padrão da editora nem o idioma em que o autor está navegando têm qualquer efeito, e não existe configuração nativa para exigir a tradução. É isso que o plugin acrescenta.
| Situação | Bloqueia? |
|---|---|
| Autor submetendo | Sim |
| Gestor/editor submetendo o próprio livro (designado como Autor) | Sim |
| Gestor/editor trabalhando em submissão de terceiro | Não |
| Edição de metadados no fluxo editorial (inclusive acervo incompleto) | Não |
| Seção marcada como "Resumo não obrigatório" | Resumo continua opcional em todo idioma |
| Editora sem Palavras-chave = Exigir | Palavras-chave continuam opcionais em todo idioma |
A isenção do corpo editorial é deliberada: acervo migrado costuma ter metadados faltando, e a regra não pode impedir o editor de salvar o que já existe.
Instale em Configurações → Website → Plugins → Enviar um novo plugin, ou extraia a pasta em plugins/generic/ (ficando plugins/generic/requiredMultilingualMetadata/). Depois ative o Metadados Obrigatórios em Vários Idiomas na lista de plugins Genéricos.
Não renomeie a pasta. O PKP 3.5 deriva o namespace da classe do diretório de instalação, então a pasta precisa se chamar requiredMultilingualMetadata — o sufixo Omp é só do repositório. O pacote de release já descompacta com o nome certo.
Nas configurações do plugin, marque os idiomas por campo. Os idiomas de metadados da editora vêm de Context::getSupportedSubmissionMetadataLocales().
O idioma da própria submissão é sempre excluído — o núcleo já o exige — e idiomas que deixaram de estar ativos na editora são ignorados em tempo de execução, sem precisar reconfigurar.
Detalhe que engana. O código do idioma da interface e o do idioma de metadados são diferentes: a interface usa en, os metadados usam en_US. A tela grava sempre o código de metadados, senão a regra nunca casaria.
Verificado no OMP 3.5.0.4 em uma editora real, chamando a validação de verdade do núcleo:
As duas suítes PHP de regressão da versão de OJS ainda não vêm neste repositório: elas montam cenários que só existem no OJS (seção com abstractsNotRequired, limite de palavras da seção), sem equivalente no OMP, onde a série não tem nenhum dos dois ajustes. O porte está previsto para uma versão futura.
Em 7 idiomas: inglês, português (Brasil), português (Portugal), espanhol, francês, italiano e alemão. A pasta do francês é locale/fr — o PKP 3.5 não tem o locale fr_FR, então uma pasta fr_FR nunca seria carregada.
Distribuído sob a GNU GPL v3. Veja LICENSE e docs/COPYING.
| Back | FazBrowse Home | New Git URL |