Re: [Dspace-tech] Refworks and Dspace

2010-04-14 Thread Alexandre Magaz Graça

Al 14/04/10 11:09, En/na ManuMohedano ha escrit:

Hi All.

Does anybody know if there is any way or patch (For 1.5.2 or 1.6 Dspace
versions) to add reference from dspace items in Refworks??

Thanks.

Manu



Hi Manu,

Yes, there is a patch for version 1.4.1 here:

http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg10042.html

I'm attaching a modified version I've made recently for 1.5.2.

Cheers,
Àlex

=== added directory 'dspace-jspui/dspace-jspui-api/src/main/java/edu'
=== added directory 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc'
=== added directory 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit'
=== added directory 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira'
=== added directory 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace'
=== added file 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksLinkTag.java'
--- dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksLinkTag.java	1970-01-01 00:00:00 +
+++ dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksLinkTag.java	2010-04-07 15:41:58 +
@@ -0,0 +1,91 @@
+/* 
+ * RefworksLinkTag.java
+ *
+ * Version: $Id: $
+ *
+ * Date: $Date: $
+ *
+ */
+package edu.wisc.doit.lira.dspace;
+
+import java.io.IOException;
+import java.net.URLEncoder;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import org.dspace.core.ConfigurationManager;
+
+
+/**
+ * Renders an Refworks query link. 
+ * 
+ * 
+ * @author Rose Smith (adapted from Gabriela Mircea)
+ * @version $Revision: 1.0 $
+ */
+public class RefworksLinkTag extends TagSupport
+{
+/** Item to display Refworks link for */
+private String handle;
+
+public RefworksLinkTag()
+{
+super();
+}
+
+public int doStartTag() throws JspException
+{
+try
+{
+String refServer = ConfigurationManager
+.getProperty("refworks.server.url");
+
+String refServlet = ConfigurationManager
+.getProperty("refworks.servlet.path");
+
+   if ((refServer == null) || (refServlet == null))
+{
+// No RefWorks server or servlet
+return SKIP_BODY;
+}
+
+HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
+String thisURL = request.getRequestURL().toString();
+String servletPath = request.getServletPath();
+int i = thisURL.lastIndexOf(servletPath);
+thisURL = thisURL.substring(0, i);
+
+pageContext.getOut().print(refServer  + URLEncoder.encode(thisURL + refServlet +  handle, "UTF-8") );
+}
+catch (IOException ie)
+{
+throw new JspException(ie);
+}
+
+return SKIP_BODY;
+}
+
+/**
+ * Get the handle this tag should display Refworks Link for
+ * 
+ * @return the handle
+ */
+public String getHandle()
+{
+return handle;
+}
+
+/**
+ * Set the handle this tag should display Refworks Link for
+ * 
+ * @param handleIn
+ */
+public void setHandle(String handleIn)
+{
+handle = handleIn;
+}
+}
+
+

=== added file 'dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksServlet.java'
--- dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksServlet.java	1970-01-01 00:00:00 +
+++ dspace-jspui/dspace-jspui-api/src/main/java/edu/wisc/doit/lira/dspace/RefworksServlet.java	2010-04-07 15:41:58 +
@@ -0,0 +1,344 @@
+/*
+ * RefworksServlet.java
+ *
+ * Version: $Id: $
+ *
+ * Date: $Date: $
+ *
+ */
+
+package edu.wisc.doit.lira.dspace;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
+import java.sql.SQLException;
+import java.util.Date;
+import java.text.DateFormat;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+
+import org.apache.log4j.Logger;
+
+import org.dspace.app.webui.servlet.DSpaceServlet;
+import org.dspace.content.DCPersonName;
+import org.dspace.content.DCValue;
+import org.dspace.content.Item;
+import org.dspace.core.Context;
+import org.dspace.core.LogManager;
+import org.dspace.handle.HandleManager;
+
+
+/**
+ * Servlet for exporting an item to RefWorks
+ *
+ * A handle is extracted from the query string
+ * and used to obtain the item and its DC metadata
+ * 
+ * A record in Refworks Tagged Format is assembled and output
+ * 
+ * @author Rose Smith (adapted from Gabriela Mircea)
+ * @version $Revision: 1.0 $
+ */
+public class RefworksServlet extends DSpaceServlet
+{
+/** log4j category */
+private static Logger log = Logger.getLogger(RefworksServlet.class);
+
+protected void doDS

Re: [Dspace-tech] Withdrawing Item Authentication Issue

2010-05-24 Thread Alexandre Magaz Graça
Al 17/05/10 17:49, En/na bryce ray ha escrit:
> I'm attempting to withdraw an item from my current dspace installation.
> I read that there is a withdraw button on the item page.  However, an
> authentication issue is preventing dspace from displaying this button to
> me.  I have logged in as an administrator and remain authenticated for
> all pages in dspace except the page which displays the abstract, title,
> etc for an item.  When I go to this page it acts as if I'm not
> authenticated as an admin.  Due to this, the withdraw button is not
> displayed.  However, when I go from the un-authenticated state of this
> page back to any other page in dspace I am once again authenticated.
>
> What could cause authentication to break down on just this one page?
>
> Please let me know what information would be helpful to diagnose this
> problem.
>
> Thanks.

Hi,

I think I'm having the same problem as you. Sometimes some items doesn't 
show the edit button (nor export, ...).

After doing some testing I've found the following:

- When it happens (sometimes) the buttons appear after reloading the 
page or going to the full item view and back to the simple one.

- When I'm not authenticated, in the items from one community the 
buttons appear and I'm asked for login and password if I click them, but 
there are no buttons in other communities. Maybe it's not even related, 
but it's curious.

- I still haven't been able to reproduce it with Konqueror. But maybe 
it's only a coincidence as sometimes it's a bit hard to reproduce.

Which versions are you using? I'm using Firefox 3.5.9 from a Fedora 11 
on the client side. The server is a CentOS 5.4 with DSpace 1.5.2.

Cheers,
Àlex

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Looking for XMLUI translations

2011-06-01 Thread Alexandre Magaz Graça
Hello,

I'm looking for the Catalan translation for XMLUI but I can't find it. 
The documentation[1] doesn't point to any place to download them, the 
wiki[2] suggests to check out the full DSpace SVN only to get the 
language packs (!) or to get them from the SourceForge download section, 
but I can only see old JSPUI Messages.properties there.

Please, could someone point me to the right place?

[1] 
http://www.dspace.org/1_7_1Documentation/XMLUI%20Configuration%20and%20Customization.html#XMLUIConfigurationandCustomization-MultilingualSupport
[2] 
https://wiki.duraspace.org/display/DSPACE/I18nSupport#I18nSupport-LanguagepacksnowstoredandmanagedinSVN

Thanks,
Àlex

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Usability of DSpace

2011-07-04 Thread Alexandre Magaz Graça
Hi,

Here, at the University of Lleida, we have an student who is working on 
the usability of DSpace for her Master's dissertation. She has already 
run some usability tests and before continuing, we would like to know if 
there's any interest on it. We would like the DSpace project to take 
advantage of this work, so any advice on this will be greatly appreciated.

By the way, I've seen an item about usability improvements in DSpace 1.8 
release notes [1], but I haven't find anything else about it in the 
wiki. Is there any place where we can check what has already been done?

[1] https://wiki.duraspace.org/display/DSPACE/DSpace+Release+1.8.0+Notes

Thanks,
Àlex

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Usability of DSpace

2011-07-06 Thread Alexandre Magaz Graça
Hello Michael and Claudia,

Thanks for the interest. As soon as she finishes with the results from 
the usability test, we'll publish it in the DSpace wiki. I'll send a 
mail to the list when it's ready so we can discuss it.

Cheers,
Àlex

Al 05/07/11 09:17, En/na Claudia Jürgen ha escrit:
> Hello Alexandre,
>
> as far as I know there has been no concise effort with regards to
> usability. Single aspects like accessibility has been regarded. So your
> input about it is very welcome.
>
> You can share your work with the DSpace Community by
>
> a) discussinng it on the dspace lists
> b) document it on the DSpace wiki
> https://wiki.duraspace.org/display/DSPACE/Home
> and
> c) register the issues(s) as a tracker in
> https://jira.duraspace.org/browse/DS
>
> Hope that helps
>
> Claudia Jürgen
>
>
>
>
> Am 04.07.2011 14:28, schrieb Alexandre Magaz Graça:
>> Hi,
>>
>> Here, at the University of Lleida, we have an student who is working on
>> the usability of DSpace for her Master's dissertation. She has already
>> run some usability tests and before continuing, we would like to know if
>> there's any interest on it. We would like the DSpace project to take
>> advantage of this work, so any advice on this will be greatly appreciated.
>>
>> By the way, I've seen an item about usability improvements in DSpace 1.8
>> release notes [1], but I haven't find anything else about it in the
>> wiki. Is there any place where we can check what has already been done?
>>
>> [1] https://wiki.duraspace.org/display/DSPACE/DSpace+Release+1.8.0+Notes
>>
>> Thanks,
>> Àlex
>>
>> --
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problems defining a controlled vocabulary

2010-01-04 Thread Alexandre Magaz Graça
Hi,

I'm trying to define a controlled vocabulary for the dc.type field as 
specified in the DRIVER guidelines [1]. To sum up, it defines some types 
like "article" or "masterThesis" all prefixed with the 
"info:eu-repo/semantics/" namespace. So, in a OAI response, it would 
appear like this:

info:eu-repo/semantics/masterThesis

So far, I've written this little xml bellow and modified the 
input-forms.xml to use it.



   
   
   



The problem is when I start a new submission. I can select a type from 
the vocabulary, but it gets inserted with '::' between the root label 
and the children one. For example, if I select "article", it's inserted 
as "info:eu-repo/semantics/::article" instead of 
"info:eu-repo/semantics/article".

If I'm not wrong, from looking at controlledvocabulary.xsd, it forces 
you to define the keywords in a tree with at least a root node and 
various children nodes. Why does it have to be always organised in a tree?

Also, I've not found any way of avoiding the '::' separator o changing 
it without modifying the source code. Why is this separator always used? 
Wouldn't it be better to specify it in the vocabulary XML? Is there any 
way of avoiding it?

Have anyone defined a vocabulary following the DRIVER guidelines or 
solved a similar problem?

I'm trying this with DSpace 1.5.2.

Thanks,
Àlex

[1] http://www.surffoundation.nl/wiki/display/DRIVERguidelines/Type

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Usability of DSpace

2011-11-29 Thread Alexandre Magaz Graça
Al 04/07/11 14:28, En/na Alexandre Magaz Graça ha escrit:
> Hi,
>
> Here, at the University of Lleida, we have an student who is working on
> the usability of DSpace for her Master's dissertation. She has already
> run some usability tests and before continuing, we would like to know if
> there's any interest on it. We would like the DSpace project to take
> advantage of this work, so any advice on this will be greatly appreciated.
>
> By the way, I've seen an item about usability improvements in DSpace 1.8
> release notes [1], but I haven't find anything else about it in the
> wiki. Is there any place where we can check what has already been done?
>
> [1] https://wiki.duraspace.org/display/DSPACE/DSpace+Release+1.8.0+Notes
>
> Thanks,
> Àlex
>

Hi,

Although with some delay we've finally finished it. It's published here:

https://wiki.duraspace.org/display/~alexm/Usability+Test+Report

Hope you find it useful. Please don't hesitate to ask If you have any 
doubt or need to clarify anything.

Cheers,
Àlex

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace memory issue

2012-02-09 Thread Alexandre Magaz Graça
Al 09/02/12 13:37, En/na Gabriel Dina ha escrit:
> Dear all,
>
> We found in our DSpace installation (XMLUI) that JAVA uses a lot of
> memory for just a few items added in DSpace.
>
> Also, from time to time DSpace freeze the tomcat process and we have to
> kill it.
>
> Do you have some suggestions about this issues?
>
> [...]

Hello Gabriel,

We're also having memory problems with DSpace. Although we have 
increased Java heap space up to 1 GB it still ends up running out of memory.

Which DSpace version do you have? Do you see a trace like the one bellow 
in DSpace logs when your Tomcat freezes?

ERROR org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter @ Serious 
Error Occurred Processing Request!
javax.servlet.ServletException: Servlet execution threw an exception
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
 [...]
Caused by: java.lang.OutOfMemoryError: Java heap space
 at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57)
 at java.nio.ByteBuffer.allocate(ByteBuffer.java:329)
 at sun.nio.cs.StreamEncoder.(StreamEncoder.java:194)
 [...]

Cheers,
Àlex

--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI question

2012-04-18 Thread Alexandre Magaz Graça
On dt 17 abr 2012 10:24:19 CEST, Robert Ruiz wrote:
> Hi everyone,
>
> We're using DSpace 1.7.1 with XMLUI.
>
> We're harvesting some collections via OAI-PMH protocol, making weekly
> harvest. Besides, we also have our own content that are not harvest, and
> are loaded by ourselves. In addition, some institutions we collect some
> content to us. So, we're consumers and source at the same time.
>
> My question is, is there any way to serve via OAI-PMH protocol only the
> collections that are loaded by ourselves (not our harvested collections)?
>
> Thanks in advance,
> Robert Ruiz
>

Hi Robert,

I think we are in the same situation ;-)

I don't think there's any way to serve only non-harvested items from 
DSpace. The approach I was taking to solve this problem was to create a 
filter in the OAIExtended Addon. This filter builds a set from the 
items in a certain community, but excluding the ones in harvested 
collections.

In the end it turned out not to be as simple as I thought. Now I'm 
stuck trying to make it work properly.

If you can think of a better way to solve this, please let me know.

Cheers,
Àlex

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI question

2012-04-19 Thread Alexandre Magaz Graça
On dc 18 abr 2012 13:09:00 CEST, helix84 wrote:
> Would this help?
>
> https://wiki.duraspace.org/display/DSPACE/DSpaceOAISets
>
> Regards,
> ~~helix84

Hi helix84,

I already thought of most the options in this page when I started 
looking at the problem. Still not sure of which is worse...

Thanks,
Àlex

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Log file size & and management

2012-04-19 Thread Alexandre Magaz Graça
Al 19/04/12 09:53, En/na Alan Orth ha escrit:
> All,
>
> I'm curious about how people are managing their log files.  In
> particular, I've noticed that dspace.log.* and cocoon.log.* are around
> 200MB apiece, per day.  We zip them at night, but even so, they're
> taking a ridiculous amount of storage space on our VPS.  What are people
> doing with these logs?  Offline archival?
>
> Also, while dspace.log.* are potentially useful if you have to go back
> and rerun legacy statistics, I'm not sure what cocoon logs are useful
> for...?
>
> Adios,
>

Hi Alan,

In our case we set limits in log4j.properties for all log files 
(*.MaxLogs) and raised the log level for Cocoon, which was generating 
huge log files. We also archive the older dspace.log files.

By the way, could someone clarify exactly which files are used for 
statistics and how? I mean, for example, after running daily stat-* 
commands, the logs which have been processed are needed again? And what 
about .dat files?

Cheers,
Àlex

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] handle server init script anybody?

2012-05-09 Thread Alexandre Magaz Graça

On dc 09 mai 2012 14:43:16 CEST, Mark H. Wood wrote:

[...]
If anyone has a good Red Hat script, I'm sure it would be appreciated.



Hi,

The attached script is the one I use for CentOS/Fedora. The path to the 
start-handle-server script is hard-coded though.


Cheers,
Àlex
#!/bin/sh
#
# chkconfig: 345 86 14
# description: Handle server for DSpace.
#
### BEGIN INIT INFO
# Required-Start: httpd
# Short-Description: Handle server.
# Description: Handle server for DSpace.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

start() {
echo -n $"Starting Handle server services: "
su --shell=/bin/bash - tomcat -c \
/usr/local/dspace/bin/start-handle-server 2>&1 > /dev/null && 
success || failure
RETVAL=$?
echo ""
return $RETVAL
}

stop() {
echo "Stopping handle server..."
PID=`/bin/ps ax | grep "net.handle.server.Main" | grep -v 'grep' | awk 
'{print $1}'`
if [ ! -z "$PID" ] ; then
for process in ${PID}
do
/bin/kill $process
echo "Killed process $process"
done && success || failure
fi
echo ""
}

status() {
PID=`/bin/ps ax | grep "net.handle.server.Main" | grep -v 'grep' | awk 
'{print $1}'`
if [ ! -z "$PID" ] ; then
echo "Handle server service is running (PID $PID)."
else
echo "Handle server service is stopped."
fi
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit $?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech