"Missing input" when trying to edit styles
Virtual Research Environment / On-line Bibliography Manager
Brought to you by:
sirfragalot
Hi Mark and Stéphane,
when I try to edit an existing style (tried my own as well as Chicago) I get the message "Missing input" when saving the style.
I tried to add page numbers to web articles if there are some, like %S. %%pages%, %%|
after the year. But even attempts to other modifications of a style got the "Missing input" statement.
The same problem with 6.3.10 on my production server, BTW.
Best wishes for the new year
Joachim
News: 2021/01/wikindx-v641-released
Bugs and feature requests : #305
Hi,
Someone else pointed it out as well. Mark wants to completely rework the plugin, but I don't know if we can just fix this little error in 6.4.1.
Regards,
Hi Joachim,
I'll merge this with bug https://sourceforge.net/p/wikindx/v5bugs/249/.
As noted there, I intend to rewrite the interface for style editing/creation in te new year so hopefully these bugs will disappear.
Best wishes for the new year to you too,
Mark
Hi Mark,
I think the problem is a mismatch between the style language name in xml and the list of locales available. I forget to keep the old list only for this specific case.
I can provide a fake language list of previous language codes instead. And in a future version migrate style definition to new locales.
Regards,
I've discovered and corrected an issue to do with uppercasing of the xml file name (uppercasing it meant that the style no longer displayed in the select box – lowercase it and it appears and can be used).
But I think there's also something wrong with the validation code – checking that required fields are present and this gives a missing input message. I noticed this yesterday and know what the issue is and will try to fix it tomorrow.
As agreed, this will be a quick fix for a 6.4.1 release after which I will rewrite the plugin's interface.
Mark
So, there are two errors. I fixed the language error with commit [r1145].
Related
Commit: [r1145]
At least two errors. I will check throughly though.
Mark
Actually, Stéphane, I think you are right. The issue is to do with locales. I'll correct this tomorrow including bug 308.
Mark
308 is not urgent and changes the XML format. Better to keep it for another version. I have already done the minimum for the language.
The fix is now in SVN and ready for the 6.4.1 release.
Mark
Hi Mark,
unfortunately, I have to reopen the issue. I'm getting "Missing input" even with 6.4.1. I tried the same modification as in my original post.
The Amin Styles Plugin is up to date, v. 382, updated with the Administer Components function.
Best
Joachim
Hi Joachim,
Sorry for this. I will check once I've finished with other work. Regarding which, did you get a message here on SF about an add-in for Word? I posted yesterday asking if you used Word and were willing to test the add-in (insert references from a wikindx into Word) but that post appears to have disappeared.
Regards,
Mark
Hi Joachim,
I've now completely rewritten the adminstyle plugin:
1. Complete rewrite of the interface, breaking up the one long form into several smaller forms.
2. Work on making style compilation faster.
3. Copy a complete resource template (e.g., copy the book_article variables to the book_chapter variables).
4. Within a resource template, copy the bibliography template to the footnote template.
5. Reduce useless compilation. For example, if the style is endnote, then no need to input in-text citation variables.
6. When creating a style, default values are supplied.
There is also stronger validation and checks for missing inputs. Hopefully, it all works for you now (if you want to check in SVN – you will need to install the complete SVN for wikindx and the plugin on a test server).
Mark
Hi Mark,
sounds great, will try to test it! Will my existing styles work with the plugin?
Best
Joachim
They certainly will Joachim (but as always back-up just in case). WIKINDX v6.4.10 (which you're running on your production server) updated the XML style files so ensure, if you copy styles across, they are from that server and not from an earlier version where they have not yet been updated. I attach a screenshot of the new interface.
Mark
Tried to start the SVN version, but got a lot of errors:
Did I do something wrong? I downloaded the latest version via
svn checkout https://svn.code.sf.net/p/wikindx/svn/trunk wikindx-svn
, didchown -R www-data: *
andfind . -type f | xargs chmod 644
, created aconfig.php
with the appropriate patrameters, created a copy of the production database under a new name and let the web server use the SVN version.Joachim
Hi Joachim,
I will leave that to Stéphane to deal with.
However, what happens if you do a
chmod -R 644
on wikindx-svn or, if that doesn't work, even
chmod -R 777
?
Mark
Hi Joachim,
Do on your root folder, because use a defferent unix user/group.
chmod -R 777
Regards,
28 août 2021 17:57 "Mark Grimshaw" sirfragalot@users.sourceforge.net a écrit:
--
Stéphane Aulery
Related
Bugs and feature requests :
#305I prefer the two
find
commands:Just a little bit more security, I think.
Joachim
OK, I didn't consider the root directory, which had the wrong permissions.
I tampered around successfully with my style, the bug is fixed! And the interface is much more usable than the former one – thank you very much!
I've worked a while with the SVN release now, no problems so far.
Best
Joachim
That's very good to know Joachim. Thanks for testing. Just a few other things to sort out and then we will release 6.4.11 which is compatible with the updated plugin.
Mark