Re: [Dspace-tech] How to find item with strange metadata value of "|||"

2015-07-30 Thread Alan Orth
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] Question about search in DSpace 5.2

2015-07-30 Thread George Stanley Kozak
Hi...

I am using DSpace 5.2 XMLUI (Mirage 2 theme - modified).


Some users have reported to me that search doesn't seem to respect quoted 
phrases, to mean an exact phrase search.



If you search on "Cornell University" within, say, title. You get a lot of 
titles without that exact phrase.



Is there a setting in one of the config files that is causing this, or is this 
being caused by something else?

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924




--
___
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-30 Thread Claudia Jürgen
Hello Stefan,

file one, they are most likely closely related.

Sunny greetings

Claudia


Am 30.07.2015 um 14:02 schrieb Stefan Fritzsche:
> Hello Claudia,
>
> thanks for your reply. I got the same problem when i use the replace
> options instead the add.
> Should i report both as one issues or should be open a issue for each case?
>
> Kind regards,
> Stefan
>
> On 07/30/2015 01:44 PM, Claudia Jürgen wrote:
>> Hello Stefan,
>>
>> you are right this looks (not tested it) like a bug in:
>>
>> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java#L736
>>
>> addItem(c, mycollections, sourceDir, dircontents[i], mapOut, template);
>> should be
>> addItem(c, clist, sourceDir, dircontents[i], mapOut, template);
>>
>> If you add the line you mentioned
>> " I add at line 736 the statement mycollections = clist. After this
>> change the process behave like -c option is set."
>> This will fail if using the importer with the -c option.
>>
>> You can file it in our issue Tracker:
>> https://jira.duraspace.org/browse/DS/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel
>>
>> Hope this helps
>>
>> and
>>
>> Grüße aus dem Ruhrpott
>>
>> Claudia
>>
>>
>> Am 30.07.2015 um 12:50 schrieb Stefan Fritzsche:
>>> 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


Re: [Dspace-tech] Need Advice on DSpace Upload Error

2015-07-30 Thread Matt Sherman
I was suspecting as much, but I hadn't seen that error before so I wasn't
sure.  Time to talk to IT. Thanks.
On Jul 30, 2015 3:04 PM, "Mark H. Wood"  wrote:

> On Thu, Jul 30, 2015 at 02:50:48PM -0400, Matt Sherman wrote:
> > Hi all,
> >
> > I could use some help diagnosing an upload error I am getting when I try
> to
> > upload files.  Any assistance would be appreciated as I am unsure what
> the
> > issues is.  The error message is posted below.  Thanks for any assistance
> > you can provide.
> >
> > Matt Sherman
> >
> >
> > Problem in creating the Request
> > Message: null
> > Description: No details available.
> > Sender:
> org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter
> > Source: Cocoon Servlet
> > cause
> > Malformed stream: No space left on device
> ^^^
> Apparently the disk is full.
>
> --
> 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
>
>
> --
>
> ___
> 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] Need Advice on DSpace Upload Error

2015-07-30 Thread Mark H. Wood
On Thu, Jul 30, 2015 at 02:50:48PM -0400, Matt Sherman wrote:
> Hi all,
> 
> I could use some help diagnosing an upload error I am getting when I try to
> upload files.  Any assistance would be appreciated as I am unsure what the
> issues is.  The error message is posted below.  Thanks for any assistance
> you can provide.
> 
> Matt Sherman
> 
> 
> Problem in creating the Request
> Message: null
> Description: No details available.
> Sender: org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter
> Source: Cocoon Servlet
> cause
> Malformed stream: No space left on device
^^^
Apparently the disk is full.

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


signature.asc
Description: Digital signature
--
___
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] Need Advice on DSpace Upload Error

2015-07-30 Thread Matt Sherman
Hi all,

I could use some help diagnosing an upload error I am getting when I try to
upload files.  Any assistance would be appreciated as I am unsure what the
issues is.  The error message is posted below.  Thanks for any assistance
you can provide.

Matt Sherman


Problem in creating the Request
Message: null
Description: No details available.
Sender: org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter
Source: Cocoon Servlet
cause
Malformed stream: No space left on device
request-uri
/xmlui/handle/123456789/34/submit/6116517d583216675626037a244428243f74861b.continue
--
___
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] Now available: DSpace 5.3 release, providing bug and security fixes to 5.x

2015-07-30 Thread Tim Donohue

Dear DSpace Community:

On behalf of the DSpace developers, I would like to formally announce 
that DSpace 5.3 is now available. DSpace 5.3 is a bug-fix and (minor) 
security release and contains no new features.


DSpace 5.3 can be downloaded immediately from: 
https://github.com/DSpace/DSpace/releases/tag/dspace-5.3
5.3 Release notes are available at: 
https://wiki.duraspace.org/display/DSDOC5x/Release+Notes


(Please note that the 5.3 release is NOT available from SourceForge. 
SourceForge has had recent service issues and does not support uploading 
new releases at this time.)


In addition, you are welcome to try out DSpace 5.3 on 
http://demo.dspace.org/ and continue to provide any early feedback you 
may have.



 5.3 Bug Fixes

 * Security fixes:
 o /[LOW SEVERITY]/ /Possible to access files attached to
   "in-progress" submissions via a direct link /(DS-2614
    - requires a JIRA
   account to access for two weeks, and then will be public)/.
   /This vulnerability could allow anyone in the world to download
   a file attached to an "in-progress" submission if they are
   provided with a direct link to that file (from either UI). While
   a direct file link would be very hard to "guess" or stumble
   upon, this could allow an individual with deposit rights to make
   available content which has not been approved by local DSpace
   administrators. This vulnerability has at least existed since
   5.0, but may effect versions as old as 3.0.
 + Discovered by Pascal-Nicolas Becker of Technische
   Universität Berlin
 * Search and browse fixes:
 o Solr and Lucene special characters no longer cause search errors
   (DS-2339 , DS-2461
   , DS-2472
   )
 o Resolved issues jumping to values when browsing by title or date
   (DS-2571 , DS-2602
   )
 * OAI fixes:
 o Performing a full OAI import now also cleans the OAI cache
   (DS-2543 )
 o Harvested items are now properly imported in OAI (DS-2554
   )
 o Tombstones (deleted item status) are now properly applied for
   withdrawn items (DS-2593
   )
   (note: this requires 'import' to be run, the OAI event consumer
   will not create tombstones automatically)
 o dc.date.available is now properly exposed when using the mets
   metadata format (DS-2598
   )
 * Authorization policy fixes:
 o Custom policies for items in workspace or workflow (eg. embargo
   lifts) are now ignored by AuthorizeManager (DS-2614
   )
 o ||NULL Resource Policy types (commonly found when upgrading from
   DSpace < 3.0) are now handled correctly by AuthorizeManager
   (DS-2587 )
 o Item-level versioning now carries across all custom policies in
   new item versions (eg. embargos) (DS-2358
   )
 * Other notable fixes:
 o Optimized "Select Collection" query is now disabled by default
   as a workaround to ensure special group lookups (LDAP,
   Shibboleth) work out-of-the-box (DS-2673
   )
 o Resolved issue where citation_pdf_url metadata was NULL for
   items with multiple bitstreams but no primary bitstream (DS-2603
   )
 o ||dc.rights metadata is now properly exposed in embedded XHTML
   head DC (DS-2568 )

For much more information on each of these and other fixes, please visit 
our 5.x Release Notes: 
https://wiki.duraspace.org/display/DSDOC5x/Release+Notes



 5.3 Documentation

The DSpace 5.x documentation is available online at: 
https://wiki.duraspace.org/display/DSDOC5x/


A PDF copy of the documentation can also be downloaded from: 
https://github.com/DSpace/DSpace/releases/download/dspace-5.3/DSpace-Manual.pdf



 5.3 Acknowledgments

The DSpace application would not exist without the hard work and support 
of the community. Thank you to the many developers who have worked very 
hard to deliver all the new features and improvements. Also thanks to 
the users who provided input and feedback on the development, as well 
those who participated in the testathons.


The 5.3 release was led by Kim Shepherd (University of Auckland Library) 
and the Committers.


The following individuals provided code or bug fixes to the 5.3 release:

[Dspace-tech] Mirage2 authority lookup popup

2015-07-30 Thread alastair.duncan
Hi,

I've created 2 authorities one which extends the person authority and looks up 
the person from Active Directory and one that looks up projects from Gateway to 
Research, GtR is not yet complete. The GtR requires more work as the authority 
lookup popup does not have the functionality that the author lookup has. So 
that I did not duplicate work required for Mirage and Mirage2 I've been looking 
at Mirage2 UI which I've built and deployed and it looks good. 

There is a difference in the mirage2 functionality for the authority lookup 
popup as the popup does not close once the item selected has been accepted. The 
window.close() has been removed from the javascript function - probably as its 
not a popup window it's a modal dialogue.

So the question is; is this desired functionality or has this been 
overlooked/not a priority at present?

Thanks

Alastair

--
___
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] HTTP Status 500 - com.lyncode.xoai.dataprovider.exceptions.WritingXmlException: Error trying to output ''

2015-07-30 Thread euler
Hello Adan,

The suggestion of Kosmas to add -Dfile.encoding=UTF-8 to my Java solved my
problem. Thanks for the response.

Best regards,
euler



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/HTTP-Status-500-com-lyncode-xoai-dataprovider-exceptions-WritingXmlException-Error-trying-to-output-tp4679002p4679018.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] HTTP Status 500 - com.lyncode.xoai.dataprovider.exceptions.WritingXmlException: Error trying to output ''

2015-07-30 Thread euler
Hi Kosmas,

Thanks a lot for your response. I'm actually worried that this is a serious
error. I am now harvesting successfully.

Best regards,
euler



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/HTTP-Status-500-com-lyncode-xoai-dataprovider-exceptions-WritingXmlException-Error-trying-to-output-tp4679002p4679017.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] About to Create Multiple Instance for Dspace-5.2-src-release

2015-07-30 Thread Luiz dos Santos
Hi,

   Another way is just dump the database and upload it in the another bd
(If you are using postegres):
   => http://www.postgresql.org/docs/9.4/static/app-pgdump.html

1th server
pg_dump > $HOME/exports/dspace-export-to-another-server.sql

2th  server
shutdown the tomcat
dropdb -U dspace "name of Dspace_DB"
createdb -U dspace -E UNICODE "name of Dspace_DB" -T template0
psql -U dspace "name of Dspace_DB" <
exports/dspace-export-to-another-server.sql
startup the tomcat


You can even use the rsync to copu the file from one server to another.

On Thu, Jul 30, 2015 at 2:14 AM, Kosmas Kaifel 
wrote:

>  Hi,
>
> I think the best way in this case is you export the whole database from
> server A
> and import this export into server B.
> You can do this wiht tools from the DB-Developer.
>
> Nice greatings Kosmas
>
> Am 29.07.2015 um 15:33 schrieb Mark H. Wood:
>
> On Wed, Jul 29, 2015 at 01:46:00PM +0300, Mansoor Ali wrote:
>
>  Iam really thankful if any one would help me in this case.
>
> Iam trying this to implement on windows.
> I want to create two instances for dspace-5.2-src-release and to keep both
> the instances in two different servers called ServerA & ServerB and my main
> intention is to view the same data from both instances so please any body
> have a solution for this case or what will be the best way to view the same
> data from two instance which are on two different Servers and these two
> servers are connected to a single DB server & a single assetstore.
>
>  I have not tried to build such a system, but here is what I would do.
>
> The two instances of DSpace should in this case use a single database,
> not two separate databases.  That is:  db.url should be the same for
> both.
>
> The shared assetstore should be in a filesystem that can coordinate
> concurrent use across a cluster of hosts and is configured to do so.
> It appears to me that you are running your DSpaces on MS Windows, and
> I haven't touched a Windows server in years so I don't have any good
> specific advice on that.
>
> The behavior that you see with two separate databases, even though
> stored in the same DBMS instance, is what I would expect.  The
> database is how DSpace knows what it has and where to find it.
>
>
>
>
> --
>
>
>
> ___
> DSpace-tech mailing 
> listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> --
> +---+
> Universität Ulm
> Kommunikations- und Informationszentrum (kiz)
> Abt. Infrastruktur
> Albert-Einstein-Allee 37
> 89081 Ulm
> Tel.   0731/50-15495
> EMail: kosmas.kai...@uni-ulm.de
> ++
>
>
>
> --
>
> ___
> 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] Nested Metadata

2015-07-30 Thread Mark H. Wood
On Wed, Jul 29, 2015 at 04:06:19PM -0400, Peter Dietz wrote:
> Has anyone stored nested / rich metadata in DSpace?
> 
> An example I'm thinking of is for storing richer amounts of metadata for an
> object. For example:
> 
>- Author
>   - first-name: Peter
>   - last-name: Dietz
>   - name-as-it-appears: Peter Dietz
>   - institution: Longsight
>   - date-of-birth: ...
>   - ...
>- Author
>   - first-name: Sam
>   - last-name: Ottenhoff
>   - ...
> 
> The Authority Control system of DSpace looks like it approaches this, but
> the documentation isn't clear, and I'm not sure if it requires that your
> data values reside in some Library of Congress registry.

You can create other authority providers.  (The documentation is
indeed sketchy.  The code is in
dspace-api:org.dspace.content.authority.  Sadly there is no
package-level documentation to help us understand how the package is
organized.)

> The hack-job I have in mind would be to serialize the information... to
> json... and then store that into a metadata field.
> 
> So.
> schema.author.serialized = {first-name: "Peter", last-name: "Dietz",
> "name-as-it-appears" : "Peter Dietz", "institution": "Longsight", ... }
> 
> However, I'm tempted to think that DSpace should either have the ability to
> plug into any registry (hopefully there are registries you can populate and
> maintain with your own local data), or to extend DSpace's metadata data
> model to support nested/rich data.

DSpace already has infrastructure sufficient to represent the above.
We just don't define:

  somenamespace.person.givenname
  somenamespace.person.surname
  somenamespace.person.preferred
  somenamespace.person.affiliation
  somenamespace.person.dob

That part is easy to fix.  The hard part is that DSpace treats author
names as immediate strings rather than identifiers for related
"person" objects.  Fixing that will take a bit of work.  It ties in
with existing and ongoing work to integrate ORCID, too.

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


signature.asc
Description: Digital signature
--
___
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-30 Thread Stefan Fritzsche
Hello Claudia,

thanks for your reply. I got the same problem when i use the replace
options instead the add.
Should i report both as one issues or should be open a issue for each case?

Kind regards,
Stefan

On 07/30/2015 01:44 PM, Claudia Jürgen wrote:
> Hello Stefan,
>
> you are right this looks (not tested it) like a bug in:
>
> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java#L736
>
> addItem(c, mycollections, sourceDir, dircontents[i], mapOut, template);
> should be
> addItem(c, clist, sourceDir, dircontents[i], mapOut, template);
>
> If you add the line you mentioned
> " I add at line 736 the statement mycollections = clist. After this 
> change the process behave like -c option is set."
> This will fail if using the importer with the -c option.
>
> You can file it in our issue Tracker:
> https://jira.duraspace.org/browse/DS/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel
>
> Hope this helps
>
> and
>
> Grüße aus dem Ruhrpott
>
> Claudia
>
>
> Am 30.07.2015 um 12:50 schrieb Stefan Fritzsche:
>> 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
>>


-- 
Stefan Fritzsche
email: stefan.fritzs...@tu-dresden.de
tel: (49) 351 463-33212
-
Zellescher Weg 12 // Willersbau A 109
01069 Dresden


--
___
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-30 Thread Claudia Jürgen
Hello Stefan,

you are right this looks (not tested it) like a bug in:

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java#L736

addItem(c, mycollections, sourceDir, dircontents[i], mapOut, template);
should be
addItem(c, clist, sourceDir, dircontents[i], mapOut, template);

If you add the line you mentioned
" I add at line 736 the statement mycollections = clist. After this 
change the process behave like -c option is set."
This will fail if using the importer with the -c option.

You can file it in our issue Tracker:
https://jira.duraspace.org/browse/DS/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel

Hope this helps

and

Grüße aus dem Ruhrpott

Claudia


Am 30.07.2015 um 12:50 schrieb Stefan Fritzsche:
> 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
>

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

--
___
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 import throws NullPointerException

2015-07-30 Thread Stefan Fritzsche
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


Re: [Dspace-tech] How to find item with strange metadata value of "|||"

2015-07-30 Thread Kim Shepherd
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] How to find item with strange metadata value of "|||"

2015-07-30 Thread Alan Orth
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

Re: [Dspace-tech] discovery facet by collection

2015-07-30 Thread Pablo Buenaposada
This is the sidebar facet in discovery.xml that works showing the collection



   
location.coll





I really need to show the collections found and other metadada in the same
facet, let's say that I want to show location.coll and dc.title, so:




   
dc.title
location.coll





but doesn't work :(



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4679008.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

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