License terms in OMP always empty unsaved

Dear admin,

I would like to write License Term in OMP 3.3.0.20.

It looks after I click Save, then green tick “Saved”.

But working another tab and back again, as original “Empty”. I tried many times, with various way, but still the same I can save no problems, but actually not saved.

Could you help me, or I cannot write anything here, protected.

Regards
Waluyo

Hi @waluyo, it looks like this is unfortunately a bug in the software. I’ve filed this issue and plan to work on it very soon, hopefully for our next release of 3.3: [OMP] Unable to save license terms · Issue #10938 · pkp/pkp-lib · GitHub

In the meantime, if you are comfortable editing the system files, you can add the following entry in schemas/context.json (make sure to add a comma after the bracket before the entry as well):

	"licenseTerms": {
		"type": "string",
		"multilingual": true,
		"validation": [
			"nullable"
		]
	}
1 Like

Dear @kaitlin
Thank you, yes after adding the codes above, I can save it, not disappear.

But this license term not showing anywhere, usually in OJS (which is I am familiar with) displayed in the publication article after the license.

I am very confused. It looks there are many things missing.
Is it because I am using the stable LTS version OMP 3.3.0.20? Are you suggesting upgrading to the latest version OMP 3.4.0.8.

Regards
Waluyo

Hi @waluyo, I’ve noted this issue as well to get the license terms added to the template for the monograph page.

The issues you’ve found are also in the 3.4.0.8 release, so upgrading won’t be a fix here. I’m hoping to get these resolved before the next release, so the fixes will be in 3.3 and 3.4. Unfortunately some features can get missed between the applications, but we appreciate the feedback as it helps us fix these gaps and improve the OMP software.

1 Like

Dear @kaitlin
Could you please to give your guidance to fix this problem in OMP 3.4.0.8
Is it the same with the OMP 3.3?

The adminsitator, now reinstall with the latest version 3.4.0.8. I have encountered the same problem.

Regards
Waluyo

Hi @waluyo, are you wondering how to add the license terms to the monograph page?

You’ll have to customize the template in OMP at templates/frontend/objects/monograph_full.tpl starting around line 424 if you want to add it to the monograph page.

Here’s an example of what the new License section in that template could look like in order to add the license terms below the existing license information (this example is based on the template in OMP 3.4 and may be different in 3.3). I haven’t fully tested it, but this can be a starting point:

			{* License *}
			{if $currentPress->getLocalizedData('licenseTerms') || $publication->getData('licenseUrl')}
				<div class="item license">
					<h2 class="label">
						{translate key="submission.license"}
					</h2>
					{if $ccLicenseBadge}
						{$ccLicenseBadge}
					{else}
                        {if $publication->getData('licenseUrl')}
                            <a href="{$publication->getData('licenseUrl')|escape}">
                                {translate key="submission.license"}
                            </a>
                        {/if}
					{/if}
                    {if $currentPress->getLocalizedData('licenseTerms')}
                        {$currentPress->getLocalizedData('licenseTerms')}
                    {/if}
				</div>
			{/if}