Dear fellows,
I'm developing a generic plugin to extend OJS to allow Authors and Editors submit metadata keywords based on a fixed thesaurus.
In other words, we decided to integrate OJS with "tematres" (
http://www.r020.com.ar/tematres/) via "tematresview" (ajax2webservices) and as far as we can see, the thesaurus part is now working great:
http://www.comunitic.net/tematreshttp://www.comunitic.net/athenea/plugins/generic/thesaurus/tematresview/view_thesaurus.php(Notice: only a few terms are added to this brief test vocabulary, so if you visit those links, try with looking for "Poder" keyword)
After this, OJS manual and plugin examples were really helpful to me to create the module settings' interface so as you can imagine, next step I wanted to deploy was attaching (= smarty including) "tematresview" snippet to the following form templates:
/templates/author/submit/step2.tpl
/templates/submission/metadata/metadataEdit.tpl
(xxx/index.php/myJournal/author/submit/2?articleId=999
xxx/index.php/myJournal/editor/viewMetadata/999)
And here was when I was on trouble because but I can't manage to find where to "hook" or how to overwrite the default template from my new module.
I mean (let me repeat because my English is really bad) I can easily change the "metadataEdit.tpl" adding the required Javascript and HTML to let tematres work with OJS (replacing "metaSubjectClass-section" at each template, with the new code) but this solution is like a fork so won't be easily portable and updatable... and I think this could be a useful plugin for OJS community.
I imagined a couple alternative solutions (play with the template variables to hide those fields, filter the created template with smarty register_outputfilter()...) but I suspect "template overwriting" (or updating) is the best one.
Be confident if I'm not on the right way or it can't be accomplished at this moment with OJS.
With this idea on my mind I dig into this forum and the only thread I read about this is:
http://pkp.sfu.ca/support/forum/viewtopic.php?f=2&t=3427&start=0Any suggestion?
Could somebody help me with this?
Thanks a lot in advance,
m.