Skip to content
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

required tagit metadata fields not validated #3157

Closed
bozana opened this issue Dec 4, 2017 · 9 comments
Closed

required tagit metadata fields not validated #3157

bozana opened this issue Dec 4, 2017 · 9 comments
Assignees
Milestone

Comments

@bozana
Copy link
Collaborator

bozana commented Dec 4, 2017

Those metadata fields that use tagit are not validated correctly.
S. also https://forum.pkp.sfu.ca/t/disciplines-required-not-passing-although-field-is-completed-ojs-3-1/34747/3

@bozana bozana modified the milestones: OJS 3.1.0-1, OJS/OMP 3.1.1 Dec 4, 2017
@bozana bozana self-assigned this Dec 4, 2017
@bozana bozana changed the title tagit metadata fileds not validated required tagit metadata fileds not validated Dec 4, 2017
@bozana bozana changed the title required tagit metadata fileds not validated required tagit metadata fields not validated Dec 4, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 4, 2017
bozana added a commit to bozana/ojs that referenced this issue Dec 4, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 4, 2017
bozana added a commit to bozana/ojs that referenced this issue Dec 4, 2017
@bozana
Copy link
Collaborator Author

bozana commented Dec 4, 2017

PRs:
pkp-lib master: #3158
ojs master: pkp/ojs#1747 (only submodule update)

pkp-lib ojs-stable-3_1_0: #3159
ojs ojs-stable-3_1_0: pkp/ojs#1748 (only submodule update)

@bozana
Copy link
Collaborator Author

bozana commented Dec 4, 2017

@NateWr, could you take a look at the PR above?

@NateWr
Copy link
Member

NateWr commented Dec 5, 2017

I left one comment in the code, just trying to get my head around it.

I also ran into a couple of related issues. I've added disciplines and set it to required. I've added some items to the discipline tag it and saved it. Now if I go back and remove them and save it, the form saves successfully, but the tags are still t here.

Also, if I go to a submission without any disciplines and I submit the form, I get an unhelpful error message:

selection_058

Is there any way we can improve that?

@bozana
Copy link
Collaborator Author

bozana commented Dec 5, 2017

Yes, that is an unhelpful error message -- it was like this before -- I will try to add the appropriate locale keys...

And concerning the second one:

Now if I go back and remove them and save it, the form saves successfully, but the tags are still t here.

Do you see the same error message but in the very background, on the page behind the modal, thus almost invisible? -- I always have this strange issue... and do not know why... I.e. I think the error message is there, just very hard visible, and thus the form as such not saved, then reloaded with the current submission fields (as always)...

@NateWr
Copy link
Member

NateWr commented Dec 5, 2017

Do you see the same error message but in the very background, on the page behind the modal, thus almost invisible?

Oh I do see it. It looks like it is getting embedded into the body of the page instead of flying up the side. Looking at the response to the ajax request, it looks like it's returning an inPlace notification. Maybe there's some setting of the notification that's off?

selection_059

bozana added a commit to bozana/pkp-lib that referenced this issue Dec 5, 2017
bozana added a commit to bozana/ojs that referenced this issue Dec 5, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 5, 2017
bozana added a commit to bozana/ojs that referenced this issue Dec 5, 2017
@bozana
Copy link
Collaborator Author

bozana commented Dec 5, 2017

@NateWr, I've added the appropriate form validation locale keys.
I still do not understand why the errors are displayed on the page :-P -- will take a further look tomorrow...
Thanks a lot!

bozana added a commit to bozana/pkp-lib that referenced this issue Dec 14, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 14, 2017
bozana added a commit to bozana/ojs that referenced this issue Dec 14, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 14, 2017
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 14, 2017
@bozana
Copy link
Collaborator Author

bozana commented Dec 14, 2017

@NateWr, now that the submission metadata form validation messages are correctly displayed, I think this issue/PR is finished. Could you take a final look? THANKS!!!

NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 5, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 5, 2018
@NateWr
Copy link
Member

NateWr commented Jan 5, 2018

New PRs which I'll merge when the tests pass:
#3241
pkp/ojs#1781

@NateWr NateWr self-assigned this Jan 5, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 8, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 8, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 8, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 8, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 9, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 9, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 9, 2018
NateWr pushed a commit to NateWr/pkp-lib that referenced this issue Jan 9, 2018
NateWr added a commit that referenced this issue Jan 9, 2018
#3157 fix required tagit metadata fields validation
NateWr added a commit to pkp/ojs that referenced this issue Jan 9, 2018
 pkp/pkp-lib#3157 fix required tagit metadata fields validation
@NateWr
Copy link
Member

NateWr commented Jan 9, 2018

All merged.

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

No branches or pull requests

2 participants