[dspace-tech] Browse by and Sidebar facet for Series

2017-01-20 Thread euler
Dear All,

I received a request to add a Browse by and sidebar facet for series in the 
repository I'm working on. The problem is that the series field contains 1) 
Series statement and 2) Volume number/sequential designation. For example, 
Technical report ; no. 1, Technical report ; no. 2, Technical report ; no. 
3, and so on and so forth. If I create a new browse by index and sidebar 
facet for the series statement, it will not aggregate the series title 
Technical report but will instead create individual entries for each series 
number. So my question is how to aggregate the series entries in the browse 
by index and sidebar facets?

Thanks in advance,
euler

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: Installation problem

2017-01-20 Thread Kim Shepherd
Hi Nico, it's hard to diagnose this problem exactly... although the problem 
seems to be that you're getting back a null Hibernate session for the 
context, I'd say your postgres database connections should be OK since your 
ant fresh_install finished successfully, which includes lots of db writes 
and checks, so I think the problem area could be the way the 
webapps/context are deployed in Tomcat and/or their references to 
dspace.home or dspace.config.

Could you share some more information such as
- which log is this exception from?
- how is Tomcat is configured to point to the xmlui and solr webapps? 
- are there any other deployment / startup errors or warnings in your raw 
catalina logs?

Cheers

Kim

On Friday, January 20, 2017 at 4:41:25 PM UTC+13, Nico Schwab wrote:
>
> Hi everybody,
>
> I'm having problems installing a fresh DSpace6.
> The steps I've made are:
>
>1. clone de repository
>2. create a new DB and add pgcrypto extension
>3. setup de local.cfg
>4. mvn clean package (finish ok)
>5. ant  fresh_install (finish ok)
>6. configure tomcat 7 (and also tried with tomcat8) so it points to 
>xmlui and solr
>7. start tomcat 
>
> The error I'm getting is this (by the way, I'm ussing Java 8):
>
>
> GRAVE: Excepción enviando evento inicializado de contexto a instancia de 
> escuchador de clase org.dspace.app.util.DSpaceWebappListener
> java.lang.NullPointerException
> at 
> org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:48)
> at 
> org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:38)
> at 
> org.dspace.app.util.WebAppServiceImpl.create(WebAppServiceImpl.java:49)
> at 
> org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:75)
> at 
> org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31)
> at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
> at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
> at 
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> Any idea ? I'm stuck...
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Access Database without Hibernate

2017-01-20 Thread Tim Donohue
Hi Tiago,

The DatabaseManager was replaced by the new Database Access Object (DAO)
Layer in DSpace 6.x.  So, now you need to use the appropriate DAO object to
query the database table that you wish to query (as there are now DAOs for
each database table).  For much more information on this, see the DSpace 6
Service API notes at:
https://wiki.duraspace.org/display/DSPACE/DSpace+Service+based+api#DSpaceServicebasedapi-Servicebasedapi
(There are also many examples linked to from the bottom of that wiki page.)

So, there is no direct replacement for DatabaseManager. But, if you wanted
to query the "item" table (for example), you'd now use
the org.dspace.content.dao.ItemDAO class to do so:
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/dao/impl/ItemDAOImpl.java

Hope that helps. If you have more specific questions, please feel free to
ask them on this list.  We fully realize this new model will take getting
used to, but it provides much more stability and separation of concerns
than our old way of using the DatabaseManager for all queries.

Tim

On Fri, Jan 20, 2017 at 5:36 AM Tiago Oliveira  wrote:

> Ahoy!
>
> I'm haveing a really deep need to directly access database without using
> Hibernate. I'm upgrading Dspace from Version 5 to 6, and in the older
> version it was used a statistics module that ran independent queries ( i
> really can't create an abstraction level with hibernate for that, since
> every query is unique)
>
> Before the DB access was performed with Database Manager + TableRow but
> now I cant do it that way since those classes no longer exist. I've already
> tried to access the context -> getDbConnection -> getSession and get the
> SQL connection through there. I've also tried with the
> DSpaceServicesFactory to get the dataSource and then the connection.
>
> Both of this methods interfere with the hibernate access since I get an
> invalid session after I've run any query to DB.
>
> Can anyone help me?
>
> Thanks in advance
>
> Tiago Oliveira
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Does '$/dspace database clean' affects configuration-tool-demo.xls ?

2017-01-20 Thread Pascarelli Luigi Andrea
Yes, you have to run again the load-cris-configuration script.

Hope this helps you.

Best,

Luigi Andrea

Il 20/01/2017 12:43, Lluís Madurell Alemany ha scritto:
If running [dspace]/bin/dspace database clean

Do you need to run again (2 times) dspace load-cris-configuration -f 
[dspace]/etc/configuration-tool-demo.xls ?
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Luigi Andrea Pascarelli

DSpace and DSpace-CRIS Committer

4Science,  www.4science.it

office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
tel: +39 333 934 1782
skype: l_a_p82
linkedin: luigiandreapascarelli

an Itway Group Company
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates


Save a tree. Don't print this e-mail unless it's really necessary.

DISCLAIMER: The information contained in this message is confidential, can be 
legally protected by local Laws,
and must be exclusively used by the recipient. The publication, use, 
distribution, printing or unauthorized copy
of the content of this message is strictly forbidden and it can be illegal. If 
you received this message by mistake,
please destroy it and notify it to the sender.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: Internal System Error - HTTP Status 500

2017-01-20 Thread snemi
Maybe your solr index is corrupt or locked by .lock file. Maybe delete 
C:\dspace\solr\search\data\index\


and try to create new index with dspace index-discovery -b

Am Montag, 11. Juli 2016 18:13:41 UTC+2 schrieb MICHAEL TUFFOUR:
>
> Dear ALL ,
>
> I am very new to Dspace but i am working on a project with it. After 
> proper installation and upload of various academic resources(thesis). i 
> Cannot now open it in properly since it gives me this errors below. I will 
> be very glad if somebody can help me resolve this issues.
>
> HTTP Status 500 - {msg=SolrCore 'search' is not available due to init 
> failure: Error opening new 
> searcher,trace=org.apache.solr.common.SolrException: SolrCore 'search' is 
> not available due to init failure: Error opening new searcher at 
> org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:299)
>  
> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
>  
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  
> at 
> org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:50)
>  
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>  
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>  
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) 
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
>  
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
> at java.lang.Thread.run(Unknown Source) Caused by: 
> org.apache.solr.common.SolrException: Error opening new searcher at 
> org.apache.solr.core.SolrCore.(SolrCore.java:873) at 
> org.apache.solr.core.SolrCore.(SolrCore.java:646) at 
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:491) at 
> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255) at 
> org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249) at 
> java.util.concurrent.FutureTask.run(Unknown Source) at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ... 1 
> more Caused by: org.apache.solr.common.SolrException: Error opening new 
> searcher at 
> org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1565) at 
> org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1677) at 
> org.apache.solr.core.SolrCore.(SolrCore.java:845) ... 8 more Caused 
> by: java.io.FileNotFoundException: 
> C:\dspace\solr\search\data\index\_1s_Lucene41_0.tip (The system cannot find 
> the file specified) at java.io.RandomAccessFile.open0(Native Method) at 
> java.io.RandomAccessFile.open(Unknown Source) at 
> java.io.RandomAccessFile.(Unknown Source) at 
> org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:58)
>  
> at 
> org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:198)
>  
> at 
> org.apache.lucene.codecs.blocktree.BlockTreeTermsReader.(BlockTreeTermsReader.java:115)
>  
> at 
> org.apache.lucene.codecs.lucene41.Lucene41PostingsFormat.fieldsProducer(Lucene41PostingsFormat.java:441)
>  
> at 
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:197)
>  
> at 
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:254)
>  
> at 
> org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:120)
>  
> at org.apache.lucene.index.SegmentReader.(SegmentReader.java:108) at 
> org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:144)
>  
> at 
> org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:238)
>  
> at 
> org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:104)
>  
> at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:422) at 
> org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:112) at 
> org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:41)
>  
> at 

[dspace-tech] Does '$/dspace database clean' affects configuration-tool-demo.xls ?

2017-01-20 Thread Lluís Madurell Alemany
If running [dspace]/bin/dspace database clean

Do you need to run again (2 times) dspace load-cris-configuration -f 
[dspace]/etc/configuration-tool-demo.xls ?

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: Changing default sorting in search

2017-01-20 Thread eanasagasti
Thanks a lot! It worked.

I uncomented the line in 
*[dspace-install-dir]/config/spring/api/discovery.xml*
Then rebuilt the index:
*./dspace index-discovery -b*
And then restarted the web server, in our case Tomcat7:
*/etc/init.d/tomcat7 restart*

--

Eneko


El jueves, 19 de enero de 2017, 16:14:41 (UTC+1), euler escribió:
>
> Hi Eneko,
>
> Please see this link: 
> https://wiki.duraspace.org/display/DSDOC5x/Discovery#Discovery-Configuringandcustomizingsearchsortfields
>
> As you can see, the  was 
> commented out, which means it will default to relevance. Try to uncomment 
> this portion and rebuild discovery.
>
> Hope this helps.
>
> Regards,
> euler
>
> On Thursday, January 19, 2017 at 10:12:21 PM UTC+8, Eneko Anasagasti wrote:
>>
>> Hi,
>>
>> I am trying to change the default sorting in searches for our Dspace 5.5. 
>> However I don't quite understand how to do this. As far as I understand 
>> reading the docs is that this functionality is hard-coded.
>>
>>
>> http://mirror.swem.wm.edu/DSDOC/wiki.duraspace.org/display/DSDOC5x/Discovery.html#Discovery-Sortoptioncustomizationforsearchresults
>>
>> We would like to sort_by=dc.date.issued_dt=desc
>>
>> Could someone point me in the right direction?
>>
>> Thanks,
>>
>> -- 
>>
>> Eneko
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.