SUNScholar/Request a Copy/5.X

From Libopedia
Jump to navigation Jump to search
Back to Request a Copy

Please Note:

Step 1

Edit the following file:

nano $HOME/source/dspace/config/dspace.cfg

Modify the "request item" settings.

See example below.

#---------------------------------------------------------------#
#----------------REQUEST ITEM CONFIGURATION---------------------#
#---------------------------------------------------------------#

# Configuration of request-item. Possible values:
# all - Anonymous users can request an item
# logged - Login is mandatory to request an item
# empty/commented out - request-copy not allowed
request.item.type = all
# Helpdesk E-mail
mail.helpdesk = scholar@sun.ac.za
# Should all Request Copy emails go to the helpdesk instead of the item submitter?
request.item.helpdesk.override = true

#------------END REQUEST ITEM CONFIGURATION---------------------#

Step 2

Modify the following file:

nano $HOME/source/dspace/config/spring/api/requestitem.xml

Uncomment the request item bean and comment out the author email option.

See example below.

<?xml version="1.0" encoding="UTF-8"?>
<!--

    The contents of this file are subject to the license and copyright
    detailed in the LICENSE and NOTICE files at the root of the source
    tree and available online at

    http://www.dspace.org/license/

-->
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd"
    default-autowire-candidates="*Service,*DAO,javax.sql.DataSource">

    <context:annotation-config /> <!-- allows us to use spring annotations in beans -->

	<!-- <bean class="org.dspace.app.requestitem.RequestItemMetadataStrategy"
		id="org.dspace.app.requestitem.RequestItemAuthorExtractor"> 
	 
		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>-->

    <!-- HelpDesk to instead get RequestItem emails-->
    <bean class="org.dspace.app.requestitem.RequestItemHelpdeskStrategy"
        id="org.dspace.app.requestitem.RequestItemAuthorExtractor"></bean>

</beans>

Step 3

Rebuild DSpace.

YouTube Video

References