...
Info |
---|
|
The strategy is selected using a Spring <alias alias='org.dspace.app.requestitem.RequestItemAuthorExtractor' name='theStrategyClass'/> . Previously this was done by moving the RequestItemAuthorExtractor id to the selected <bean> definition. |
Info |
---|
|
The strategy is selected by configuring it into the <bean/> for RequestItemMetadataStrategy as a constructor argument. |
Configure who gets request via a metadata field
By default the RequestItemMetadataStrategy
is enabled, but falls back to the Item Submitter eperson's name and email. You can configure the RequestItemMetadataStrategy
to load the author's name and email address if you set that information into an item metadata field. For example:into an item metadata field. For example:
Code Block |
---|
title | Syntax for 7.6 or later |
---|
|
<!-- This alias defines that you want to use the RequestItemMetadataStrategy (this is enabled by default) -->
<!-- This bean specifies that you want to use the RequestItemMetadataStrategy (this is enabled by default) -->
<bean class="org.dspace.app.requestitem.RequestItemEmailNotifier" lazy-init='false'>
<description>This sends various emails between the requestor and the grantor.</description>
<!-- Modify the "ref" here to point at the "RequestItemHelpdeskStrategy" -->
<constructor-arg index='0'
ref='org.dspace.app.requestitem.RequestItemMetadataStrategy'/>
</bean>
<!-- This bean allows you to specify which metadata field is used (if any) -->
<bean class="org.dspace.app.requestitem.RequestItemMetadataStrategy"
id="org.dspace.app.requestitem.RequestItemMetadataStrategy">
<!--
Uncomment these properties if you want lookup in metadata the email and the name of the author to contact for request copy.
If you don't configure that or if the requested item doesn't have these metadata the submitter data are used as fail over
<property name="emailMetadata" value="schema.element.qualifier" />
<property name="fullNameMatadata" value="schema.element.qualifier" />
-->
</bean> |
Code Block |
---|
title | Syntax for 7.5 or earlier |
---|
|
<!-- This alias defines that you want to use the RequestItemMetadataStrategy (this is enabled by default) -->
|
Code Block |
---|
<alias alias='org.dspace.app.requestitem.RequestItemAuthorExtractor'
name='org.dspace.app.requestitem.RequestItemMetadataStrategy'/>
<!-- This bean allows you to specify which metadata field is used (if any) -->
<bean class="org.dspace.app.requestitem.RequestItemMetadataStrategy"
id="org.dspace.app.requestitem.RequestItemMetadataStrategy"
autowireCandidate="true">
<!--
Uncomment these properties if you want lookup in metadata the email and the name of the author to contact for request copy.
If you don't configure that or if the requested item doesn't have these metadata the submitter data are used as fail over
<property name="emailMetadata" value="schema.element.qualifier" />
<property name="fullNameMatadata" value="schema.element.qualifier" />
-->
</bean> |
Configure this as follows:
...