EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04118
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Customising eprint_render.pl
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Customising eprint_render.pl
- From: George Macgregor <george.macgregor@strath.ac.uk>
- Date: Fri, 10 Apr 2015 15:04:06 +0000
Hi Adam - Ahhh, an existing field - I see what's going on now. Sorry, this should have occurred to me. Thanks for pointing me in the right direction!! Cheers George > -----Original Message----- > From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech- > bounces@ecs.soton.ac.uk] On Behalf Of Field A.N. > Sent: 10 April 2015 15:46 > To: eprints-tech@ecs.soton.ac.uk > Subject: [EP-tech] Re: Customising eprint_render.pl > > Ah, you aren't adding a new field, you'd rendering an existing field. The > problem you're having here is, I believe, that related_url is a compound > multiple field. If you test related_url_url in the citation, then render > related_url if it's set, then I believe you'll get the behaviour you want. You'll > have to do this in the citation though, not the metadata list. > > -- > Adam Field > Business Relationship Manager and Community Lead EPrints Services > +44 (0)23 8059 8814 > > > > > > On 10 Apr 2015, at 15:41, George Macgregor wrote: > > > Hi Adam, > > > > Thanks for offering to help with this. All I added to eprint_render.pl in the > end was related_url, which was inserted into the summary_page_metadata as > per the <comment> in summary_page.xml: > > > > $c->{summary_page_metadata} = [qw/ > > commentary > > note > > keywords > > subjects > > divisions > > related_url > > sword_depositor > > userid > > datestamp > > lastmod > > /]; > > > > Field configurations? This might be where I have gone wrong then because I > don't recall making any! :-s But only because I thought the display of > related_url was controlled by <foreach> inside summary_page.xml (i.e. only > display where related_url is populated). Have I misinterpreted this? > > > > Thanks again! > > > > George > > > >> -----Original Message----- > >> From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech- > >> bounces@ecs.soton.ac.uk] On Behalf Of Field A.N. > >> Sent: 10 April 2015 15:06 > >> To: eprints-tech@ecs.soton.ac.uk > >> Subject: [EP-tech] Re: Customising eprint_render.pl > >> > >> Hi George > >> > >> It sounds like you've done the right thing? Can you tell me exactly > >> how you made the change? Paste bits of code into the email, and I'll > >> be happy to take a look. I'd like to see: > >> > >> * The field configuration of your new fields > >> * The relevant parts of eprint_render.pl > >> > >> Cheers > >> > >> -- > >> Adam Field > >> Business Relationship Manager and Community Lead EPrints Services > >> +44 (0)23 8059 8814 > >> > >> > >> > >> > >> > >> On 8 Apr 2015, at 09:48, George Macgregor wrote: > >> > >>> Hello colleagues! > >>> > >>> We recently migrated from 3.2.5 to 3.3.13. I am just working through > >>> a list of > >> minor customisations I would like to make but I appear to have > >> encountered a silly issue while modifying eprint_render.pl and > summary_page.xml. > >>> > >>> I am attempting to modify the abstract pages as there are a couple > >>> of > >> additional metadata fields I would like to display, if populated. I > >> therefore added them to eprint_render.pl, reloaded the configuration > >> and regenerated the abstract pages. The additional fields are > >> displaying as they should, if they are populated (great); but where > >> they are not populated the field is displayed as empty. In > >> summary_page.xml I notice that there appears to be a conditional rule > >> to control for this. Am I missing something obvious? Can anyone > >> point me in the right direction? I notice similar questions being posed on > this list in the past but with no responses. > >>> > >>> Thanks in advance! > >>> > >>> George > >>> > >>> ---------------------------------- > >>> George Macgregor | Information Services Directorate Curran Building > >>> | University of Strathclyde > >>> Tel: 0141 548 3496 > >>> Email: george.macgregor@strath.ac.uk > >>> Web: http://personal.strath.ac.uk/george.macgregor/ > >>> ---------------------------------- > >>> The University of Strathclyde is a charitable body, registered in > >>> Scotland, with registration number SC015263 > >>> > >>> > >>> > >>> *** 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/ > >>> *** EPrints developers Forum: http://forum.eprints.org/ > >> > >> > >> *** 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/ > >> *** EPrints developers Forum: http://forum.eprints.org/ > > > > *** 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/ > > *** EPrints developers Forum: http://forum.eprints.org/ > > > *** 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/ > *** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Customising eprint_render.pl
- From: George Macgregor <george.macgregor@strath.ac.uk>
- [EP-tech] Re: Customising eprint_render.pl
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Customising eprint_render.pl
- From: George Macgregor <george.macgregor@strath.ac.uk>
- [EP-tech] Re: Customising eprint_render.pl
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Customising eprint_render.pl
- Prev by Date: [EP-tech] Re: Customising eprint_render.pl
- Next by Date: [EP-tech] OAI9 poster submission deadline
- Previous by thread: [EP-tech] Re: Customising eprint_render.pl
- Next by thread: [EP-tech] Export ordered searches
- Index(es):