OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



checkboxes for keywords

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

checkboxes for keywords

Postby svillanueva » Tue Mar 11, 2008 5:07 am

Hello,

I'm starting to implement a modification on the OJS code in order to show a list of checkboxes for the authors to index their articles with keywords. The idea (i'm not sure whether this is feasible or not) is to build the checkboxes as the examples are read from $currentJournal->getLocalizedSetting('metaSubjectExamples') and then, every click on the checkboxes would add that keyword onto the textbox (which could be hiden).

So I would need to implement those functions in php or Smarty Templates to control those checks... i've tried to write some strtok test code between <?php and ?> but it doesn't seem to work...

Any guidelines to do this?


Many thanks,

Sergi Villanueva.
svillanueva
 
Posts: 74
Joined: Fri Jan 18, 2008 4:20 am
Location: Barcelona

Re: checkboxes for keywords

Postby svillanueva » Thu Mar 13, 2008 1:49 am

Well, I have developed this with javascript funcions, but I have a little doubt. I have a function that completes the subject textbox adding the value of a new textbox I've created, to the subject textbox... I call this function in the save&continue button (in author/step2.tlp) with the next sentence:

<input type="submit" value="{translate key="common.saveAndContinue"}" class="button defaultButton" onClick="additionalMetaData()"/>

do you see any problem with this? I mean, will this interfere in the OJS operation?



Thank you,

Sergi Villanueva.
svillanueva
 
Posts: 74
Joined: Fri Jan 18, 2008 4:20 am
Location: Barcelona


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest