Re: [Dspace-tech] Deployment of REST API

2015-04-13 Thread Bruno Zanette
Oh.. I forgot to say: To do all this we are using Dspace_5's REST,
because Dspace 4's REST doesn't do much of the things that DSpace 5's
REST does;

2015-04-13 16:36 GMT-03:00 Bruno Zanette brunonzane...@gmail.com:
 Hey Terry,

 Me and my team are developing a VideoCourse plataform, called
 CursosAbertos, for our University (UFPR) totally based on DSpace
 REST.

 The design of the site is very poor because our first concern was to
 make everything work on the background.

 The site is already online, and you may access it via:
 http://cursosabertos.c3sl.ufpr.br/
 (Ps.: It is written on Portuguese (Brazil), because we are from
 Brazil, and we haven't implemented US translation, sorry!!).

 Click on Setor de Ciências Exatas to access the disciplines (all the
 other sectors are empty).
 Under disciplines you will find the Classes (Aulas).

 You can access the code here:
 https://gitlab.c3sl.ufpr.br/cursosabertos/cursosabertos
 And the RubyGem that we created to talk to DSpace REST, here:
 https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-client/
 And the dspace used, here: http://dscursosabertos.c3sl.ufpr.br:8080/xmlui/

 There are some things that still need some work to work properly, like
 Access Control. That's why you will find Create buttons on the page
 even if you may not create stuff.
 (Ps.: You may click it, but without a Dspace token account you won't
 be able to post it).

 Everything is working fine so far. We implemented an Item's
 creation/edit page, navigation thorough Comm/Coll/Item, and every
 single data displayed on the site comes from REST (text data).
 The only catch is the video itself, that we had to make a copy on
 other server to be able to stream it properly.

 The next step is to make a RubyGem to interact with SOLR to be able to
 do searches, and improve page's style.

 2015-04-13 9:38 GMT-03:00 Mark H. Wood mw...@iupui.edu:
 On Fri, Apr 10, 2015 at 02:22:54PM -0700, Terry Brady wrote:
 We are running DSpace 4, and we are beginning to take advantage of the REST
 API.

 Before we make the REST service available on our production instance, I am
 curious to hear how other institutions have configured access to the API.
 Have you deployed the API with access to any client, or do you restrict
 access to specific hosts/clients?

 Here we're currently using a RemoteAddrValve to restrict it to
 internal use.  That's just me being conservative:  I had one use for
 it and opened up access only to the hosts which make that one use.

 --
 Mark H. Wood
 Lead Technology Analyst

 University Library
 Indiana University - Purdue University Indianapolis
 755 W. Michigan Street
 Indianapolis, IN 46202
 317-274-0749
 www.ulib.iupui.edu

 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___
 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



 --
 Bruno Nocera Zanette
 +55 41 9992-2508



-- 
Bruno Nocera Zanette
+55 41 9992-2508

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
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] Search button issue

2015-04-13 Thread Naveen Srinivasan
Hi,

I am getting an empty page when I search using the default search button in
dspace .I can see that action for the button uses below line
  form id=ds-search-form action=/discover method=post

I discovered that if I change action=*xmlui*/discover'  ,I am getting
results .I verified this in the static page.

Does anyone know where I should change ,so that it will permanently change
as action =/xmlui/discover' .Thanks


Regards,
Naveen
Illinois Institute of Technology
Graduate (MCS)
Mob : (312) 774-1687
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
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] Search button issue

2015-04-13 Thread Hilton Gibson
Hi Naveen

Assuming you are using DSpace 4.X, check the folowing
https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace/config/dspace.cfg#L39

Remove the */xmlui* part and rebuild.

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 13 April 2015 at 19:37, Naveen Srinivasan nsrin...@hawk.iit.edu wrote:

 Hi,

 I am getting an empty page when I search using the default search button
 in dspace .I can see that action for the button uses below line
   form id=ds-search-form action=/discover method=post

 I discovered that if I change action=*xmlui*/discover'  ,I am getting
 results .I verified this in the static page.

 Does anyone know where I should change ,so that it will permanently change
 as action =/xmlui/discover' .Thanks


 Regards,
 Naveen
 Illinois Institute of Technology
 Graduate (MCS)
 Mob : (312) 774-1687


 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live
 exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
 event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___
 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

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
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] Deployment of REST API

2015-04-13 Thread Bruno Zanette
Hey Terry,

Me and my team are developing a VideoCourse plataform, called
CursosAbertos, for our University (UFPR) totally based on DSpace
REST.

The design of the site is very poor because our first concern was to
make everything work on the background.

The site is already online, and you may access it via:
http://cursosabertos.c3sl.ufpr.br/
(Ps.: It is written on Portuguese (Brazil), because we are from
Brazil, and we haven't implemented US translation, sorry!!).

Click on Setor de Ciências Exatas to access the disciplines (all the
other sectors are empty).
Under disciplines you will find the Classes (Aulas).

You can access the code here:
https://gitlab.c3sl.ufpr.br/cursosabertos/cursosabertos
And the RubyGem that we created to talk to DSpace REST, here:
https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-client/
And the dspace used, here: http://dscursosabertos.c3sl.ufpr.br:8080/xmlui/

There are some things that still need some work to work properly, like
Access Control. That's why you will find Create buttons on the page
even if you may not create stuff.
(Ps.: You may click it, but without a Dspace token account you won't
be able to post it).

Everything is working fine so far. We implemented an Item's
creation/edit page, navigation thorough Comm/Coll/Item, and every
single data displayed on the site comes from REST (text data).
The only catch is the video itself, that we had to make a copy on
other server to be able to stream it properly.

The next step is to make a RubyGem to interact with SOLR to be able to
do searches, and improve page's style.

2015-04-13 9:38 GMT-03:00 Mark H. Wood mw...@iupui.edu:
 On Fri, Apr 10, 2015 at 02:22:54PM -0700, Terry Brady wrote:
 We are running DSpace 4, and we are beginning to take advantage of the REST
 API.

 Before we make the REST service available on our production instance, I am
 curious to hear how other institutions have configured access to the API.
 Have you deployed the API with access to any client, or do you restrict
 access to specific hosts/clients?

 Here we're currently using a RemoteAddrValve to restrict it to
 internal use.  That's just me being conservative:  I had one use for
 it and opened up access only to the hosts which make that one use.

 --
 Mark H. Wood
 Lead Technology Analyst

 University Library
 Indiana University - Purdue University Indianapolis
 755 W. Michigan Street
 Indianapolis, IN 46202
 317-274-0749
 www.ulib.iupui.edu

 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___
 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



-- 
Bruno Nocera Zanette
+55 41 9992-2508

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
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] Initial Community Screen really slow to load on 5.1

2015-04-13 Thread Wally Grotophorst
Did a complete rebuild of DSpace 5.1 today and it seems to be working 
much better now...back to the 1-2 second response time.
So I don't know what the problem might have been but I post this 
followup just in case someone hits a similar issue.


- Wally

Just upgraded our DSpace instance from 4.3 to 5.1.   A few hiccups along 
the way but it is running now.   One issue is the very long (10-15 
seconds) wait time until the initial page (the community list) loads.   
Once it loads things go swiftly on any subsequent page.


I ran a full vacuum on the postgres database but that didn't improve things.
And I have set this to false in dspace.cfg

xmlui.community-list.render.full = false

and this:
xmlui.community-list.cache = 18 hours

Neither made much difference.

Is there anything else that I might try to speed this up...or perhaps a 
hint on which log to study to see what it's doing during that long 
delay.  Any suggestions will be welcomed.   I should say that this same 
platform ran 4.3 quite briskly.


Theme:  Mirage 1 XMLUI
but I see the same slowness on the JSPUI side as well

JAVA_OPTS=-d64 -server -XX:PermSize=512m -XX:-UseParallelGC -verbose:gc 
-Xms2048m -Xmx4G -Djava.awt.headless=true -Dfile.encoding=UTF-8


Server:  Mac OS 10.10.3
Tomcat: 7.0.59
Postgres 9.3

- Wally

Wally Grotophorst
George Mason University
-
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
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] Initial Community Screen really slow to load on 5.1

2015-04-13 Thread Stuart Yeates
Questions:


(a) is it this particular page which is slow, or is it any first page in a user 
session (which just happens to usually be this page) ?


(b) are subsequent reloads of the same page shortly after also slow ?


Slowness is likely to be caused by the Java app (or the entire VM) being 
swapped out from memory; database connections needing to be reestablished; 
per-session customisations meaning nothing can be cached; or HTTPD DNS lookups.


cheers
stuart


--
I have a new phone number: 04 463 5692
https://www.facebook.com/VUWLibrary / https://www.facebook.com/TKMPC



From: Wally Grotophorst wal...@gmu.edu
Sent: Tuesday, 14 April 2015 3:02 p.m.
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Initial Community Screen really slow to load on 5.1

Did a complete rebuild of DSpace 5.1 today and it seems to be working much 
better now...back to the 1-2 second response time.
So I don't know what the problem might have been but I post this followup just 
in case someone hits a similar issue.

- Wally

Just upgraded our DSpace instance from 4.3 to 5.1.   A few hiccups along the 
way but it is running now.   One issue is the very long (10-15 seconds) wait 
time until the initial page (the community list) loads.   Once it loads things 
go swiftly on any subsequent page.

I ran a full vacuum on the postgres database but that didn't improve things.
And I have set this to false in dspace.cfg

xmlui.community-list.render.full = false

and this:
xmlui.community-list.cache = 18 hours

Neither made much difference.

Is there anything else that I might try to speed this up...or perhaps a hint on 
which log to study to see what it's doing during that long delay.  Any 
suggestions will be welcomed.   I should say that this same platform ran 4.3 
quite briskly.

Theme:  Mirage 1 XMLUI
but I see the same slowness on the JSPUI side as well

JAVA_OPTS=-d64 -server -XX:PermSize=512m -XX:-UseParallelGC -verbose:gc 
-Xms2048m -Xmx4G -Djava.awt.headless=true -Dfile.encoding=UTF-8

Server:  Mac OS 10.10.3
Tomcat: 7.0.59
Postgres 9.3

- Wally

Wally Grotophorst
George Mason University
-
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
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] jspui browse errors after update from 3.3 to 3.4

2015-04-13 Thread Claudia Jürgen
Hello,

if you mean you did upgrade to 4.3 there has been an issue with the 
browse loosing it's scope which has bee fixed meanwhile see
https://jira.duraspace.org/browse/DS-2482

Hope this helps

Claudia Jürgen



Am 12.04.2015 um 23:14 schrieb IdeaFix:
 Hi. I have successfully updated dspace/jspui 3.4. No any errors or problems
 in update process.



 But when I click by title or by author inside community or collection, I
 see all titles or all authors. Not titles in this community, but all titles
 of repository. How can I fix it?



 Adress string is good. It is like this:



 http://mysite/handle/123456789/XX/browse?type=title but result is for link
 like this:

 http://mysite/handle/123456789/browse?type=title










 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF



 ___
 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


-- 
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@ub.tu-dortmund.de
www.ub.tu-dortmund.de


Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie 
ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der 
für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den 
Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher 
Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung 
eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. 
It is solely intended for the recipient. If you are not the intended 
recipient of this e-mail please contact the sender and delete this 
message. Thank you.
Without prejudice of e-mail correspondence our statements are only 
legally binding when they are made in the conventional written form 
(with personal signature) or when such documents are sent by fax.

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
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 with deleting items

2015-04-13 Thread Shaun Donovan
Hello.

I am experiencing problem when trying to delete items.

The first is if an item is mapped to another collection. When this is 
the case, an exception is thrown and the item not deleted. Unmapping the 
item and then deleting it fixes this issue. Should this not be happening 
automatically on an item delete?

The second occurs due to the relationship that exists between tables 
item and communities2item. The error that get thrown in this case is:

ERROR: update or delete on table item violates foreign key constraint 
communities2item_item_id_fkey on table communities2item Detail: Key 
(item_id)=(13512) is still referenced from table communities2item.

Reading through the code 
(./dspace-api/src/main/java/org/dspace/content/Item.java), I came across 
the following:
***
 // Remove from browse indices, if appropriate
 /** XXX FIXME
  ** Although all other Browse index updates are managed through
  ** Event consumers, removing an Item *must* be done *here* 
(inline)
  ** because otherwise, tables are left in an inconsistent state
  ** and the DB transaction will fail.
  ** Any fix would involve too much work on Browse code that
  ** is likely to be replaced soon anyway.   --lcs, Aug 2006
  **
  ** NB Do not check to see if the item is archived - withdrawn /
  ** non-archived items may still be tracked in some browse tables
  ** for administrative purposes, and these need to be removed.
  **/
//   FIXME: there is an exception handling problem here
 try
 {
//   Remove from indices
 IndexBrowse ib = new IndexBrowse(ourContext);
 ib.itemRemoved(this);
 }
 catch (BrowseException e)
 {
 log.error(caught exception: , e);
 throw new SQLException(e.getMessage(), e);
 }
***

Am I right in assuming that this is where the Collection2Item table 
should be prepared for the deletion?

Kind Regards.

Shaun

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
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