EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10039


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

RE: [EP-tech] Thesis_type_display


CAUTION: This e-mail originated outside the University of Southampton.

Hi Will,

Does your repository have a ‘thesis_type’ and a ‘thesis_name’ field?

If so, does the thesis_name field contain the values you would expect to see in the citation?

 

The citation files in EPrints allow you to change which fields are displayed for an item. There can be specific citations for e.g. search results pages.

 

If you haven’t looked at [EPRINTS_ROOT]/flavours/pub_lib/citations/eprint/default.xml yet, now is probably the time!

Don’t edit that file where it is though – copy it to [EPRINTS_ROOT]/archives/[ARCHIVE_ID]/cfg/citations/eprint/default.xml

By default, that file has logic to deal with all the default item types that EPrints supports, so look through the file for mentions of ‘thesis’.

 

If your repository only has theses in it, then you could make a much simplified version of that file, which only deals with the fields you are using and want to display in the citarion.

When you make the initial copy of the file, you will need to reload Apache for it to find the file. After that, any changes in the citation XML should be picked up automatically. It’s good to check any edits you make are valid XML – if not, EPrints will not show the changes – but you should see details in your Apache error log.

 

Let me know if you need any more pointers on the citation files!

 

Cheers,

John

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Will Hughes
Sent: 12 March 2025 17:02
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Thesis_type_display

 

CAUTION: External Message. Use caution opening links and attachments.

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi

 

I wonder if anyone can help with this puzzle. It has been exercising me all afternoon and I am getting lost in the detail.

 

I am trying to create a field called thesis_type_display. The purpose is to give a properly formed citation for any reference to a thesis. Currently, I see something like this example:
Boice, John Richard (1970) A history and evaluation of the school construction systems development project, 1961-1967. Doctoral thesis, Stanford University.

The name of the thesis is not the way I would expect to see. I expect, instead of ‘Doctoral thesis’ something in the form of ‘Unpublished PhD thesis’. Thus, I set up a field called thesis_type_display in /cfg/cfg.d/eprint_fields_pub.pl:

{              name => 'thesis_type_display',

               type => 'text',       

},

I also set up a phrase in /cfg/cfg.d/zz_webcfg.xml:

<epp:phrase id="eprint_fieldname_thesis_type_display">Thesis type display</epp:phrase> (which appears in my Admin/Phrase editor)

 

And I have been struggling in the workflows and renders to get this to replace the current variable thesis_type in the presentation of a citation. I have no ended up with a rather difficult error when I click through to view an item:
XML::LibXML::Node::appendChild() -- nNode is not a blessed SV reference at /opt/eprints3/perl_lib/EPrints/Language.pm line 288.

So, I am in the process of reverting any other files that I fiddled with and wondered whether there is a straightforward way to deal with this.

 

Thanks in advance

 

Best wishes

 

Will   

 

Will Hughes

Emeritus Professor of Construction Management and Economics

School of the Built Environment     

University of Reading, PO Box 219, Whiteknights

Reading, RG6 6DF, UK