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 <[email protected]>:
> 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
[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