Skip to content

Commit 67794ef

Browse files
committed
Merge branch '3_5_0_compatibility-1129' into 'main'
Adapta plugin para OMP 3.5.0 See merge request softwares-pkp/plugins_ojs/thoth-omp-plugin!97
2 parents 1e1339f + 10491a6 commit 67794ef

File tree

147 files changed

+4858
-2447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+4858
-2447
lines changed

.github/workflows/generate-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
mkdir $PLUGIN_NAME
3535
shopt -s extglob
36-
cp -r !($PLUGIN_NAME|.git*|.|..|tests) $PLUGIN_NAME
36+
cp -r !($PLUGIN_NAME|.git*|.|..|tests|cypress|resources|CLAUDE.md|package.json|package-lock.json|vite.config.js|i18nExtractKeys.vite.js) $PLUGIN_NAME
3737
wget -O composer.phar https://getcomposer.org/composer-stable.phar
3838
php composer.phar install -d ${PLUGIN_NAME}
3939
tar -zcvf $PLUGIN_NAME.tar.gz $PLUGIN_NAME

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
vendor
1+
vendor
2+
node_modules

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variables:
33

44
include:
55
- project: 'documentacao-e-tarefas/modelosparaintegracaocontinua'
6-
ref: main
6+
ref: stable-3_5_0
77
file:
88
- 'templates/groups/pkp_plugin.yml'
99
- 'templates/groups/omp/unit_tests.yml'

README.md

Lines changed: 64 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22

33
# Thoth OMP Plugin
44

5-
Enables metadata exchange between OMP and Thoth Open Metadata to facilitate easy transfer and subsequent enhancement of book- and chapter-level data in the free-to-use self-service [Thoth](https://thoth.pub/) metadata platform, enabling OMP users to generate metadata in multiple book-specific formats including ONIX, MARC, KBART, Crossref XML, etc.
5+
[![Current Version](https://img.shields.io/badge/version-v0.3.0.0-blue)](https://github.com/thoth-pub/thoth-omp-plugin/releases)
6+
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-green.svg)](https://www.gnu.org/licenses/gpl-3.0)
7+
[![OMP compatibility](https://img.shields.io/badge/OMP-3.3_%7C_3.4_%7C_3.5-blue)](https://pkp.sfu.ca/software/omp/)
8+
9+
Integrates [OMP (Open Monograph Press)](https://pkp.sfu.ca/software/omp/) with [Thoth](https://thoth.pub/), an open metadata management platform for books. This plugin enables the registration and synchronization of book- and chapter-level metadata directly from OMP into Thoth, where it can be disseminated in multiple industry-standard formats including ONIX, MARC, KBART, and Crossref XML.
610

711
## Compatibility
812

913
This plugin is compatible with the following PKP applications:
1014

1115
- OMP 3.3.0-x
1216
- OMP 3.4.0-x
13-
14-
## Requirements
15-
16-
### Press Requirements
17-
18-
1. **api_key_secret**
19-
20-
The OMP instance must have the `api_key_secret` configuration set up, you may contact your system administrator to do that (see [this post](https://forum.pkp.sfu.ca/t/how-to-generate-a-api-key-secret-code-in-ojs-3/72008)).
21-
22-
This is required to use the API credentials provided, that are stored encrypted in the OMP database.
17+
- OMP 3.5.0-x
2318

2419
## Installation
2520

@@ -31,52 +26,60 @@ This is required to use the API credentials provided, that are stored encrypted
3126

3227
## Usage
3328

34-
### Guidelines
29+
### Configuration
3530

36-
- Only basic HTML tags are preserved (`<strong>`, `<mark>`, `<em>`, `<i>`, `<u>`, `<sup>`, `<sub>`, `<ul>`, `<ol>` and `<li>`); all others will be removed
37-
- ISBN must be properly formatted (e.g., 978-3-16-148410-0).
38-
- To avoid incorrect assignment of affiliations in Thoth, is required the use of the [ROR plugin](https://github.com/withanage/ror) to fill the affiliations in OMP.
31+
After enabling the plugin, go to the plugin settings and fill in:
3932

40-
### Configuration
33+
- **Email** and **Password**: Credentials for a Thoth account to connect with the API.
34+
- **Custom Thoth API**: Check this option to use a custom Thoth API instead of the official one.
35+
- **Thoth API URL**: The URL of the custom Thoth API (only required when the custom API option is enabled).
4136

42-
To configure the plugin:
37+
<img src="/docs/images/plugin_settings.png" alt="Plugin settings form with email, password, custom API and URL fields" width="700">
4338

44-
- **E-mail** and **Password**: Enter the credentials for a Thoth account to connect with the API.
45-
- **Test Environment**: Check this option if you are using a local instance of the Thoth API for testing purposes.
39+
### Registering Monographs
4640

47-
![settings](/images/settings.png)
41+
#### Unpublished Monographs
4842

49-
### Managing Monographs
43+
Register metadata in Thoth during the publishing process by selecting the option to register metadata in the publish modal and choosing an imprint.
5044

51-
- **Unpublished Monographs**: Register metadata in Thoth during the publishing process by selecting the option to register metadata in the publish modal and choosing an imprint.
45+
<img src="/docs/images/register_field.png" alt="Publish modal with Thoth registration option" width="700">
5246

53-
![publish](/images/publish.png)
47+
#### Published Monographs
5448

55-
- **Published Monographs**: Register metadata for published monographs by using the 'Register' button next to the publication status.
49+
Register metadata for already-published monographs by using the 'Register' button next to the publication status.
5650

57-
![button](/images/button.png)
58-
![register](/images/register.png)
51+
<img src="/docs/images/register_button.png" alt="Register button in the publication workflow" width="700">
52+
<img src="/docs/images/register_modal.png" alt="Registration modal with imprint selection" width="700">
5953

6054
### Updating Metadata
6155

62-
To update metadata in Thoth, unpublish the monograph, edit the data, and the changes will be automatically updated in Thoth.
56+
Once a monograph is registered, metadata updates are **automatic**. Unpublish the monograph, edit the data, and the changes will be synchronized with Thoth upon republication.
57+
58+
It is also possible to manually update the metadata in Thoth by clicking the 'Update Metadata' button next to the publication status.
59+
60+
<img src="/docs/images/update_button.png" alt="Update Metadata button in the publication workflow" width="700">
6361

6462
### Accessing Thoth Book Records
6563

66-
After metadata is published, a link to the book on Thoth will appear at the top of the publication.
64+
After metadata is registered, a link to the book on Thoth will appear at the top of the publication workflow.
6765

68-
![link](/images/link.png)
66+
<img src="/docs/images/view_button.png" alt="View link to the Thoth book record" width="700">
6967

70-
### Bulk register
68+
### Bulk Registration
7169

72-
On the Thoth page, you can bulk submit a selection of titles from OMP into Thoth.
70+
On the Thoth management page, you can submit a selection of titles from OMP into Thoth in bulk.
7371

74-
![page](/images/page.png)
72+
<img src="/docs/images/bulk_register_page.png" alt="Thoth management page with bulk registration" width="700">
73+
74+
### Guidelines
75+
76+
- Only basic HTML tags are preserved in text fields: `<strong>`, `<mark>`, `<em>`, `<i>`, `<u>`, `<sup>`, `<sub>`, `<ul>`, `<ol>`, and `<li>`. All other tags will be stripped.
77+
- ISBN must be properly formatted as ISBN-13 (e.g., `978-3-16-148410-0`).
7578

7679
## OMP-Thoth Mapping
7780

7881
<details>
79-
<summary>Click here to see the data relationship between Thoth and OMP</summary>
82+
<summary>Click here to see the data relationship between OMP and Thoth</summary>
8083

8184
| OMP | | | Thoth | | |
8285
| ----------------- | ------------------ | - | ---------------------- | ------------------- | ----------- |
@@ -123,6 +126,32 @@ On the Thoth page, you can bulk submit a selection of titles from OMP into Thoth
123126

124127
</details>
125128

129+
## Development
130+
131+
### Requirements
132+
133+
- PHP 8.1+
134+
- [Composer](https://getcomposer.org/)
135+
- [Node.js](https://nodejs.org/) (for building frontend assets)
136+
137+
### Setup
138+
139+
```bash
140+
# Install PHP dependencies
141+
composer install
142+
143+
# Install Node.js dependencies and build frontend assets
144+
npm install
145+
npm run build
146+
```
147+
148+
### Running Tests
149+
150+
```bash
151+
# From the OMP root directory
152+
php lib/pkp/lib/vendor/phpunit/phpunit/phpunit --configuration lib/pkp/tests/phpunit.xml -v plugins/generic/thoth/tests
153+
```
154+
126155
## Credits
127156

128157
This plugin was idealized and sponsored by [Thoth](https://thoth.pub/).
@@ -133,6 +162,6 @@ Developed by [Lepidus Tecnologia](https://github.com/lepidus).
133162

134163
This plugin is licensed under the GNU General Public License v3.0 - [See the License file.](/LICENSE)
135164

136-
Copyright (c) 2024 Lepidus Tecnologia
165+
Copyright (c) 2024-2026 Lepidus Tecnologia
137166

138-
Copyright (c) 2024 Thoth
167+
Copyright (c) 2024-2026 Thoth

0 commit comments

Comments
 (0)