[Dspace-tech] dspace 4.2 with jboss 5.2

2015-07-31 Thread Vishank Gupta
Hi,

   Did anyone install dspace 4.2 with jboss 5.1 and java 1.7 ?

Then plz tell me the process and needed .jar files in lib folder.

-- 
Regards,

From: Vishank Gupta
--
___
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] How to find item with strange metadata value of "|||"

2015-07-31 Thread Alan Orth
So I found the metadata_field_id for this metadata item using a known valid
value:

dspace=# select * from metadatavalue where text_value='DRYLAND CEREALS';

... and then I tried to find text values containing several variations of
"|||", like '\|\|\|', '%|%', '%\|%' etc...

dspace=# select item_id from metadatavalue where metadata_field_id=86 and
text_value='|||';

But I am not getting any hits. I also figured that, since we figured CSV
export by nature wouldn't expose this anomaly, that I could simple export
and re-import, but DSpace said no changes were detected upon re-import.

Hmmm. Anyone know how I could query Solr directly for this information?

Alan



On Fri, Jul 31, 2015 at 9:35 AM Alan Orth  wrote:

> Thanks for the interesting suggesting, Kim! This is happening in DSpace
> 4.3. I will try to poke around in the database, as you're probably right
> that this anomaly probably wouldn't make it through a CSV export...
>
> Alan
>
> On Thu, Jul 30, 2015 at 1:44 PM Kim Shepherd 
> wrote:
>
>> Hi Alan,
>>
>> Discovery filters use ||| as a separator between lowercase value and a
>> display/stored value, eg. something|||SomeThing
>> I'm sort of surprised it displays in the sidebar, because acting as the
>> separator, it should be pulled out, but I think the first thing I'd look
>> for is empty or null metadata values in your database (probably easier than
>> CSV because of how metadata export works), for the field in question.
>>
>> What version is this happening in?
>>
>> M: k...@shepherd.nz
>> T: @kimshepherd
>> P: +6421883635
>>
>> 0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC
>> https://keybase.io/kshepherd
>>
>> On 30 July 2015 at 20:45, Alan Orth  wrote:
>>
>>> Hi,
>>>
>>> I've got an strange metadata value shown in one of our XMLUI Discovery
>>> sidebar facets, and I'm not sure how to find the offending item to fix it.
>>>
>>> The value is displaying as "|||", and I've narrowed down the collection
>>> the item belongs to by navigating through my communities and looking at the
>>> facet in question. I've exported the metadata as CSV and attempted to find
>>> the item using LibreOffice and OpenRefine but nothing strange sticks out...
>>>
>>> Does anyone have any suggestions?
>>>
>>> Thanks,
>>>
>>> Alan
>>>
>>>
>>> --
>>>
>>> ___
>>> 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 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] OAI Harvest Data issue

2015-07-31 Thread Sunil Sharma
Hi,

I installed a test server and configure OAI-PMH server at my DSpace
instance. When I harvest records or collection from DSpace Demo Server (
http://demo.dspace.org/oai/request), Records are fetching properly.

But I want to fetch some Journal records (full replication) from WHO DSpace
OAI server located at http://imsear.hellis.org/oai/request . I try to
harvest a no.of collections, the connection test get successfully but no
record get harvested. When I clicked "Import Now" it just display message
"OAI server did not contain any updates on 2015-07-31" and no record get
harvest.

Can anyone please try and help me to give the specific reason what is the
actual problem?

Thanks in advance.


//BR

Sunil
--
___
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] Scroll Bar Bug

2015-07-31 Thread Arthur Sady Cordeiro Rossetti
Hardy, sorry for the delay.

I tried CSS but despite beeing able to reduce the size of the bar, when it
is clicked, the contents just stay the same way, so the page size stays
gigantic but you cant see why unless you click on the bar.

I looked into the probelm with more detail,  and in Dspace 4 there was a
similar problem, with the "move item" menu option: edit Item > move. The
java file responsible for that problem in Dspace 4 was "MoveItemForm.java"
in the following part of the code














*for (Collection collection : collections){String name
= collection.getMetadata("name");if (name.length() >
72){name = name.substring(0, 69) +
"...";}// Only add the item if it isn't already the
ownerif (!item.isOwningCollection(collection))
{select.addOption(collection.equals(owningCollection),
collection.getID(),
CollectionDropDown.collectionPath(collection));}}*

Note that, it already limits the size of the bar. So it should not grow,
but I noted one thing. In Dspace 4 the only place I found that kind of
scroll bar, was in xmlui interface when you access an Item and then go to
the menu option: edit Item > move.

But, after the upgrade to Dspace 5 there is a New section in the menus, the
one I mentioned before, witch is named "Content Administration" and in that
section there is the batch import where the same problem with the scroll
bar happens.

In the instalation I have of Dspace 4 when I change the size of the Scroll
in the "MoveItemForm.java" it works, but in Dspace 5 it just doesn't take
effect. I installed Dspace 5 on another machine and the bars were wrong
too, so I'd like to know, am I the only one having this problem?

And my theory is that possibly they created a global method for creating
those bars since now they don't have only in one place, and that part above
of tha "MoveItemForm.java" code has no use anymore. I just can't find where
that new scroll bar is defined, any ideas?

I've been trying to identify this problem for some time and this is getting
me crazy, anyone has any ideas?

Thanks in advance for the attention.

2015-07-09 18:02 GMT-03:00 Pottinger, Hardy J. :

> Hi, Arthur, I looked at your attached screen shot, the item you're
> concerned about is the width of the collection select box. It is likely
> that you have a very wide/deep collection/community hierarchy, and the
> select box is just growing large enough to accommodate the contents. You
> might be able to edit your theme's CSS file to add an overflow:hidden to
> the style for that select box.
>
> -Hardy
>
> --
> *From:* Arthur Sady Cordeiro Rossetti [arthurs...@gmail.com]
> *Sent:* Thursday, July 09, 2015 1:11 PM
> *To:* dspace-tech@lists.sourceforge.net
> *Subject:* [Dspace-tech] Scroll Bar Bug
>
> Guys, when I uploaded from version 5.1 to 5.2 in that new section " batch
> load import" im having a bug with the size of the scroll bar. I can´t find
> in which file to change it. Im sending a print so you can see my situation.
> Does anyone know which file to change?
>
> Regards
>
> --
> Arthur Sady C. Rossetti
>
>
>
>


-- 
Arthur Sady C. Rossetti
--
___
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] dspace import throws NullPointerException

2015-07-31 Thread Graham Triggs
Hi,

I think the point is that the value is returning null - e.g. it is not set
in your dspace.cfg - and so a null is passed into the new File(), and
throwing a NullPointerException.

Ugh.

That code needs updating - the static initializer in ItemImport ought to
have try {} catch around it, and there should be explicit handling of the
configuration property not being present (null).

G

On 31 July 2015 at 11:31, Layale Bassil  wrote:

> Hello Stefan,
>
>
>
> I am also facing exception when I try to import. I am using the same
> import command as the one you used, and I am getting the following
> exception at Line 108 which is (File tempWorkDirFile = new
> File(tempWorkDir);
>
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
>
> at java.lang.Class.forName0(Native Method)
>
> at java.lang.Class.forName(Class.java:274)
>
> at
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:141)
>
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
>
> Caused by: java.lang.NullPointerException
>
> at java.io.File.(File.java:277)
>
> at
> org.dspace.app.itemimport.ItemImport.(ItemImport.java:108)
>
> ... 4 more
>
>
>
> The error is not telling me anything, but it might be related to creating
> the temp working directory. Where can I find the value of this property:
> ConfigurationManager.getProperty("org.dspace.app.batchitemimport.work.dir");
> ?
>
>
>
> Your help is very much appreciated to know how to solve this issue.
>
>
>
> Thanks.
>
>
>
> -Original Message-
> From: Stefan Fritzsche [mailto:stefan.fritzs...@tu-dresden.de]
> Sent: Thursday, July 30, 2015 1:50 PM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] dspace import throws NullPointerException
>
>
>
> Dear Members,
>
>
>
> i try to ingest some content with the commandline tool "dspace import".
>
>
>
> I want to ingest the content via the Simple Archive Format (
> https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format
> ).
>
>
>
>
>
> The ingest is started with
>
>
>
> dspace@server> dspace import -a -e f...@bar.de -s . -m mapfile.
>
> No collections given. Assuming 'collections' file inside item directory
> Adding items from directory: .
>
> Generating mapfile: mapfile
>
> Processing collections file: collections ...
>
>
>
> The content of the collection file is "123456789/9".
>
>
>
> When i start the ingest, the process throws a NullPointerException but if
> i use the -c option with the collection_id from the file it works.
>
>
>
> I use the debugger to find the cause of the exception. The method
> addItem(Context c, Collection[] mycollections, String path, String
> itemname, PrintWriter mapOut, boolean template) throws Exception) in the
> package org.dspace.app.itemimport throws the exception.
>
> I determine that the method addItem is called with the parameter
> mycollections = null but if i use the -c option the parameter holds the
> collection_id.
>
>
>
> I add at line 736 the statement mycollections = clist. After this change
> the process behave like -c option is set.
>
>
>
> My questions are:
>
> Is this a bug and should i report it?
>
> Has my fix some side effects?
>
>
>
> Thanks in advance,
>
> Stefan
>
>
>
>
> --
>
> ___
>
> 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 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 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] dspace import throws NullPointerException

2015-07-31 Thread Claudia Jürgen

Hello Layale,

the import directory is configured in
[dspace]/config/dspace.cfg
### Batch Item import settings ###
# The directory where the results of imports will be placed (mapfile, 
upload file)
org.dspace.app.batchitemimport.work.dir = ${dspace.dir}/imports

The dspace.dir ist configured in dspace.cfg too
# DSpace installation directory
dspace.dir = ${dspace.install.dir}

which uses the dspace.install.dir from
[dspace-source]/dspace/build.properties


There might be other issues like permissions.

Hope this helps

Claudia

Am 31.07.2015 um 12:31 schrieb Layale Bassil:
> Hello Stefan,
>
>
>
> I am also facing exception when I try to import. I am using the same import 
> command as the one you used, and I am getting the following exception at Line 
> 108 which is (File tempWorkDirFile = new File(tempWorkDir);
>
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
>
>  at java.lang.Class.forName0(Native Method)
>
>  at java.lang.Class.forName(Class.java:274)
>
>  at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:141)
>
>  at 
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
>
> Caused by: java.lang.NullPointerException
>
>  at java.io.File.(File.java:277)
>
>  at org.dspace.app.itemimport.ItemImport.(ItemImport.java:108)
>
>  ... 4 more
>
>
>
> The error is not telling me anything, but it might be related to creating the 
> temp working directory. Where can I find the value of this property: 
> ConfigurationManager.getProperty("org.dspace.app.batchitemimport.work.dir"); ?
>
>
>
> Your help is very much appreciated to know how to solve this issue.
>
>
>
> Thanks.
>
>
>
> -Original Message-
> From: Stefan Fritzsche [mailto:stefan.fritzs...@tu-dresden.de]
> Sent: Thursday, July 30, 2015 1:50 PM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] dspace import throws NullPointerException
>
>
>
> Dear Members,
>
>
>
> i try to ingest some content with the commandline tool "dspace import".
>
>
>
> I want to ingest the content via the Simple Archive Format 
> (https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format).
>
>
>
>
>
> The ingest is started with
>
>
>
> dspace@server> dspace import -a -e f...@bar.de -s . -m 
> mapfile.
>
> No collections given. Assuming 'collections' file inside item directory 
> Adding items from directory: .
>
> Generating mapfile: mapfile
>
> Processing collections file: collections ...
>
>
>
> The content of the collection file is "123456789/9".
>
>
>
> When i start the ingest, the process throws a NullPointerException but if i 
> use the -c option with the collection_id from the file it works.
>
>
>
> I use the debugger to find the cause of the exception. The method 
> addItem(Context c, Collection[] mycollections, String path, String itemname, 
> PrintWriter mapOut, boolean template) throws Exception) in the package 
> org.dspace.app.itemimport throws the exception.
>
> I determine that the method addItem is called with the parameter 
> mycollections = null but if i use the -c option the parameter holds the 
> collection_id.
>
>
>
> I add at line 736 the statement mycollections = clist. After this change the 
> process behave like -c option is set.
>
>
>
> My questions are:
>
> Is this a bug and should i report it?
>
> Has my fix some side effects?
>
>
>
> Thanks in advance,
>
> Stefan
>
>
>
> --
>
> ___
>
> 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 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 i

Re: [Dspace-tech] dspace import throws NullPointerException

2015-07-31 Thread Layale Bassil
Hello Stefan,



I am also facing exception when I try to import. I am using the same import 
command as the one you used, and I am getting the following exception at Line 
108 which is (File tempWorkDirFile = new File(tempWorkDir);



Exception in thread "main" java.lang.ExceptionInInitializerError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:274)

at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:141)

at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

Caused by: java.lang.NullPointerException

at java.io.File.(File.java:277)

at org.dspace.app.itemimport.ItemImport.(ItemImport.java:108)

... 4 more



The error is not telling me anything, but it might be related to creating the 
temp working directory. Where can I find the value of this property: 
ConfigurationManager.getProperty("org.dspace.app.batchitemimport.work.dir"); ?



Your help is very much appreciated to know how to solve this issue.



Thanks.



-Original Message-
From: Stefan Fritzsche [mailto:stefan.fritzs...@tu-dresden.de]
Sent: Thursday, July 30, 2015 1:50 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] dspace import throws NullPointerException



Dear Members,



i try to ingest some content with the commandline tool "dspace import".



I want to ingest the content via the Simple Archive Format 
(https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format).





The ingest is started with



dspace@server> dspace import -a -e f...@bar.de -s . -m 
mapfile.

No collections given. Assuming 'collections' file inside item directory Adding 
items from directory: .

Generating mapfile: mapfile

Processing collections file: collections ...



The content of the collection file is "123456789/9".



When i start the ingest, the process throws a NullPointerException but if i use 
the -c option with the collection_id from the file it works.



I use the debugger to find the cause of the exception. The method 
addItem(Context c, Collection[] mycollections, String path, String itemname, 
PrintWriter mapOut, boolean template) throws Exception) in the package 
org.dspace.app.itemimport throws the exception.

I determine that the method addItem is called with the parameter mycollections 
= null but if i use the -c option the parameter holds the collection_id.



I add at line 736 the statement mycollections = clist. After this change the 
process behave like -c option is set.



My questions are:

Is this a bug and should i report it?

Has my fix some side effects?



Thanks in advance,

Stefan



--

___

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