Re: [dspace-tech] Trying to delete bitsream policy via REST gives internal server error

2017-09-19 Thread Ari
Thanks for replies Tim and Miika. Sorry for lazy error hunting. I just wanted to check if my request was valid before further digging. Miika's fix solved the problem.. Best, Ari On Tuesday, 19 September 2017 19:24:46 UTC+3, Miika Nurminen wrote: > > Tim Donohue wrote:

[dspace-tech] Trying to delete bitsream policy via REST gives internal server error

2017-09-19 Thread Ari
Hi, I can fetch bitstream policy ok: https: //demo.dspace.org/rest/bitstreams/da4a9462-91ba-4203-86ae-ff3d94236a66/policy this returns: [ { "id": 1509, "action": "READ", "epersonId": null, "groupId": "0247fa62-c079-4174-9071-e06b35cae7be", "resourceId

[dspace-tech] bitstream policy fetch fixed for 6.1?

2017-07-03 Thread Ari
. Best, Ari Ari Häyrinen information system expert Jyväskylä University Library -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

[dspace-tech] Re: Dspace6: Creating new metadata field via REST?

2017-03-07 Thread Ari
quot;description":"Toka admin","element":"admin","qualifier":"other"}' Sorry for the noise. On Wednesday, 8 March 2017 07:59:47 UTC+2, Ari wrote: > > Hi, > I've tried to create a new metadata field via REST api. > >

[dspace-tech] Dspace6: Creating new metadata field via REST?

2017-03-07 Thread Ari
t at all. <https://lh3.googleusercontent.com/-P-0Hs9gFryQ/WL-bxwIB0dI/AAY/DZ2qHm-1zDMJ9Xzli0_QGDW5Z7n71MUPQCEw/s1600/d6_schema.png> "admin" and "other" should be separate elements. I've tried all sort of combinations with name and I tried giving element

Re: [dspace-tech] DSpace data editing with GLAMpipe

2016-12-20 Thread Ari
the simplicity of Mongo and I like the syntax of its query. [0] https://github.com/ilri/DSpace/wiki/Scripts > [1] https://github.com/creationix/nvm > [2] https://www.youtube.com/watch?v=b2F-DItXtZs > point taken :) Best, Ari > > On Tue, Dec 20, 2016 at 12:00 PM Ari > wrote:

[dspace-tech] DSpace data editing with GLAMpipe

2016-12-20 Thread Ari
lly. Any comments or suggestion are welcome! Best, Ari Häyrinen Information system expert Jyväskylä University Library -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving ema

[dspace-tech] Re: demo.dspace.org error when trying to create new collections

2016-12-18 Thread Ari
Never mind, was just a temporary hiccup. Is working now. Sorry for noise. Ari On Monday, 19 December 2016 08:17:07 UTC+2, Ari wrote: > > Hi, > is there something wrong with the demo.dspace.org? When I try to create a > collection, it says: > > ERROR: duplicate key val

[dspace-tech] demo.dspace.org error when trying to create new collections

2016-12-18 Thread Ari
Hi, is there something wrong with the demo.dspace.org? When I try to create a collection, it says: ERROR: duplicate key value violates unique constraint "handle_handle_key" Detail: Key (handle)=(10673/6) already exists. I would like to run some REST API tests... Best, Ar

VS: [dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-11-07 Thread Häyrinen , Ari
[dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files Hello Ari, Thanks for coming back. Please ignore the last post, as by mistake I ran the mvn package command without the -Dmirage2=true so that error was because the theme was indeed missing from the build proces

[dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-11-03 Thread Ari
Hello Pedro, upgrading maven was enough for me. I'm quite certain that I didn't do anything else. Did you get any errors on compile? Ari On Thursday, 3 November 2016 17:40:17 UTC+2, Pedro Amorim wrote: > > Hello Ari. Im having the exact same problem. So I installed maven 3.3.

[dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-10-14 Thread Ari
It seems that upgrading to Maven 3.3.9 solved the issue. Thanks for help everyone! On Friday, 14 October 2016 10:24:09 UTC+3, Ari wrote: > > Thanks for the tip. This might be the reason since Centos is using Apache > Maven 3.0.5 (Red Hat 3.0.5-16) > > I'll try newer mav

[dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-10-14 Thread Ari
Thanks for the tip. This might be the reason since Centos is using Apache Maven 3.0.5 (Red Hat 3.0.5-16) I'll try newer maven. Ari On Thursday, 13 October 2016 15:50:21 UTC+3, Art Lowel wrote: > > Apparently this issue occurred for a lot of maven 3 plugins after maven > switch

[dspace-tech] Re: Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-10-12 Thread Ari
/xmlui/themes/Mirage2/styles and everything works I'm compiling within Centos 7 docker image without pre-installed deps for Mirage2. This worked fine earlier with DSpace 6. On Wednesday, 12 October 2016 11:04:15 UTC+3, Ari wrote: > > Hi, > I just tried to compile latest DSpace 6

[dspace-tech] Compiling DSpace 6 with Mirage2 theme does not generate CSS files

2016-10-12 Thread Ari
Hi, I just tried to compile latest DSpace 6 version with Mirage2. Previously I had no problems with Mirage2 but now it seems that .css files are not generated. In the log (below) I can see error with compass. Any ideas what could cause that? urls[25] = file:/usr/share/tomcat/.m2/repository/or

[dspace-tech] Re: Querying items by metadata item via SOLR and REST

2016-09-05 Thread Ari
I'm not able to test this right now since my instance has only 20 items currently. I *think* that default limit is 100. But in general you can not trust that API will return all items. You must just make queries by increasing offset (offset + limit) in each round until there is no records left.

Re: [dspace-tech] Querying items by metadata item via SOLR and REST

2016-09-04 Thread Ari
eturn something like this: {"okay":true,"authenticated":true,"email":"your.email","fullname":"ari ", "sourceVersion":null,"apiVersion":null} Hope this helps, Ari On Saturday, 3 September 2016 10:38:07 UTC+3, Ilja Sidorof

Re: [dspace-tech] DSpace 6: REST API return codes

2016-08-21 Thread Ari
Thanks Peter,, i made a bug report for it, hope that OK: https://jira.duraspace.org/browse/DS-3296 Ari On Friday, 19 August 2016 17:30:04 UTC+3, Peter Dietz wrote: > > Hi Ari, > > Lets walk through: > GET /items/{itemID} > > That will try to find an item with an ID

[dspace-tech] DSpace 6: REST API return codes

2016-08-19 Thread Ari
uld be 404 (not found) Ari -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group,

[dspace-tech] Re: REST API metadata editing (DSpace 6)

2016-08-16 Thread Ari
l --data "email=your.email&password=your_pass" http://your_dspace.com:8080/rest/login -c cookies.txt 2. Test that authentication was successful: curl -H "Accept: application/json" http://your_dspace.com:8080/rest/status -b cookies.txt - this should return something lik

[dspace-tech] REST API metadata editing (DSpace 6)

2016-08-16 Thread Ari
I'm trying to edit metadata via REST API but I can't get it to work. Documentation says that entrypoint looks like this: PUT /items/{item id}/metadata - Update metadata in item. You must put a MetadataEntry When I try with CURL: curl -X PUT -H "Content-Type: application/json" -d '{"key":"dc.d

[dspace-tech] Re: DSpace 6: dewfault for CSV export value separator

2016-08-15 Thread Ari
Thanks for a quick fix! On Friday, 12 August 2016 08:08:33 UTC+3, Ari wrote: > > Hi, > acording to bulkedit.cfg the delimiter for values in single field should > be double pipe. > > bulkedit.cfg: > > # The delimiter used to separate values within a single field (defa

Re: [dspace-tech] DSpace 6: dewfault for CSV export value separator

2016-08-11 Thread Ari
Done: https://jira.duraspace.org/browse/DS-3288 On Friday, 12 August 2016 08:22:41 UTC+3, Andrea Schweer wrote: > > Hi Ari, > > On 08/12/2016 05:08 PM, Ari wrote: > > acording to bulkedit.cfg the delimiter for values in single field should > be double pipe. > > bulked

[dspace-tech] DSpace 6: dewfault for CSV export value separator

2016-08-11 Thread Ari
nnula, Mikale,Junttila, Matti,Duck, Donald" Comma makes parsing of author names little bit tricky since comma is also used as separator for firstname and lastname. Is this right? Or have I misunderstood something? Ari -- You received this message because you are subscribed to the Google Group

[dspace-tech] Re: Jython curator task and setting policy

2016-07-20 Thread Ari
Sorry, forgot to mention that is DSpace 6 installation. On Wednesday, 20 July 2016 12:57:57 UTC+3, Ari wrote: > > Hi, > I'm trying to set bitstreampolicy with Jython. I can get bundle, bitstream > and current policy without problems. But how do I set new policy to a > bi

[dspace-tech] Jython curator task and setting policy

2016-07-20 Thread Ari
Hi, I'm trying to set bitstreampolicy with Jython. I can get bundle, bitstream and current policy without problems. But how do I set new policy to a bitstream? I found this: *authorizeService.addPolicy* So i tried something like this: from org.dspace.authorize.service import AuthorizeService c

[dspace-tech] Re: Accessing item metadata with Jython

2016-07-13 Thread Ari
return 0 def performId(self, context, id): print "perform on id %s" % (id) return 0 On Wednesday, 13 July 2016 09:07:46 UTC+3, Ari wrote: > > Hi, > I just found that one can write curator tasks with Jython. This seems to > be an ideal way for us to do some

[dspace-tech] Accessing item metadata with Jython

2016-07-12 Thread Ari
Hi, I just found that one can write curator tasks with Jython. This seems to be an ideal way for us to do some task without need to code in Java. However, I'm not a java programmer and haven't used Jython before and I'm completely stuck with it and there is very little examples around (I have f

Re: [dspace-tech] Showing embargo with metsrights (DSpace6, Mirage2)

2016-07-12 Thread Ari
Just tested and it seems to fix the problem. Thanks again! On Tuesday, 12 July 2016 08:19:26 UTC+3, Ari wrote: > > Thank you Andrea! > > I'm new to DSspace and I was not sure if this was a feature or a bug. > > I'll test and report back. > > BTW. how can I get

Re: [dspace-tech] Showing embargo with metsrights (DSpace6, Mirage2)

2016-07-11 Thread Ari
n, > > I've made a pull request with a proposed fix for this bug -- it would be > great if you could test it to see whether it resolves the problem for you. > > https://github.com/DSpace/DSpace/pull/1458 > > cheers, > Andrea > > On 12/07/16 09:41, Andrea Sch

[dspace-tech] Showing embargo with metsrights (DSpace6, Mirage2)

2016-07-11 Thread Ari
Hi all, I need to show embargo end date for users. I found the way to do it with XSL :https://groups.google.com/forum/#!searchin/dspace-tech/metsrights/dspace-tech/-GH8uRm9lHI/devO-eDzBgAJ The problem is that query with ?rightsMDTypes=METSRIGHTS crashes some cases. I tried to pin point it and