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 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:schw...@waikato.ac.nz] Sent: 10 March 2014 00:30 To: Evans, Kevin Cc: dspace-tech@lists.sourceforge.net 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 -- 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
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, 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 Ive tried it and doesnt seem to work, Im 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:schw...@waikato.ac.nz] Sent: 10 March 2014 00:30 To: Evans, Kevin Cc: dspace-tech@lists.sourceforge.net 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
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 -- 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
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 Andrea, Thanks for the info. I think it is the page pagetitle element. Our theme is based on the Manakin Theme and to be honest has been ported across from version 1.4 1.61.8.2 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:schw...@waikato.ac.nz] Sent: 05 March 2014 22:27 To: Evans, Kevin; dspace-tech@lists.sourceforge.net 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 06/03/14 05:59, Evans, Kevin wrote: We are experiencing an issue in how an item is displayed. If an Alternative Title is submitted (dc.title.alternative) then this overrides the Title (dc.title) and displays the Alternative Title as the page title for an Item. I have analysed the template.xsl, and the dspace.cfg but with no joy. You will probably just need to change a bunch of dim:field[@mdschema='dc' and @element='title'] to dim:field[@mdschema='dc' and @element='title' and not(@qualifier)] but this depends on your theme. What theme are you using / what standard theme is the basis for your customisations? cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- Subversion Kills Productivity. Get off Subversion Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
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 06/03/14 05:59, Evans, Kevin wrote: We are experiencing an issue in how an item is displayed. If an Alternative Title is submitted (dc.title.alternative) then this overrides the Title (dc.title) and displays the Alternative Title as the page title for an Item. I have analysed the template.xsl, and the dspace.cfg but with no joy. You will probably just need to change a bunch of dim:field[@mdschema='dc' and @element='title'] to dim:field[@mdschema='dc' and @element='title' and not(@qualifier)] but this depends on your theme. What theme are you using / what standard theme is the basis for your customisations? cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- Subversion Kills Productivity. Get off Subversion Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette