EPrints Technical Mailing List Archive

Message: #01846


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: workflow phrases...


Hi Matthew

This isn't supported out of the box in 3.2 but we made a modification to our install that makes it possible. The patch causes the Repository object to cache the type of the current eprint, then MetaField methods check that value and try to render a custom phrase, e.g., 
<epp:phrase id="eprint_fieldname_title">Title</epp:phrase>
<epp:phrase id="eprint_fieldname_title#book">Book Title</epp:phrase>
<epp:phrase id="eprint_fieldname_title#article">Article Title</epp:phrase>
...

I've attached a patch, I'm not sure how well it will apply, as it was mixed up with other changes and I had to edit the patch by hand.  If it doesn't apply automatically the modified methods are Repository->read_params(), MetaField->render_name() and MetaField->render_help().

Cheers
Mark

Mark Gregson | Applications and Development Team Leader
Library eServices | Queensland University of Technology
Level 3 | R Block | Kelvin Grove Campus | GPO Box 2434 | Brisbane 4001
Phone: +61 7 3138 3782 | Web: http://eprints.qut.edu.au/
ABN: 83 791 724 622
CRICOS No: 00213J


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Matthew Brady
Sent: Tuesday, 16 April 2013 8:20 AM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: workflow phrases...

I might have missed any replies to this Q I asked a few weeks back... but if anyone has any clues I would love to hear how to solve this...


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Matthew Brady
Sent: Tuesday, 19 March 2013 5:16 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] workflow phrases...

Can the displayed title for fields be customized, on a type by type basis in the workflow?
I am reading through the documentation for workflows (http://wiki.eprints.org/w/Workflow_Format), and it appears to be possible, but its alluding me...

eg, currently vanilla systems have the field 'title' in the workflow for pretty much every type, and it displays the label 'Title'.
For type = book_section, I'm wanting to keep the field as title, while changing the displayed label to 'Title of Chapter' to make it more user friendly...

Thanks for any guidance.
Matt


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

This email (including any attached files) is confidential and is for the intended recipient(s) only.  If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland.  Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.

The University of Southern Queensland is a registered provider of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Attachment: type_specific_help.patch
Description: type_specific_help.patch