[index] [prev] [next] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] Re: Altering ItemRef to add a new button and workflow option

From: Tim Brody <tdb01r AT ecs.soton.ac.uk>
Date: Tue, 14 Jul 2009 12:04:53 +0100


Threading: [EP-tech] Altering ItemRef to add a new button and workflow option from Samuel.Moffatt AT usq.edu.au
      • This Message
             [EP-tech] Re: Altering ItemRef to add a new button and workflow option from laci AT degas.ceu.hu

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
On Tue, 2009-06-30 at 16:48 +1000, Sam Moffatt wrote:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** EPrints community wiki - http://wiki.eprints.org/
> Hi list,
> 
> I am interested in altering ItemRef to add a button that would allow
> users to more fully search for a value by creating a popup window that
> would allow them to find the itemref value and have it then push the
> value into the field. I've had a stab at modifying
> EPrints::MetaField::ItemRef but can't seem to work out how you would
> feed it another param via the workflow system. I feel that this is
> distinct from the input_lookup_url because I aim to popup a new window
> to provide the ability to search for the correct Itemref ID instead of
> having to remember just what number should be used (rather unfriendly). 
> 
> I've had a dig around the code base and nothing immediately obvious
> became apparent. Anyone got any suggestions for how I'd implement this
> feature?

I think the "EPrints" way to do this is to build an InputForm 
component
plugin. If you take a look at
Plugin::InputForm::Component::Field::Subbject (phew) you can see how a
"widget" was built to enable searching of subjects (stuff to do with
_internal_ actions).

I've also done input widgets before that combine an InputForm component
with some AJAX (so you don't need to mess around with _internal_ action
passing).

All the best,
Tim.


[index] [prev] [next] [options] [help]