Re: [Dspace-tech] changing item mapper layout
Thanks Keiji for your thorough response. That is very helpful. Cheers, Graham -Original Message- From: zuki.ebe...@gmail.com [mailto:zuki.ebe...@gmail.com] On Behalf Of SUZUKI Keiji Sent: Monday, April 14, 2014 10:45 PM To: Graham Faulkner Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] changing item mapper layout Hi Graham, These are hard coding in programs and you have to edit files and compile and deploy them. 2014-04-15 3:33 GMT+09:00 Graham Faulkner graham.faulk...@uwaterloo.ca: 1. The emails sent to collection subscribers now list both the advisor(s) AND the student in the “Author” field (with the advisor listed first). How can I either: a. remove the advisor from the email, or b. update the email to show the advisor and author using separate field names? For (a), edit line 436 of [dspace-src]/dspace-api/src/main/java/org/dspace/eperson/Subscribe.java from: DCValue[] authors = hii.item.getDC(contributor, Item.ANY, to: DCValue[] authors = hii.item.getDC(contributor, author, 2. In the item mapper search results view for the collection, if you do a search for the author’s name of a thesis you want to map, the thesis is shown, but the advisor is listed in the Author column instead of the student. Where do I change the table layout so that the Author column shows dc.contributor.author and not dc.contributor.advisor? Edit line 108 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java from: DCValue[] dcContributors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcContributors = item.getDC(contributor,author,Item.ANY); And for changing the display in Browsing mapped items page, edit line 110 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/BrowseItemForm.java from: DCValue[] dcAuthors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcAuthors = item.getDC(contributor,author,Item.ANY); == I recommend you do not edit the files directly, instead copy these files to the appropriate directories under the [dspace-src]/dspace/modules and edit those files. Regards, Keiji Suzuki -- 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/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] changing item mapper layout
Hi all, I'm wondering if anyone can point me in the right direction re: making changes to the following pages? Cheers, Graham From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Sent: Wednesday, April 09, 2014 1:43 PM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] changing item mapper layout Hi all, I added a thesis advisor field to our submission form (via /dspace/config/input-forms.xml, and mapping the new 'supervisor' field to dc.contributor.advisor). However, I ran into some unintended side effects that I need some help with: 1. The emails sent to collection subscribers now list both the advisor(s) AND the student in the Author field (with the advisor listed first). How can I either: a. remove the advisor from the email, or b. update the email to show the advisor and author using separate field names? 2. In the item mapper search results view for the collection, if you do a search for the author's name of a thesis you want to map, the thesis is shown, but the advisor is listed in the Author column instead of the student. Where do I change the table layout so that the Author column shows dc.contributor.author and not dc.contributor.advisor? FYI, we are running DSpace 3.1 (XMLUI) on Linux. Thanks in advance for any help. Cheers, Graham -- 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/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] changing item mapper layout
Hi Graham, These are hard coding in programs and you have to edit files and compile and deploy them. 2014-04-15 3:33 GMT+09:00 Graham Faulkner graham.faulk...@uwaterloo.ca: 1. The emails sent to collection subscribers now list both the advisor(s) AND the student in the “Author” field (with the advisor listed first). How can I either: a. remove the advisor from the email, or b. update the email to show the advisor and author using separate field names? For (a), edit line 436 of [dspace-src]/dspace-api/src/main/java/org/dspace/eperson/Subscribe.java from: DCValue[] authors = hii.item.getDC(contributor, Item.ANY, to: DCValue[] authors = hii.item.getDC(contributor, author, 2. In the item mapper search results view for the collection, if you do a search for the author’s name of a thesis you want to map, the thesis is shown, but the advisor is listed in the Author column instead of the student. Where do I change the table layout so that the Author column shows dc.contributor.author and not dc.contributor.advisor? Edit line 108 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java from: DCValue[] dcContributors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcContributors = item.getDC(contributor,author,Item.ANY); And for changing the display in Browsing mapped items page, edit line 110 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/BrowseItemForm.java from: DCValue[] dcAuthors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcAuthors = item.getDC(contributor,author,Item.ANY); == I recommend you do not edit the files directly, instead copy these files to the appropriate directories under the [dspace-src]/dspace/modules and edit those files. Regards, Keiji Suzuki -- 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/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
[Dspace-tech] changing item mapper layout
Hi all, I added a thesis advisor field to our submission form (via /dspace/config/input-forms.xml, and mapping the new 'supervisor' field to dc.contributor.advisor). However, I ran into some unintended side effects that I need some help with: 1. The emails sent to collection subscribers now list both the advisor(s) AND the student in the Author field (with the advisor listed first). How can I either: a. remove the advisor from the email, or b. update the email to show the advisor and author using separate field names? 2. In the item mapper search results view for the collection, if you do a search for the author's name of a thesis you want to map, the thesis is shown, but the advisor is listed in the Author column instead of the student. Where do I change the table layout so that the Author column shows dc.contributor.author and not dc.contributor.advisor? FYI, we are running DSpace 3.1 (XMLUI) on Linux. Thanks in advance for any help. Cheers, Graham -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees___ 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