Hi,

on closer inspection, the title used in the pagetitle element doesn't come directly from the item metadata, it's set in Java code. To be precise, in DSpace 1.8.x it's here: https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/ItemViewer.java#L348 where the first Item.ANY should be null to exclude the alternative title. The location of the file changed between 1.8 and 3 but the behaviour is still the same: https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/ItemViewer.java#L354

If you don't have the Java development resources to make this change, as a workaround you could remove the alternative title metadata value from the item and re-add it via the Edit Item -> Item Metadata screen. This _should_ ensure that the non-alternative title is found first, but no guarantees unfortunately. The code hasn't changed since 1.6, so if your 1.6 repository is showing the non-alternative title then I'd suspect the order of the two metadata values is reversed in that repository.

Sorry about leading you astray initially.

cheers,
Andrea


On 13/03/14 22:55, Evans, Kevin wrote:

Hi Andea,

 

Thanks very much for your help, although I’ve tried it and doesn’t seem to work, I’m afraid.

Cheers

 

Kev

 

Kevin Evans
Systems Developer,

Research & Collaborative Systems,
Enterprise Applications,
Room 919, 9th Floor, Laver Building,
University of Exeter,
Exeter,
Devon,
EX4 4QE
01392 725573

 

Embrace. Extend. Extinguish.

 

From: Andrea Schweer [mailto:[email protected]]
Sent: 10 March 2014 00:30
To: Evans, Kevin
Cc: [email protected]
Subject: Re: [Dspace-tech] Alternative (dc.title.alternative) overrides the Title (dc.title ) and displays the Alternative Title as the page title for an Item

 

Hi Kevin,

On 08/03/14 03:22, Evans, Kevin wrote:

Thanks for the info. I think it is the page <pagetitle> element.


Oops, of course -- I hadn't spotted the "page title" in the subject :)

Yes, just change this line:
<xsl:copy-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']/node()"/>
to
<xsl:copy-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title' and not(@qualifier)]/node()"/>
in your template.xsl file (line 300 of the version currently live on the ORE production server) and you should be set.

cheers,
Andrea


-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to