EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09085
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Document field title/help-text using a phrase in workflow
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
 - Subject: [EP-tech] Document field title/help-text using a phrase in workflow
 - From: John Salter <J.Salter@leeds.ac.uk>
 - Date: Tue, 4 Oct 2022 09:43:36 +0000
 
| 
 
CAUTION: This e-mail originated outside the University of Southampton.
 
Hi, 
I've just observed some curious behaviour in EPrints 3.3.16, and wondered whether it also impacts 3.4.x (don't have a test system at hand to try it out at the moment). 
In the default eprint workflow, in the 'files' stage, if you define a document field title or help-text using a phrase, it doesn't get rendered for the second (or more) document. 
To re-create:  
 
 If you embed text directly into the workflow (bad practice!) 
  <help>This is some help text</help> 
it appears to work OK. 
I think the issue is with the caching of the html_xhtml field property in EPrint::MetaField. 
I've traced the help-text back to: 
https://github.com/eprints/eprints/blob/master/perl_lib/EPrints/Plugin/InputForm/Component.pm#L496-L503  (v3.4 equivalent: https://github.com/eprints/eprints3.4/blob/master/perl_lib/EPrints/Plugin/InputForm/Component.pm#L450-L457 ) 
and I suspect the issue may lie with this 'clone': 
(v3.4 equivalent: https://github.com/eprints/eprints3.4/blob/master/perl_lib/EPrints/Plugin/InputForm/Component.pm#L481 ) 
Cheers, 
John 
![]()  | 
- Follow-Ups:
- [EP-tech] Document field title/help-text using a phrase in workflow
- From: John Salter <J.Salter@leeds.ac.uk>
 
 
 - [EP-tech] Document field title/help-text using a phrase in workflow
 
- References:
- [EP-tech] Document field title/help-text using a phrase in workflow
- From: John Salter <J.Salter@leeds.ac.uk>
 
 
 - [EP-tech] Document field title/help-text using a phrase in workflow
 
- Prev by Date: Re: [EP-tech] Storage of PDF files
 - Next by Date: Re: [EP-tech] Document field title/help-text using a phrase in workflow
 - Previous by thread: [EP-tech] EPrints/CRIS
 - Next by thread: [EP-tech] DOI handling in orcid_support_advance
 - Index(es):
 

