Skip to content

pkp/pkp-lib#10263 Relax editing metadata on published/posted materials #398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Hafsa-Naeem
Copy link
Contributor

fixes #10263

Copy link
Member

@asmecher asmecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow still includes a Vue file called WorkflowPublicationEditDisabled.vue, but with these changes, it's used to present a warning, rather than a prohibition against editing. The filename should be adjusted -- but watch out in case this is also used in the author interface; I didn't check. If it is used there, then "disabled" is still appropriate; it might be necessary to either make a copy for the editor's interface under a different name, or generalize it to either warn or prohibit changes.

@Hafsa-Naeem Hafsa-Naeem force-pushed the relax_edit_metadata branch from 435e234 to c1715f7 Compare March 17, 2025 15:48
Copy link
Member

@asmecher asmecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few changes suggested here!

@@ -2,7 +2,7 @@
<div
class="bg -mx-5 -mt-5 bg-attention p-5 text-center text-base-normal text-on-dark"
>
{{ t('publication.editDisabled') }}
{{ t('publication.editorEditWarning') }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is accidental -- it should still be editDisabled for this file.

@@ -930,7 +930,7 @@ export const PublicationConfig = {
formName: 'identifier',
submission,
publication: selectedPublication,
canEdit: permissions.canEditPublication,
canEdit: 'true',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting hard-wired true, but there are lots of other references to canEdit in this file that still use permissions.canEditPublication (and that property still appears to be getting supplied). Is this change necessary?

@Hafsa-Naeem Hafsa-Naeem force-pushed the relax_edit_metadata branch from c1715f7 to f296985 Compare March 19, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relax editing metadata on published/posted materials
2 participants