Re: [Dspace-tech] REST Based Integrations with Moodle / LMS / CMS / LTI

2015-05-19 Thread emilio lorenzo

Hi Peter

we have a live integration between Moodle and Dspace,  see 
http://www.arvo.es/en/dspace-products/107-modulo-de-integracion-con-moodle 
The integration was made in 2013 extending an unofficial REST (to allow 
CRUD operations)  and extending an small Moodle module already avaliable 
somewhere  The module allows to deposit learning materials from 
Moodle to Dspace and also for searching-retrieving from dspace.
Of course we had to extend the (Hedtek code?, i must check this) REST 
with some additional endpoints. Later we checked it against the new REST 
interface available in V5, and we did not miss any important 
functionality...


Best regards

Emilio


El 20/05/2015 a las 1:05, Peter Dietz escribió:

Hi All,

I was wondering if anyone is aware of any integrations between DSpace 
and other systems out there. I've heard from various groups wanting to 
integrate their CMS (Wordpress, Joomla, Drupal), or LMS (Canvas, 
Sakai, Moodle, BlackBoard, D2L) with DSpace, to re-use content 
archived in DSpace and publish it in a course, or in a guide, or on 
their website. Or even to search their DSpace from their site. I've 
seen various plugins or modules for various platforms, but I'm not 
aware if current/official DSpace is off-the-shelf compatible with 
other systems. While the "unofficial" REST API's for DSpace have been 
used for integrations past, present, and future they haven't been 
included in the official release of DSpace, posing an additional 
hurdle to a campus that has DSpace + some other system.


I'd be curious if anyone has first hand experience, or is aware of a 
list of missing endpoints for the current API (workflow, users, etc) 
that is limiting their ability to successfully integrate.


For Reference, the current DSpace REST API docs are located at:
https://wiki.duraspace.org/display/DSDOC5x/REST+API


Peter Dietz
Longsight
www.longsight.com 
pe...@longsight.com 
p: 740-599-5005 x809


--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


___
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


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] REST Based Integrations with Moodle / LMS / CMS / LTI

2015-05-19 Thread Peter Dietz
Hi All,

I was wondering if anyone is aware of any integrations between DSpace and
other systems out there. I've heard from various groups wanting to
integrate their CMS (Wordpress, Joomla, Drupal), or LMS (Canvas, Sakai,
Moodle, BlackBoard, D2L) with DSpace, to re-use content archived in DSpace
and publish it in a course, or in a guide, or on their website. Or even to
search their DSpace from their site. I've seen various plugins or modules
for various platforms, but I'm not aware if current/official DSpace is
off-the-shelf compatible with other systems. While the "unofficial" REST
API's for DSpace have been used for integrations past, present, and future
they haven't been included in the official release of DSpace, posing an
additional hurdle to a campus that has DSpace + some other system.

I'd be curious if anyone has first hand experience, or is aware of a list
of missing endpoints for the current API (workflow, users, etc) that is
limiting their ability to successfully integrate.

For Reference, the current DSpace REST API docs are located at:
https://wiki.duraspace.org/display/DSDOC5x/REST+API


Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Sobre instalación de Dspace 5.1 en W7

2015-05-19 Thread Yelena Islen San Juan
Buenas tardes:

Estoy instalando la versión 5.1 de dspace para Windows, siempre lo había 
instalado en Linux, por lo que no estoy familiarizada en Windows. Al final de 
la instalación me sale lo siguiente, pero no se crean las tablas en la base de 
datos y en el directorio C://dspace no se crean las carpetas correspondientes.  
 Espero atentamente su respuesta.

Saludos

Microsoft Windows [Versión 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\yelena.NTCEDISAC>cd C:\dspace-5.1-release\dspace\target\dspace-installe
r

C:\dspace-5.1-release\dspace\target\dspace-installer>ant fresh_install
Buildfile: C:\dspace-5.1-release\dspace\target\dspace-installer\build.xml

init_installation:

init_configs:
 [copy] Copying 1 file to C:\dspace-5.1-release\dspace\target\dspace-install
er\dspace\config

test_database:
 [java] 2015-05-19 16:29:56,484 INFO  org.dspace.core.ConfigurationManager @
Loading system provided config property (-Ddspace.configuration): config/dspace
.cfg
 [java] 2015-05-19 16:29:56,487 INFO  org.dspace.core.ConfigurationManager @
Using default log4j provided log configuration.  If unintended, check your dspa
ce.cfg for (log.init.config)
 [java] 2015-05-19 16:29:56,632 INFO  org.dspace.storage.rdbms.DatabaseUtils
@ Loading Flyway DB migrations from: filesystem:C:dspace/etc/postgres, classpat
h:org.dspace.storage.rdbms.sqlmigration.postgres, classpath:org.dspace.storage.r
dbms.migration
 [java]
 [java] Attempting to connect to database using these configurations:
 [java]  - URL: = jdbc:postgresql://localhost:5432/dspace
 [java]  - Driver: org.postgresql.Driver
 [java]  - Username: postgres
 [java]  - Password: [hidden]
 [java]  - Schema:
 [java]
 [java] Testing connection...
 [java] Connected successfully!
 [java]

install_code:
 [copy] Copying 7 files to C:\dspace-5.1-release\dspace\target\dspace-instal
ler\dspace\bin
 [copy] Copying 154 files to C:\dspace-5.1-release\dspace\target\dspace-inst
aller\dspace\lib
 [copy] Copying 5 files to C:\dspace-5.1-release\dspace\target\dspace-instal
ler\dspace\etc
 [echo]
 [echo] 

 [echo]  The DSpace code has been installed.
 [echo] 

 [echo]

fresh_install:

copy_webapps:
 [copy] Copying 2681 files to C:\dspace-5.1-release\dspace\target\dspace-ins
taller\dspace\webapps
 [copy] Copying 10 files to C:\dspace-5.1-release\dspace\target\dspace-insta
ller\dspace\webapps

build_webapps_wars:

check_geolite:

init_geolite:
 [echo]
 [echo] 

 [echo]  The DSpace code has been installed.
 [echo]
 [echo]  To complete installation, you should do the following:
 [echo]
 [echo]  * Setup your Web servlet container (e.g. Tomcat) to look for your
 [echo]DSpace web applications in: C:dspace/webapps/
 [echo]
 [echo]OR, copy any web applications from C:dspace/webapps/ to
 [echo]the appropriate place for your servlet container.
 [echo](e.g. '$CATALINA_HOME/webapps' for Tomcat)
 [echo]
 [echo]  * Start up your servlet container (e.g. Tomcat). DSpace now will
 [echo]initialize the database on the first startup.
 [echo]
 [echo]  * Make an initial administrator account (an e-person) in DSpace:
 [echo]
 [echo]C:dspace/bin/dspace create-administrator
 [echo]
 [echo]  You should then be able to access your DSpace's 'home page':
 [echo]
 [echo]http://127.0.0.1:8081/xmlui
 [echo]
 [echo] 

 [echo]

BUILD SUCCESSFUL
Total time: 42 seconds

C:\dspace-5.1-release\dspace\target\dspace-installer>

Ing. Yelena Islen San Juan
Esp. Ciencias informáticas
UEB División de proyectos Multimedia
CITMATEL

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Sobre dspace

2015-05-19 Thread Hilton Gibson
Hi

Perhaps this will help:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Mobile_Theme

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
Stellenbosch University Library
http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html


2015-05-19 20:59 GMT+02:00 Yelena Islen San Juan :

>
>
> Buenas tardes:
>
>
>
> Necesito saber cómo hacer que el dspace una vez instalado pueda ser
> portable. Espero atentamente su respuesta. Gracias
>
>
>
> Saludos cordiales
>
>
>
> Ing. Yelena Islen San Juan
>
> Esp. Ciencias informáticas
>
> UEB División de proyectos Multimedia
>
> CITMATEL
>
>
>
>
> --
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> ___
> 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
>
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Embargo Question

2015-05-19 Thread Hilton Gibson
Hi Matt

Perhaps this will help:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Item_and_Collection_Permissions

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
Stellenbosch University Library
http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html


On 19 May 2015 at 22:17, Matt Sherman  wrote:

> Hi all,
>
> I worked with my first embargoed item today, and I think when it was
> embargoed at the metadata record level as well as the bitstream level.
> I really only need it embargoed at the bitstream level not to violate
> the publisher's copyright terms.  Does anyone know if it is possible
> to edit the embargo settings in the administrator UI?  Or does this
> need to be done in the command line?  I have not seen anything and a
> Google search is not giving me helpful results so I thought I would
> ask the group.  Thanks for any insight.
>
> Matt Sherman
>
>
> --
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> ___
> 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
>
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Embargo Question

2015-05-19 Thread Matt Sherman
Hi all,

I worked with my first embargoed item today, and I think when it was
embargoed at the metadata record level as well as the bitstream level.
I really only need it embargoed at the bitstream level not to violate
the publisher's copyright terms.  Does anyone know if it is possible
to edit the embargo settings in the administrator UI?  Or does this
need to be done in the command line?  I have not seen anything and a
Google search is not giving me helpful results so I thought I would
ask the group.  Thanks for any insight.

Matt Sherman

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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] error running oai import

2015-05-19 Thread Jose Blanco
Not sure what is causing this:

[Fatal Error] :22:134: The prefix "xsi" for attribute "xsi:schemaLocation"
associated with an element type "atom:entry" is not bound.
SystemId Unknown; Line #22; Column #134; org.xml.sax.SAXParseException;
lineNumber: 22; columnNumber: 134; The prefix "xsi" for attribute
"xsi:schemaLocation" associated with an element type "atom:entry" is not
bound.
OAI 2.0 manager action started
Clearing index
Index cleared
Using full import.
Full import
100 items imported so far...
200 items imported so far...
300 items imported so far...
400 items imported so far...
500 items imported so far...
600 items imported so far...
700 items imported so far...
800 items imported so far...
900 items imported so far...
1000 items imported so far...
1100 items imported so far...
1200 items imported so far...
1300 items imported so far...
1400 items imported so far...
java.lang.IllegalStateException: Can't overwrite cause with
java.io.IOException: Invalid white space character (0x1) in text to output
at java.lang.Throwable.initCause(Throwable.java:456)
at com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70)
at com.ctc.wstx.exc.WstxException.(WstxException.java:46)
at com.ctc.wstx.exc.WstxIOException.(WstxIOException.java:16)
at
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:505)
at
com.lyncode.xoai.dataprovider.xml.xoai.Element$Field.write(Element.java:204)
at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
at
com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:220)
at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
at
com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
at
com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
at
com.lyncode.xoai.dataprovider.xml.xoai.Element.write(Element.java:223)
at com.lyncode.xoai.util.XmlIOUtils.writeElement(XmlIOUtils.java:20)
at
com.lyncode.xoai.dataprovider.xml.xoai.Metadata.write(Metadata.java:95)
at org.dspace.xoai.app.XOAI.index(XOAI.java:276)
at org.dspace.xoai.app.XOAI.index(XOAI.java:211)
at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198)
at org.dspace.xoai.app.XOAI.index(XOAI.java:131)
at org.dspace.xoai.app.XOAI.main(XOAI.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid white space character
(0x1) in text to output
... 23 more
Caused by: java.io.IOException: Invalid white space character (0x1) in text
to output
at com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:525)
at
com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:501)
at
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:503)
... 22 more
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Sobre dspace

2015-05-19 Thread Yelena Islen San Juan

Buenas tardes:

Necesito saber cómo hacer que el dspace una vez instalado pueda ser portable. 
Espero atentamente su respuesta. Gracias

Saludos cordiales

Ing. Yelena Islen San Juan
Esp. Ciencias informáticas
UEB División de proyectos Multimedia
CITMATEL

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Generate publicly accessible thumbnails of restricted content

2015-05-19 Thread Hilton Gibson
Hi Alan

Thanks. I have deleted the option on the 4.X page.

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
Stellenbosch University Library
http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html


On 19 May 2015 at 15:49, Alan Orth  wrote:

> Hilton,
>
> Your 4.x docs seem to suggest publicPermission is available in DSpace 4.x,
> but it's not. I was very happy when I read your docs, until I grepped the
> 4.3 source tree for `publicPermission` and got no hits. :)
>
> Seems it's a DSpace 5.0+ feature:
> https://wiki.duraspace.org/display/DSDOC5x/Mediafilters+for+Transforming+DSpace+Content#MediafiltersforTransformingDSpaceContent-Configurationparameters
>
> Regards,
>
> Alan
>
> On Wed, Apr 1, 2015 at 4:57 PM Peter Dietz  wrote:
>
>> Hi Hilton,
>>
>> Yours looks correct. The publicPermission requires the condensed name, in
>> Java parlance that would be the Class.getSimpleName(), for each media
>> filter, thus the name of the class, or name of the java file for each media
>> filter. I'll call it condensed without spaces form.
>> filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter,
>> XPDF2Thumbnail, BrandedPreviewJPEGFilter
>>
>> Once you upgrade to 5.x, and use the ImageMagick media filter, then
>> you'll be able to drop the extra build pice of -Pxpdf-mediafilter-support,
>> but I'm guessing you need that now, while your using xpdf.
>>
>> 
>> Peter Dietz
>> Longsight
>> www.longsight.com
>> pe...@longsight.com
>> p: 740-599-5005 x809
>>
>> On Wed, Apr 1, 2015 at 9:44 AM, Hilton Gibson 
>> wrote:
>>
>>> Hi All
>>>
>>> Is this correctly documented then:
>>> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F
>>> and
>>> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions
>>>
>>> Cheers
>>>
>>> hg
>>>
>>> *Hilton Gibson*
>>> Ubuntu Linux Systems Administrator
>>> JS Gericke Library
>>> Room 1025C
>>> Stellenbosch University
>>> Private Bag X5036
>>> Stellenbosch
>>> 7599
>>> South Africa
>>>
>>> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>>>
>>> On 1 April 2015 at 15:36, Peter Dietz  wrote:
>>>
 The permissions are set by MediaFilterManager
 ,
 so the individual media filters don't have to account for this permission
 feature.

 I did figure out what the issue was though. You have to use the
 condensed name of the media filter task (without spaces,
 ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF
 Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission

 
 Peter Dietz
 Longsight
 www.longsight.com
 pe...@longsight.com
 p: 740-599-5005 x809

 On Tue, Mar 31, 2015 at 10:29 PM, euler  wrote:

> Hi Terry
>
>
> > Looking at the following code in MediaFilterManager, there may be a
> > mechanism to override the default permission behavior.
> >
> >
> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789
>
> Please, can you help me how to override the default permission
> behavior? I
> don't want the thumbnails to look like this for the anonymous viewer:
> 
>
> Thanks in advance,
> euler
>
>
>
> --
> View this message in context:
> http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> things parallel software development, from weekly thought leadership
> blogs to
> news, videos, case studies, tutorials and more. Take a look and join
> the
> conversation now. http://goparallel.sourceforge.net/
> ___
> 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
>



 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub
 for all
 things parallel software development, from weekly thought leadership
 blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversa

Re: [Dspace-tech] Generate publicly accessible thumbnails of restricted content

2015-05-19 Thread Alan Orth
Hilton,

Your 4.x docs seem to suggest publicPermission is available in DSpace 4.x,
but it's not. I was very happy when I read your docs, until I grepped the
4.3 source tree for `publicPermission` and got no hits. :)

Seems it's a DSpace 5.0+ feature:
https://wiki.duraspace.org/display/DSDOC5x/Mediafilters+for+Transforming+DSpace+Content#MediafiltersforTransformingDSpaceContent-Configurationparameters

Regards,

Alan

On Wed, Apr 1, 2015 at 4:57 PM Peter Dietz  wrote:

> Hi Hilton,
>
> Yours looks correct. The publicPermission requires the condensed name, in
> Java parlance that would be the Class.getSimpleName(), for each media
> filter, thus the name of the class, or name of the java file for each media
> filter. I'll call it condensed without spaces form.
> filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter,
> XPDF2Thumbnail, BrandedPreviewJPEGFilter
>
> Once you upgrade to 5.x, and use the ImageMagick media filter, then you'll
> be able to drop the extra build pice of -Pxpdf-mediafilter-support, but I'm
> guessing you need that now, while your using xpdf.
>
> 
> Peter Dietz
> Longsight
> www.longsight.com
> pe...@longsight.com
> p: 740-599-5005 x809
>
> On Wed, Apr 1, 2015 at 9:44 AM, Hilton Gibson 
> wrote:
>
>> Hi All
>>
>> Is this correctly documented then:
>> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F
>> and
>> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions
>>
>> Cheers
>>
>> hg
>>
>> *Hilton Gibson*
>> Ubuntu Linux Systems Administrator
>> JS Gericke Library
>> Room 1025C
>> Stellenbosch University
>> Private Bag X5036
>> Stellenbosch
>> 7599
>> South Africa
>>
>> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>>
>> On 1 April 2015 at 15:36, Peter Dietz  wrote:
>>
>>> The permissions are set by MediaFilterManager
>>> ,
>>> so the individual media filters don't have to account for this permission
>>> feature.
>>>
>>> I did figure out what the issue was though. You have to use the
>>> condensed name of the media filter task (without spaces,
>>> ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF
>>> Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission
>>>
>>> 
>>> Peter Dietz
>>> Longsight
>>> www.longsight.com
>>> pe...@longsight.com
>>> p: 740-599-5005 x809
>>>
>>> On Tue, Mar 31, 2015 at 10:29 PM, euler  wrote:
>>>
 Hi Terry


 > Looking at the following code in MediaFilterManager, there may be a
 > mechanism to override the default permission behavior.
 >
 >
 https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789

 Please, can you help me how to override the default permission
 behavior? I
 don't want the thumbnails to look like this for the anonymous viewer:
 

 Thanks in advance,
 euler



 --
 View this message in context:
 http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html
 Sent from the DSpace - Tech mailing list archive at Nabble.com.


 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub
 for all
 things parallel software development, from weekly thought leadership
 blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 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

>>>
>>>
>>>
>>> --
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> ___
>>> 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] Database Migration from Dspace 1.4.1 /postgresql-8.2.3 to Dspace 5.1/Oracle 11gR2.

2015-05-19 Thread Tim Donohue
Hello Vineet,

You may be better off asking on Oracle mailing lists how to migrate from 
PostgreSQL to Oracle, as that seems like the hardest part of this 
migration. I'm unaware of any tools that make this easy, but there seems 
to be some discussions about migrating from PostgreSQL in the Oracle 
Community Directory:

https://community.oracle.com/search.jspa?q=migrate+from+postgresql&customTheme=

Unfortunately, DSpace has no easy way to help you with such a database 
migration. But, if you were willing to upgrade to DSpace 5.1 + 
PostgreSQL FIRST, then you could use DSpace's export tools to simply 
export all its content, and then re-import it into a new copy of DSpace 
5.1 + Oracle.

That process of exporting content from DSpace 5.1 + PostgreSQL & 
reimporting into DSpace 5.1 + Oracle would look like this:
1) First upgrade from DSpace 1.4.1 to DSpace 5.1 (keeping the database 
on PostgreSQL during this upgrade)
2) Export all the content as AIPs from DSpace 5.1 + PostgreSQL. See this 
command: 
https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore#AIPBackupandRestore-ExportingEntireSite
3) Install a fresh (empty) version of DSpace 5.1 + Oracle.
4) Finally, *Import* all the AIPs (which were exported in step #2) into 
the DSpace 5.1 + Oracle instance. See this command: 
https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore#AIPBackupandRestore-RestoringEntireSite

Good luck,

Tim

On 5/19/2015 1:10 AM, Vineet Kumar Rakesh wrote:
> Dear Sir,
>
> Old Dspace Installation Details (Running Live):-
>
> OS - Red Hat Enterprise Linux ES release 3
> Dspace -version 1.4.1
> database -  postgresql-8.2.3
>
>   We changed the physical server due to storage etc. constraint thatwhy
> we installed new server with following details
>
> New Dspace Installation details:
>
> OS- RHEL 6.5
> Dspace 5.1 (xmlui)
> Database- Oracle 11gR2.
>
> I want to migrate the data from old dspace postgresql-8.2.3 to new
> dspace oracle 11g R2 database(central database). Please help to do this
> and also mention all simple steps. Thank you in advance
>
> with best regards,
>
> विनीत कुमार राकेश / vineet kumar rakesh
> तकनीकी अधिकारी / Technical Officer
> परिवर्ती उर्जा साइक्लोट्रॉन केंद्र / Variable Energy Cyclotron Centre
> परमाणु उर्जा विभाग / Department of Atomic Energy
> भारत सरकार / Government of India
> 1/ए एफ विधान नगर / 1/AF Bidhan Nagar
> कोलकाता - 700064 , भारत / Kolkata - 700064, India
>
>
> टेल./ Tel: +91 33 2318 2206, 9330984666
> फैक्स / Fax: +91 33 2334 6871
> ईमेल / Email : vin...@vecc.gov.in
>
>
> --
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
>
> ___
> 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
>

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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] Saving a submission throws an exception

2015-05-19 Thread Jozef Misutka
I will try to answer our own question with details and a little bit of
guessing.


Our repository is based on DSpace 5.2-SNAPSHOT, we are using xmlui and
users submit items using submission workflow.
We are notified by mail about cocoon exceptions because we are using
exception generator similar to the following

public class EmailExceptionGenerator extends ExceptionGenerator {
   private static final Logger.own_logger log = (Logger.own_logger)
Logger.getLogger(EmailExceptionGenerator.class);

   @Override
   public void generate() throws IOException, SAXException,
ProcessingException {
  super.generate();
  if(this.parameters.getParameterAsBoolean("send_email", false)){
 Throwable t = ObjectModelHelper.getThrowable(objectModel);
 log.send_error(t);
  }
   }
}

As Ondrej pointed out, the exception in the original email can be
reproduced on a clean DSpace 5.2 by
1) starting a submission;
2) click on Save & Exit;
3) click on Save it, I'll work on it later;
4) checking cocoon logs.

Afterwards, cocoon log will contain an exception similar to

cocoon.handled  - Could not read
resource 
cocoon://DRI/3/handle/123456789/214/submit/8479132f42322b784f445968356a223307411f37.continue
at  -
resource://aspects/Statistics/sitemap.xmap:359:36
... cca 180 lines of stack trace ...
Caused by: java.lang.NullPointerException
   at
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292)
... cca 170 lines of stack trace  (happy debugging) ...


Simply said, DSpace uses cocoon and cocoon uses sitemaps and aspects
meaning you start in the main sitemap and traverse aspects that somehow
match e.g. by uri.
In the process, DSpace java or javascript can be called. DSpace uses DRI
schema document [1] and that document get be updated using the
functionality defined by aspects.

Looking at our exception, the prefix DRI/3 means that the 3-rd aspect
caused a problem. The exception is misleading in this case because the
culprit is not mentioned there (DRI/3 is *not* the Statistics aspect).

Turning cocoon debugging on [2] gives more details.

2015-05-19 08:51:56,705 DEBUG
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode  - Matcher
'AspectMatcher' matched pattern 'null' at 
-
file:///lindat-dspace/dspace/modules/xmlui/target/xmlui-5.2-SNAPSHOT/aspects/aspects.xmap:78:36
2015-05-19 08:51:56,705 DEBUG
org.apache.cocoon.components.treeprocessor.InvokeContext  -
Current Sitemap Parameters:
LEVEL 1
PARAM: 'aspect' VALUE: 'resource://aspects/Submission/'
PARAM: 'aspectID' VALUE: '3'
PARAM: 'prefix' VALUE: '3/'
PARAM: 'aspectName' VALUE: 'Submission and Workflow'


After some more debugging [3], we find this in the submission.js:
submitStepSaveOrRemove called while executing the aspect

 if (cocoon.request.get("submit_save")) { // Already saved... var
contextPath = cocoon.request.getContextPath(); cocoon.redirectTo(contextPath
+"/submissions",true); cocoon.exit(); }

The redirectTo sends redirection to the browser, which means you will
*never* see any exception after this point in your UI.
Cocoon exit is calling FOM_Cocoon.suicide().
Later, SitemapSource does not have this.pipelineDescription.
processingPipeline initialised properly from which comes the
NullPointerException.
With some amount of guessing [4],  the suicide method is the reason for all
of this (in general, suicide is not a solution).
There are more exceptions generated afterwards.

You can also try to Cancel Creating a collection which has the redirectTo +
exit and it will produce the same error. Note that although there are
several redirectTo only a few can be really reached (use [3]).

function startCreateCollection()
{
   var communityID = cocoon.request.get("communityID");

   assertAuthorized(Constants.COMMUNITY,communityID,Constants.ADD);

   doCreateCollection(communityID);

   // Root level community, cancel out to the global community list.
   cocoon.redirectTo(cocoon.request.getContextPath()+"/community-list",true);
   getDSContext().complete();
   cocoon.exit();
}

If I had time, I would experiment with a setup where the last aspect is the
one calling cocoon.exit.

Best,
Jozef




[1]  You can retrieve them appending ?XML to the url or using url
../DRI/... (they are not the same though)
[2] See https://jira.duraspace.org/browse/DS-239
[3] There are more ways how to debug interpreted javascript in cocoon but
one simple way is to add breakpoints to the underlying java e.g.,

cocoon.redirectTo(contextPath+"/submissions",true);

can be found in cocoon-flowscript-impl::FOM_Cocoon.jsFunction_redirectTo which
can be found in External Libraries (depends on your IDE).
[4] I am not a cocoon expert (luckily) and I have neither the time nor the
will to intimately debug a dead project so some guessing is involved.


On 23 March 2015 at 20:50, Ondřej Košarko  wrote:

> Hi,
> Thanks for the tip, but I don't seem to be running out of space on any of
> my systems. I actually tried spinning up vagrant-dspace [1] and 

Re: [Dspace-tech] eperson and groups

2015-05-19 Thread helix84
I don't think it's doable with the currently available CLI commands in
DSpace:
https://wiki.duraspace.org/display/DSDOC5x/Managing+User+Accounts

You could, however, use a CLI SQL client (psql) to manipulate membership in
the epersongroup2eperson table. You can find out the user and group IDs
from the eperson and epersongroup table, respectively.

Alternatively, assuming you're using password authentication and want to
put all users into a single group, you can use the login.specialgroup
option in [dspace]/config/modules/authentication-password.cfg. Please note
that special group membership is dynamic - it doesn't appear in the
epersongroup2eperson table, but you can check effective membership in the
profile of a logged in user.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] eperson and groups

2015-05-19 Thread Vegard Korvald
Hello,

I'm new to DSpace and would be very greatful if one of you could help me with 
an issue.

Is there a way to add an eperson into groups by using the command line tool or 
in any other way script it so that we dont have to do it manually? I know 
there's a solution with LDAP+AD, but unfortunately we can't use this method 
because we can't authenticate with LDAP.


--
Vegard

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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] item view gives internal system error

2015-05-19 Thread Kamal
Dear All,
we are getting an error when we click any search result to view item
details.
we are using dspace 1.8 with jspui.
i have tested the xmlui and there it shows the item details etc on clicking
the search result, and there are no problems at that side.

can anybody give an idea. what might be the reason and how we can resolve
it.
thanking for your support in advance.
Best Regards.
-- 

*Asif AliLecturer Library Affairs,*




*Electronic Resource Manager,Deanship of Library AffairsUniversity of
DammamDammam, KSA*
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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