Dspace installation mvn Error

Error : Failed to execute goal on project dspace-solr: Could not resolve dependencies for project org.dspace:dspace-solr:war:6.3: The following artifacts could not be resolved: org.restlet.jee:org.restlet:jar:2.1.1, org.restlet.jee:org.restlet.ext.servlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:jar:2.1.1 from/to maven-restlet (http://maven.restlet.org): Failed to transfer file: http://maven.restlet.org/org/restlet/jee/org.restlet/2.1.1/org.restlet-2.1.1.jar

to solve it :
edit solr restler pom file

change

<url>maven.restlet.org</url>

with

    <url>https://maven.restlet.talend.com</url>

Add new Discovery search filter & facet fields in dspace

1- add the field to indeing

edit the files dspace.cfg

The search commands are written as “search.index.# = [name]:[schema].[element].[qualifier]”

add the field in this section

changing these will change your search results

search.index.6 = abstract:dc.description.abstract

 

2- add the field text in

  i18n/messages.xml
like
    <message key=”xmlui.ArtifactBrowser.AdvancedSearch.type_abstract”>abstract</message>
    <message key=”xmlui.ArtifactBrowser.SimpleSearch.filter.abstract”>abstract</message>

3- Creating a new discovery bean

open the file

[Dspace]/config/spring/api/discovery.xml

add the new fitler field to this section

<list>
    <refbean="searchFilterTitle"/>
    <refbean="searchFilterAuthor"/>
    <refbean="searchFilterSubject"/>
    <refbean="searchFilterAbstract"/>
</list>
for facet add it in this section
<property name=”sidebarFacets”>
<list>
<ref bean=”searchFilterAuthor” />
<ref bean=”searchFilterSubject” />
<ref bean=”searchFilterPublisher” />
<ref bean=”searchFilterIssued” />
<ref bean=”searchFilterAbstract” />

</list>

4- then create the field configuration beans
<!–Search filter configuration beans–>
<bean id=”searchFilterAbstract” class=”org.dspace.discovery.configuration.DiscoverySearchFilterFacet”>
<property name=”indexFieldName” value=”abstract”/>
<property name=”metadataFields”>
<list>
<value>dc.description.abstract</value>
</list>
</property>
</bean>
5- reindex discovery and restart tomcat
./dspace index-discovery -f
service tomcat7 restart

Enable and Generate statistics in Dspace

Enable Workflow first ( like here )

change solr data folder to tomcat user

run the stats-util  command

{dspace.dir}/bin/stats-util -o

OR

{dspace.dir}/bin/stats-util -r -b

then run these command

[dspace]/bin/dspace sub-daily

[dspace]/bin/dspace filter-media
[dspace]/bin/dspace checker -lp
[dspace]/bin/dspace dsrun org.dspace.checker.DailyReportEmailer -c
[dspace]/bin/dspace stat-general
[dspace]/bin/dspace stat-monthly
[dspace]/bin/dspace stat-report-general
[dspace]/bin/dspace stat-report-monthly

Now convert and import the old log to statistics

cd /[dspace]/log

ITEM=`ls dspace.log.*`
for i in $ITEM ; do
../bin/dspace stats-log-converter -i $i -o $i.solr
done
ITEM=`ls *.solr`
for i in $ITEM ; do
../bin/dspace stats-log-importer -i $i
done

Enable Workflow in Dspace

Enable Workflow

in dspace/config/modules/workflow.cfg

uncomment

workflow.framework: xmlworkflow

and comment #workflow.framework: originalworkflow

import these files to dspace database

  • [dspace]/etc/postgres/xmlworkflow/xml_workflow.sql
  • [dspace]/etc/postgres/xmlworkflow/workflow_migration.sql

 

Now run this

[dspace]/bin/dspace dsrun org.dspace.xmlworkflow.migration.RestartWorkflow -e admin@myrespository.org

 

import marc file into dspace

download this script from github

https://github.com/amdmaher/import-marc-into-dspace

1- check the marc file

2- run mk2dc.pl to convert from mrc to dubline core
./mk2dc.pl 762.mrc > 762.xml

3- create import dir

mkdir import

4- run build.pl to build dspace file folders

this ./build.pl 762.xml
5- now import records to dspace
./dspace import -a -e email@mail.com -c [CollectionID] -s import -m mapfile