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

2015-03-31 Thread euler
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


Re: [Dspace-tech] Javascript disabled on DSpace?

2015-03-31 Thread Andrea Schweer

  
  
Hi Susan,

(I'll add dspace-tech back in -- perhaps others with the same
problem can benefit from the discussion)

With the same message coming up in Chrome, to me it sounds like
you've probably run into one of the Mirage 2 build problems. Have a
look at the official DSpace documentation for a few hints:
https://wiki.duraspace.org/display/DSDOC5x/Mirage+2+Configuration+and+Customization#Mirage2ConfigurationandCustomization-ThebuildprocessandenablingMirage2

cheers,
Andrea

On 01/04/15 03:53, Borda, Susan wrote:


  
  Hi Andrea-
  Thanks for the info, I knew it was a long shot that that the
setting was in Dspace. I get the same message in Chrome. I will
re-run Maven to see if I can spot the error.
  
  
  Thanks again,
  susan
  
  
  
From:  Andrea Schweer 
  Date:  Monday, March
  30, 2015 at 6:02 PM
  To:  Susan Borda ,
  "dspace-tech@lists.sourceforge.net"
  
  Subject:  Re:
  [Dspace-tech] _javascript_ disabled on DSpace?




  
Hi Susan,

On 31/03/15 12:31, Borda, Susan
  wrote:


  I just installed Space 5.1 with Mirage 2 on a Centos 6.6
  VirtualBox. When I go to my new DSpace page
  (localhost:8080/xmlui) I’m getting a message that says
  “_javascript_ has been disabled for your browser. Some
  features of this site may not work without it.”
  
  
  _javascript_ is working on other sites just not this
one.
  
  
  Where do I enable _javascript_ for Dspace, is it in one
of the Mirage 2 or xmlui files?


This is not a DSpace setting, it's something in your
browser. It's a little bit odd for this to happen in what is
presumably pretty much a fresh Centos install. Can you try
with a different browser? Your VM has access to the
Internet, yes?

Did the maven step of the build process complain about
anything? Mirage 2 will sometimes tell you that the build
was successful even when it wasn't, so you'll need to keep
an eye on the output while maven is running.

If none of these things help, could you try to switch on the
developer tools for your browser, then force-reload the page
to see whether you get any error messages to pinpoint the
problem? In Firefox, you'll want to open the Web Console
(try Ctrl-Shift-K). In Chrome, it appears to be called
_javascript_ console (try Ctrl-Shift-J).

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
+64-7-837 9120
  


--
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] Generate publicly accessible thumbnails of restricted content

2015-03-31 Thread Terry Brady
I took a look at the ImageMagick media filter code and there is no
manipulation of bitstream permissions in the code.

The generated thumbnail files are returned.  I presume those bitstream
permissions are set by default based on a collection policy.

I had hoped to recommend that you use the XMLUI "item wildcard policy admin
tool" to clean up the permissions, but that tool does not seem to
differentiate bitstreams by bundle.

In our instance, we want the thumbnail permissions to match the original
permissions.

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

Terry

On Mon, Mar 30, 2015 at 8:08 PM, euler  wrote:

> Hi Peter,
>
> > Is there an escape character at the end of ImageMagick Image Thumbnail?
> > i.e. ", \"
> >
> > Did the PDF's get thumbnails generated by Image Magick?
>
> There is no escape character at the end of ImageMagick PDF Thumnail. I'm
> sure that the PDF's thumbnail was generated by Image Magick because I
> deleted first all the generated thumbnails. After running the media filter,
> the thumbnail's permission is the same with its parent bitstream even
> though
> I have this setting in my dspace.cfg:
> filter.org.dspace.app.mediafilter.publicPermission = ImageMagick PDF
> Thumbnail
>
> Did I missed something?
>
> Thanks in advance,
> euler
>
>
>
>
>
>
> --
> View this message in context:
> http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677247.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
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
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] Very Slow Download

2015-03-31 Thread Peter Dietz
Hi Sean,

DSpace blocks until it can store the usage event (i.e. download,
collection-page view) before completing the action, i.e. serving a file.
So, if you are using SOLR or Elastic Search, the first time after a tomcat
restart, it has to wait until that service is ready. In your case, this is
likely a new-for-DSpace-5 feature, of Google Analytics Statistics, as
opposed to normal Google-Analytics-Tracker-Code that was asynchronous ajax
in XMLUI/JSPUI html.

I would check config/xmlui.xconf, having this commented out, should be your
best way to avoid this slowdown (but GA won't track that statistics).
https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L103



Lastly, ideally, DSpace shouldn't block the action, to store some metrics.
Maybe the developers can revisit this, to ensure some background thread
performs this. When I completely turn off statistics, DSpace is a much
faster work horse, with too many turned on, or if they're misconfigured,
then slow downs are more normal. Also, another thing to think about is log
analysis. In your case, these Network unreachable / network timeouts could
be noticed in the logs, for you to pay attention to. i.e. having a smart
log analysis tool detecting trends.




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

On Tue, Mar 31, 2015 at 5:28 AM, Sean Carte  wrote:

> Downloads from two of my DSpace 5.1 repositories are extremely slow. Not
> the download itself, but the period between clicking on a link and the
> download starting.
>
> I'm seeing this in the logs on both servers, which looks like it might be
> related:
>
> 2015-03-31 11:03:14,332 INFO  org.apache.http.impl.execchain.RetryExec @
> I/O exception (java.net.SocketException) caught when processing request to
> {s}->https://www.google-analytics.com:443: Network is unreachable
> 2015-03-31 11:03:14,332 INFO  org.apache.http.impl.execchain.RetryExec @
> Retrying request to {s}->https://www.google-analytics.com:443
>
> Our international bandwidth is congested, so that could account for the
> problem, but what has me confused is that only one of the servers is using
> Google analytics. The other has the Google analytics lines in dspace.cfg
> commented out (XMLUI and JSPUI), yet it shows the same problem.
>
> Have I overlooked a configuration somewhere for the server not using
> Google analytics, and is this likely to be the cause of the problem?
>
> DSpace 5.1
> Tomcat 7
> PostgreSQL 9.3.6
> OpenJDK 7
> Ubuntu 14.04
>
> Sean
> --
>
>
>
> --
> 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

[Dspace-tech] Problem in Authority Control in XMLUI interface

2015-03-31 Thread royopa
Hi

I am using the Authority Control in My DSpace instance in field
dc.contributor.author, using the LCNameAuthority.

When I click in button "Lookup & Add" returns the error "Server indicates
error response". How I do to debug this error? I saw in dspace.log but not
found related error.

Thanks​

-- 
Rodrigo Prado de Jesus
http://about.me/royopa
roy...@gmail.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

[Dspace-tech] Very Slow Download

2015-03-31 Thread Sean Carte
Downloads from two of my DSpace 5.1 repositories are extremely slow. Not
the download itself, but the period between clicking on a link and the
download starting.

I'm seeing this in the logs on both servers, which looks like it might be
related:

2015-03-31 11:03:14,332 INFO  org.apache.http.impl.execchain.RetryExec @
I/O exception (java.net.SocketException) caught when processing request to
{s}->https://www.google-analytics.com:443: Network is unreachable
2015-03-31 11:03:14,332 INFO  org.apache.http.impl.execchain.RetryExec @
Retrying request to {s}->https://www.google-analytics.com:443

Our international bandwidth is congested, so that could account for the
problem, but what has me confused is that only one of the servers is using
Google analytics. The other has the Google analytics lines in dspace.cfg
commented out (XMLUI and JSPUI), yet it shows the same problem.

Have I overlooked a configuration somewhere for the server not using Google
analytics, and is this likely to be the cause of the problem?

DSpace 5.1
Tomcat 7
PostgreSQL 9.3.6
OpenJDK 7
Ubuntu 14.04

Sean
--
--
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

[Dspace-tech] DSpace search appears to fail out of the box on Windows 2012 Server

2015-03-31 Thread DJDave
I have installed DSpace 5.1 on a Windows 2012 Server but the search facility
fails. When I click on a search of any kind I get this message:
 
Expected mime type application/octet-stream but got text/html. Apache Tomcat/8.0.20 - Error report

HTTP Status 404 - /solr/search/select
type Status reportmessage
/solr/search/selectdescription The requested resource is
not available.
Apache Tomcat/8.0.20


(I’ve removed the 

Re: [Dspace-tech] APIs to alter Reports and Userprofiles

2015-03-31 Thread helix84
Hi Eva,

unfortunately, DSpace currently treats authors as text (although there
is the possibility of authority control). It doesn't currently have
any association between an author (item metadata field or an authority
ID) and an EPerson (DSpace user).

This problem is described here:
https://github.com/DSpace/DSpace/pull/244

Since this seems to be central to what you expect from your system,
you may want to look at other solutions besides DSpace.

If you decide for DSpace nevertheless, here's the Java API:
http://demo.dspace.org/javadocs/5/apidocs/
and the REST API:
https://wiki.duraspace.org/display/DSDOC5x/REST+API

There may be other APIs available for specialized tasks, too.


Regards,
~~helix84

Compulsory reading: DSpace Mailing 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] APIs to alter Reports and Userprofiles

2015-03-31 Thread Hilton Gibson
Hi

Perhaps this will help as a start:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/API

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 31 March 2015 at 10:00, Eva Ulbrich  wrote:

> Dear Dspace Mailinglist,
>
> I was told to address my question in this context rather than mailing
> Dspace directly.
> I have the following questions:
>
> I did not find a profile page per Euser. This would be awesome since a
> person
> should be able to manage and see their own publications to be encouraged to
> use the system. Is it somehow possible for me to access Dspace through APIs
> and add such a thing myself?
>
> Moreover I need more sophisticated reporting. Same question: are APIs
> available for me to add customized reports? Like which Eperson publicated
> in
> which field with which other authors and how many publications with an
> author
> of a certain affiliation were done and such. We need these reports for our
> funding.
>
> Basically: where can I get an overview of available APIs?
>
> A quick answer to those questions would be awesome.
>
> Thanks!
> Eva
>
> Kind regards,
> Eva Ulbrich
>
> Eva Ulbrich
> Marketing
>
> Know-Center GmbH
> Research Center for Data-Driven Business & Big Data Analytics
> Inffeldgasse 13, 6th floor, 8010 Graz, Austria
> Phone +43 316-873-30852 Fax +43 316-873-1030852
> eulbr...@know-center.at
> www.know-center.at 
>
> KNOW-CENTER NEWS | i-KNOW NEWS<
> http://i-know.tugraz.at/>
>
>
> --
> 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

[Dspace-tech] APIs to alter Reports and Userprofiles

2015-03-31 Thread Eva Ulbrich
Dear Dspace Mailinglist,

I was told to address my question in this context rather than mailing Dspace 
directly.
I have the following questions:

I did not find a profile page per Euser. This would be awesome since a person
should be able to manage and see their own publications to be encouraged to
use the system. Is it somehow possible for me to access Dspace through APIs
and add such a thing myself?

Moreover I need more sophisticated reporting. Same question: are APIs
available for me to add customized reports? Like which Eperson publicated in
which field with which other authors and how many publications with an author
of a certain affiliation were done and such. We need these reports for our
funding.

Basically: where can I get an overview of available APIs?

A quick answer to those questions would be awesome.

Thanks!
Eva

Kind regards,
Eva Ulbrich

Eva Ulbrich
Marketing

Know-Center GmbH
Research Center for Data-Driven Business & Big Data Analytics
Inffeldgasse 13, 6th floor, 8010 Graz, Austria
Phone +43 316-873-30852 Fax +43 316-873-1030852
eulbr...@know-center.at  www.know-center.at 


KNOW-CENTER NEWS | i-KNOW 
NEWS

--
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] Mirage2 included in DSpace Software

2015-03-31 Thread इन्‍दु भूषण Indu Bhushan
Dear Sir,

If internet is accessible in your server then give the proper setting in
your apache-maven/conf/settings.xml eg. Provide proxy detail etc.

I think it will work.

With regards

Indu Bhushan

On Tue, Mar 31, 2015 at 12:31 PM, Lewatle Phaladi <
lewatle.phal...@wits.ac.za> wrote:

>  Hi All,
>
>
>
> When is Mirage2 going to be included with DSpace software the very same
> way like current default Mirage, which DSpace version could we expect to
> come with the theme by default. I am running inside institution network and
> my maven comes with build failure, I am not running on open internet and my
> network admin want to know which source url does mirage 2 use, or port they
> want to know them so they specifically opens those url and ports for maven
> to work and manage to download mirage2 and other required packages.
>
>
>
> Regards,
>
> Lewatle
>
>  This communication is intended for the addressee only. It is confidential. 
> If you have received this communication in error, please notify us 
> immediately and destroy the original message. You may not copy or disseminate 
> this communication without the permission of the University. Only authorised 
> signatories are competent to enter into agreements on behalf of the 
> University and recipients are thus advised that the content of this message 
> may not be legally binding on the University and may contain the personal 
> views and opinions of the author, which are not necessarily the views and 
> opinions of The University of the Witwatersrand, Johannesburg. All agreements 
> between the University and outsiders are subject to South African Law unless 
> the University agrees in writing to the contrary.
>
>
>
> --
> 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

[Dspace-tech] Mirage2 included in DSpace Software

2015-03-31 Thread Lewatle Phaladi
Hi All,

When is Mirage2 going to be included with DSpace software the very same way 
like current default Mirage, which DSpace version could we expect to come with 
the theme by default. I am running inside institution network and my maven 
comes with build failure, I am not running on open internet and my network 
admin want to know which source url does mirage 2 use, or port they want to 
know them so they specifically opens those url and ports for maven to work and 
manage to download mirage2 and other required packages.

Regards,
Lewatle



This communication is 
intended for the addressee only. It is confidential. If you have received this 
communication in error, please notify us immediately and destroy the original 
message. You may not copy or disseminate this communication without the 
permission of the University. Only authorised signatories are competent to 
enter into agreements on behalf of the University and recipients are thus 
advised that the content of this message may not be legally binding on the 
University and may contain the personal views and opinions of the author, which 
are not necessarily the views and opinions of The University of the 
Witwatersrand, Johannesburg. All agreements between the University and 
outsiders are subject to South African Law unless the University agrees in 
writing to the contrary. 

--
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