How can I change the schema? but not active. [ojs3308]

in context.json file i add “defaultLocaleKey” once, or i add “default” once but
description are not show string. (in picture)

I create new journal.


description not show. T__T

how to fix it.

thank you.
Ohno395

Hi @OhnO395,

These settings are added only when the context (journal) is created, not afterwards. You won’t see new additions in your existing journals.

Regards,
Alec Smecher
Public Knowledge Project Team

I edit context.json and create new journal.

about the journal is valid.
editorial team is valid.
but journal summary is not valid.

how to edit context.json (description) is valid.

thank you
Ohno395

All plugins are configured to enable new journals, how can I configure them?

Hi @OhnO395,

Did you create a whole new entry for the description in lib/pkp/schemas/context.json (or schemas.context.json)? If so, then there will be two – which will cause unexpected behaviour. Find the existing description entry and add a defaultLocaleKey entry to it.

Regards,
Alec Smecher
Public Knowledge Project Team

  1. The description attribute, about attribute, and editorialTeam attribute already exist in /lib/pkp/schema/context.json (but not in schema/context.json).

I want to add default values to all three attributes by adding the key defaultLocaleKey with the value bra bra bra. The about and editorialTeam attributes display the specified values, but the description attribute does not (I also tried using the key default but it still doesn’t display). The difference between the description and about attributes is that the description attribute has the key apiSummary.

  1. All plugins are configured to enable new journals, how can I configure them?

thank you
Ohno395

Hi @OhnO395,

The default is not used because the Journal Description field is presented on the form where you create the journal. If you leave the field blank, it’ll set a blank description, regardless of what the default is set to in the .json file.


Regards,
Alec Smecher
Public Knowledge Project Team

Can I ask about the basic plugin configuration, where is it set when creating the journal (or is it set in which code file)?

Thank you.

Ohno395

Hi @OhnO395,

Could you post that question as a new topic? That’ll help keep the forum organized.

Thanks,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.