Re: [Dspace-tech] stats-util error Document is missing mandatory uniqueKey field: uid

2015-07-23 Thread Andrea Schweer

  
  
Hi Anthony,

oh right sorry, I should have looked at the help for -r: "While indexing the bundle
  names remove the statistics about deleted bitstreams". So
yes, it looks like an upgrade is your best bet. 

Alternatively, you could write a curation task / script that goes
through all bitstream IDs in your statistics solr core and for each
one, checks whether it's still a valid bitstream. If not, delete all
hits for this bitstream by sending the appropriate solr query.
Sorry, I don't have time right now to dig up examples for these
queries, but if you're interested in going down that route and need
help with the queries, post to the mailing list again and I'm sure
someone will respond.

cheers,
Andrea

On 24/07/15 03:41, Anthony Petryk
  wrote:


  
  
  
  
Hi again
Andrea,
 
As you
predicted, I now get a “version conflict” error after
applying your uid fix and rebuilding:
 
Exception:
version conflict for " expected=1507325787224670208
actual=1507501635509682176
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
version conflict for " expected=1507325787224670208
actual=1507501635509682176
 
So it looks
like we’ll need to upgrade to 5 for the full solution.
 
Cheers,
 
Anthony
 

  
From: Anthony Petryk
[mailto:anthony.pet...@uottawa.ca]

Sent: Thursday, July 23, 2015 11:22 AM
To: Andrea Schweer schw...@waikato.ac.nz;
dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] stats-util error
"Document is missing mandatory uniqueKey field: uid"
  

 
Thanks for the
response, Andrea. 

 
Do I need to do
anything after updating the solrconfig.xml file, as you
suggested?
 
I tried running
but stats-util with just the –r flag, but it doesn’t work. 
I confirmed this by looking at StatisticsClient.java, which
only uses r if b is present:
 
  else
if(line.hasOption('b'))
    {
   
SolrLogger.reindexBitstreamHits(line.hasOption('r'));
    }
 
Best,
 
Anthony
 

  
From: Andrea Schweer [mailto:schw...@waikato.ac.nz]

Sent: Wednesday, July 22, 2015 5:32 PM
To: Anthony Petryk anthony.pet...@uottawa.ca;
dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] stats-util error
"Document is missing mandatory uniqueKey field: uid"
  

 
Hi Anthony,

  On 23/07/15 01:37, Anthony Petryk wrote:


  DSpace 4.3. 
   We’re getting an error when trying to run
  dspace stats-util –br: “Document is missing
  mandatory uniqueKey field: uid”.  We want to run this
  command specifically to remove stats for deleted
  bitstreams (-r option).
  
   
  This sounds like the same root problem as

  DS-2212, which is fixed in version 5.2.  But I just
wanted to check: is there any way to get this to work
without upgrading?


You're actually running into 
  https://jira.duraspace.org/browse/DS-2489. If I
remember correctly then you may be able to fix this by
applying this small change to the solrconfig.xml for the
statistics core:
https://github.com/DSpace/DSpace/commit/b07707874a489b4d5238c87d04d2be1b28ece447

However, chances are that you'll then just run into further
issues such as DS-2212.

If you're only after removing deleted bitstreams, try
leaving out the "b" flag ("Reindex the bitstreams to ensure
we have the bundle name"). Re-indexing will hit the uid bug
(and probably the _version_ one too); deleting (-r only)
shouldn't have the same issue since it won't try adding
documents to the solr index.

cheers,
Andrea


-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
  


-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand

[Dspace-tech] Error while attempting to create identifier for Item

2015-07-23 Thread alexia
Dear all 

We have a running dspace 3.2 repository. A few weeks ago we started getting
an internal system error when trying to approve a submitted item from the
pool. I checked the logs and the error we keep getting when trying to
approve any item in the pool is the following: 

Jul 21, 2015 8:49:17 AM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet mydspace threw exception 
java.lang.RuntimeException: Error while attempting to create identifier for
Item id: 6250 
   at
org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:117)
 
   at
org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:80)
 
   at org.dspace.content.InstallItem.installItem(InstallItem.java:67) 
   at org.dspace.content.InstallItem.installItem(InstallItem.java:44) 
   at
org.dspace.workflow.WorkflowManager.archive(WorkflowManager.java:724) 
   at
org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:656) 
   at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:416) 
   at
org.dspace.workflow.WorkflowManager.doState(WorkflowManager.java:634) 
   at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:407) 
   at
org.dspace.workflow.WorkflowManager.advance(WorkflowManager.java:336) 
   at
org.dspace.app.webui.servlet.MyDSpaceServlet.processPerformTask(MyDSpaceServlet.java:429)
 
   at
org.dspace.app.webui.servlet.MyDSpaceServlet.doDSPost(MyDSpaceServlet.java:109) 
   at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115)
 
   at
org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73) 
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
   at
org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:66)
 
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
   at
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
 
   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:102) 
   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:859) 
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
 
   at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
   at java.lang.Thread.run(Thread.java:701) 

I have searched in the lists but could not find anything similar. Any ideas
please? 

Kind regards, 
Alexia




--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Error-while-attempting-to-create-identifier-for-Item-tp4678915.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] problems about protecting PDF files in Dspace

2015-07-23 Thread Higgins
Hello Everyone, 
Is there a way to protect pdf or doc files from downloading on Dspace server, 
but viewing is allowed?
Thanks a lot. 


  --
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] About dspace kernel registered as MBean

2015-07-23 Thread geliba
Hello, everybody!


I am reading DSpace Manual and under the topic Kernel registration of 
Architectural Overview in the chapter 7.4.4 DSpace Services Framework, it says 
the kernel will automatically register itself as an MBean (I am interested in 
JMX and want to have a good understanding about how it works in practice). I am 
just wondering if this is a default behavior. However, I managed to find the 
actual code and the result is it is likely as following:
package org.dspace.servicemanager;
/**
 * Creates or retrieves a DSpace Kernel with the given name.
 *
 * @return a DSpace Kernel
 * @throws IllegalStateException if the Kernel cannot be created
 */
public static DSpaceKernelImpl getKernel(String name) {
if (name != null) {
try {
DSpaceKernel kernel = new DSpaceKernelManager().getKernel(name);
if (kernel != null) {
if (kernel instanceof DSpaceKernelImpl) {
return (DSpaceKernelImpl)kernel;
}

throw new IllegalStateException(Wrong DSpaceKernel implementation);
}
} catch (Exception e) {
// Ignore exceptions here
}
}

synchronized (staticLock) {
DSpaceKernelImpl kernelImpl = new DSpaceKernelImpl(name);
log.info(Created new kernel:  + kernelImpl);

if (name != null) {
DSpaceKernelManager.registerMBean(kernelImpl.getMBeanName(), kernelImpl);
} else {
DSpaceKernelManager.setDefaultKernel(kernelImpl);
}

return kernelImpl;
}
}


It seems DSpaceKernelManager.registerMBean method has never ever been invoked. 
It is what I found from my limited knowledge. Maybe I am misunderstanding 
something. Could you please explain what should actually happen. By the way, my 
dspace version is 5.2.


Best regards
Gilbert--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] stats-util error Document is missing mandatory uniqueKey field: uid

2015-07-23 Thread Anthony Petryk
Thanks for the response, Andrea.

Do I need to do anything after updating the solrconfig.xml file, as you 
suggested?

I tried running but stats-util with just the -r flag, but it doesn't work.  I 
confirmed this by looking at StatisticsClient.java, which only uses r if b is 
present:

  else if(line.hasOption('b'))
{
SolrLogger.reindexBitstreamHits(line.hasOption('r'));
}

Best,

Anthony

From: Andrea Schweer [mailto:schw...@waikato.ac.nz]
Sent: Wednesday, July 22, 2015 5:32 PM
To: Anthony Petryk anthony.pet...@uottawa.ca; 
dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] stats-util error Document is missing mandatory 
uniqueKey field: uid

Hi Anthony,
On 23/07/15 01:37, Anthony Petryk wrote:
DSpace 4.3.   We're getting an error when trying to run dspace stats-util -br: 
Document is missing mandatory uniqueKey field: uid.  We want to run this 
command specifically to remove stats for deleted bitstreams (-r option).

This sounds like the same root problem as 
DS-2212https://jira.duraspace.org/browse/DS-2212, which is fixed in version 
5.2.  But I just wanted to check: is there any way to get this to work without 
upgrading?

You're actually running into https://jira.duraspace.org/browse/DS-2489. If I 
remember correctly then you may be able to fix this by applying this small 
change to the solrconfig.xml for the statistics core: 
https://github.com/DSpace/DSpace/commit/b07707874a489b4d5238c87d04d2be1b28ece447

However, chances are that you'll then just run into further issues such as 
DS-2212.

If you're only after removing deleted bitstreams, try leaving out the b flag 
(Reindex the bitstreams to ensure we have the bundle name). Re-indexing will 
hit the uid bug (and probably the _version_ one too); deleting (-r only) 
shouldn't have the same issue since it won't try adding documents to the solr 
index.

cheers,
Andrea



--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Statistics in dspace 4.1

2015-07-23 Thread Dspace P
Good MorningI
Have problems in statistics in dspace 4.1 because their are not
registering.
I can see this in Catalina

java.lang.NullPointerException
at
org.dspace.statistics.util.SpiderDetector.isSpider(SpiderDetector.java:208)
at
org.dspace.statistics.util.SpiderDetector.isSpider(SpiderDetector.java:258)
at
org.dspace.statistics.SolrLogger.getCommonSolrDoc(SolrLogger.java:287)
at org.dspace.statistics.SolrLogger.postView(SolrLogger.java:215)
at
org.dspace.statistics.SolrLoggerUsageEventListener.receiveEvent(SolrLoggerUsageEventListener.java:42)
at
org.dspace.services.events.SystemEventService.fireLocalEvent(SystemEventService.java:144)
at
org.dspace.services.events.SystemEventService.fireEvent(SystemEventService.java:86)
at
org.dspace.app.webui.servlet.BitstreamServlet.doDSGet(BitstreamServlet.java:176)
at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
at
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException

Any idia about this problem?
Thanksfor the help
Antonio
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] discovery facet by collection

2015-07-23 Thread Terry Brady
I saw this issue raised up on the list again today. Pablo, I do not know if
this will answer your questions, but this information might be helpful.

As Christian suggests, I have also found it helpful to define new
sidebarFacets as searchFilters.

I implemented a custom sidebar facet on a community and another sidebar
facet on the collections within that community.

In order for the sidebar facet to function at the community level, I needed
to define that facet as a search filter within each of the collections in
that community.

On Tue, Jun 2, 2015 at 7:37 AM, Christian Scheible 
christian.schei...@uni-konstanz.de wrote:

 The field should be fine (At least thats the field I can see in Solr
 search core). Maybe the problem is that you didn't define it in every
 place where it is needed. I think it has to be a search filter in
 addition to a facet in order to work. And maybe it has to be part of the
 hompageConfiguration and the defaultConfiguration. But I am not sure
 about that.

 Am 02.06.2015 um 14:51 schrieb Pablo Buenaposada:
  yes, I have reindex after the change in discovery.xml.
  The tag location.coll is the correct one to obtain the collection?
 
 
 
  --
  View this message in context:
 http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html
  Sent from the DSpace - Tech mailing list archive at Nabble.com.
 
 
 --
  ___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech
  List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 
 


 --
 Christian Scheible
 Softwareentwickler / Abt. Content-basierte Dienste
 Kommunikations-, Informations- und Medienzentrum (KIM)
 Universität Konstanz
 78457 Konstanz
 +49 (0)7531 / 88-2857
 Raum B 703



 --
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] stats-util error Document is missing mandatory uniqueKey field: uid

2015-07-23 Thread Anthony Petryk
Hi again Andrea,

As you predicted, I now get a version conflict error after applying your uid 
fix and rebuilding:

Exception: version conflict for  expected=1507325787224670208 
actual=1507501635509682176
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: version 
conflict for  expected=1507325787224670208 actual=1507501635509682176

So it looks like we'll need to upgrade to 5 for the full solution.

Cheers,

Anthony

From: Anthony Petryk [mailto:anthony.pet...@uottawa.ca]
Sent: Thursday, July 23, 2015 11:22 AM
To: Andrea Schweer schw...@waikato.ac.nz; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] stats-util error Document is missing mandatory 
uniqueKey field: uid

Thanks for the response, Andrea.

Do I need to do anything after updating the solrconfig.xml file, as you 
suggested?

I tried running but stats-util with just the -r flag, but it doesn't work.  I 
confirmed this by looking at StatisticsClient.java, which only uses r if b is 
present:

  else if(line.hasOption('b'))
{
SolrLogger.reindexBitstreamHits(line.hasOption('r'));
}

Best,

Anthony

From: Andrea Schweer [mailto:schw...@waikato.ac.nz]
Sent: Wednesday, July 22, 2015 5:32 PM
To: Anthony Petryk 
anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca; 
dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] stats-util error Document is missing mandatory 
uniqueKey field: uid

Hi Anthony,
On 23/07/15 01:37, Anthony Petryk wrote:
DSpace 4.3.   We're getting an error when trying to run dspace stats-util -br: 
Document is missing mandatory uniqueKey field: uid.  We want to run this 
command specifically to remove stats for deleted bitstreams (-r option).

This sounds like the same root problem as 
DS-2212https://jira.duraspace.org/browse/DS-2212, which is fixed in version 
5.2.  But I just wanted to check: is there any way to get this to work without 
upgrading?

You're actually running into https://jira.duraspace.org/browse/DS-2489. If I 
remember correctly then you may be able to fix this by applying this small 
change to the solrconfig.xml for the statistics core: 
https://github.com/DSpace/DSpace/commit/b07707874a489b4d5238c87d04d2be1b28ece447

However, chances are that you'll then just run into further issues such as 
DS-2212.

If you're only after removing deleted bitstreams, try leaving out the b flag 
(Reindex the bitstreams to ensure we have the bundle name). Re-indexing will 
hit the uid bug (and probably the _version_ one too); deleting (-r only) 
shouldn't have the same issue since it won't try adding documents to the solr 
index.

cheers,
Andrea


--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] discovery facet by collection

2015-07-23 Thread Pablo Buenaposada
up



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678894.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Filter by language - search

2015-07-23 Thread helix84
On Wed, Jul 22, 2015 at 4:04 PM, Luiz dos Santos luiz...@gmail.com wrote:

 That is it?


https://wiki.duraspace.org/display/DSDOC4x/Discovery#Discovery-ConfiguringlistsofsidebarFacetsandsearchFilters

After modifying sidebarFacets and searchFilters, don't forget to reindex
existing items by running [dspace]/bin/dspace index-discovery -b, otherwise
the changes will not appear.

If you also want facets:

Each sidebar facet must also occur in the list of the search filters.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] How to enable altmetrics on dspace 5.1 on jspui

2015-07-23 Thread Konstantinos Koumoutsos
Hello All.

I am trying to enable altmetrics http://api.altmetric.com/embeds.html on
dspace 5.1 with no luck. i can see that it is an embedded feature (it is
configurable on config/modules/altmetrics.cfg) on dspace 5.x but i am not
able to find details on how to enable it.

I also tried to enable with hard way (by adding the proper script and html
code) but this failed also.

Thanks.
Regards
Kostas
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Download Statistics for specific item

2015-07-23 Thread David de la Croes
Hi All,
We are encountering a problem in generating / displaying download 
statistics on a particular record in our repository. Since it was 
initially ingested, a number of actions were performed on it:
1. It was originally ingested with a .docx file to generated the handle 
which the authors requested to insert into the final publication.
2. The item was withdrawn, then re-instated.
3. The final version (pdf) was uploaded, and afterwards the original 
version (the docx) was deleted.

It appears that the download statistics cannot be generated, and the 
following (snippet) appears in the dspace.log below.

Any help in resolving the issue would be highly appreciated, as this is 
one of our most popular items in the repository
http://open.uct.ac.za/handle/11427/12937

Thanks,

David de la Croes
University of Cape Town Libraries



2015-07-22 09:14:23,142 ERROR 
org.dspace.app.xmlui.aspect.statistics.StatisticsTransformer @ Error 
occurred while creating statistics for dso with ID: 13323 and type 2 and 
handle: 11427/12937
java.lang.NullPointerException
 at 
org.dspace.statistics.content.StatisticsDataVisits.getAttributes(StatisticsDataVisits.java:633)
 at 
org.dspace.statistics.content.StatisticsDataVisits.createDataset(StatisticsDataVisits.java:354)
 at 
org.dspace.statistics.content.StatisticsDisplay.getDataset(StatisticsDisplay.java:88)
 at 
org.dspace.app.xmlui.aspect.statistics.StatisticsTransformer.renderViewer(StatisticsTransformer.java:340)
 at 
org.dspace.app.xmlui.aspect.statistics.StatisticsTransformer.addBody(StatisticsTransformer.java:141)
 at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)
 at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
 at com.sun.proxy.$Proxy43.startElement(Unknown Source)
 at 
org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
 at 
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87)
 at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
 at 
org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:240)
 at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)



--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How to enable altmetrics on dspace 5.1 on jspui

2015-07-23 Thread Sean Carte
On 23 July 2015 at 10:07, Konstantinos Koumoutsos koumout...@gmail.com
wrote:

 I am trying to enable altmetrics http://api.altmetric.com/embeds.html on
 dspace 5.1 with no luck. i can see that it is an embedded feature (it is
 configurable on config/modules/altmetrics.cfg) on dspace 5.x but i am not
 able to find details on how to enable it.

 I also tried to enable with hard way (by adding the proper script and html
 code) but this failed also.


I'm also stuck with this, but on XML UI, DSpace 5.2.

My config/modules/altmetrics.cfg looks like this:

altmetrics.field = dc.identifier
altmetric.enabled = true
altmetric.badgeType = donut
altmetric.popover = bottom
altmetric.details = right

in dspace.cfg I've got:
report.public = true

and config/modules/usage-statistics.cfg
authorization.admin.usage=false
authorization.admin.search=false
authorization.admin.workflow=false

I've added metadata to an existing item:
dc.identifier  10.1038/nature.2012.9872

But when I view the item, or its usage statistics, I don't see any
altmetrics information; nothing in the HTML either.

Sean
--
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] bundle.isEmbargoed

2015-07-23 Thread Domingo Iglesias
Hi all,


Is it possible to embargo an item ingested via sword with dspace 5.2?

Thanks in advance!

2015-07-08 15:38 GMT+02:00 Tim Donohue tdono...@duraspace.org:

  Hi Monika,

 I don't recall such a method, and I'm not seeing one on the version 1.8
 Bundle class:

 https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-api/src/main/java/org/dspace/content/Bundle.java

 Perhaps this was something custom you added?

 In any case, Embargoes in 5.x are now stored in ResourcePolicies.
 Specially, an embargoed item has a public ResourcePolicy which has a
 start_date = embargo date. That means the Item is dark until the
 start_date passes, at which point it becomes public.  There are some basic
 details in the docs at:

 https://wiki.duraspace.org/display/DSDOC5x/Embargo#Embargo-TechnicalSpecifications

 So, if you are looking for whether something is under embargo, you'd want
 to check its ResourcePolicies (a ResourcePolicy can be applied to any
 object). Here's the ResourcePolicy class:

 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.java

 Hopefully that helps clarify embargoes. If you have a more specific use
 case in mind here, you could always describe it on the list, and we may be
 able to help.

 - Tim


 On 7/7/2015 4:28 PM, Monika C. Mevenkamp wrote:

 There used to be a method in Bundle (v1.8)  that determined whether it is
 embargoed
 Where is the replacement ?

  Monika

  —
 Monika Mevenkamp
 Digital Repository Infrastructure Developer
 Phone: 609-258-4161
 333C 701 Carnegie, Princeton University, Princeton, NJ 08544



 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud 
 Today.https://www.gigenetcloud.com/



 ___
 DSpace-tech mailing 
 listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

 --

 ---
 Domingo Iglesias
 Universitat de Barcelona
 Area de Tecnologies
  https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette