Re: [Dspace-tech] Export Import - URI -- Test to Production server

2007-11-20 Thread Jayan Chirayath Kurian
Hi! Mark,

 

While items are transferred from the Test server (Export) to the
Production server (Import), by default the handler URI appears twice.
Since the handler assigned by the test server is not relevant it looks
fine to remove the assigned handler by slightly modifying the
C:\DSPace141\src\org\dspace\app\itemexport\ItemExport.java. The
//writeHandle(c, myItem, itemDir); method was commented and the
following conditional statement was added to remove the dublin core
handler specific elements and qualifiers. This helps the production
system to generate a new handler to the batch ingested items. Could you
please suggest whether it could be practiced for solving the double uri
representation. Is there any other easy solution for this from
postgresql. Please suggest. Thanks, Jayan

 

if (qualifier == null)

{

qualifier = none;

}

 

boolean b = String.valueOf(qualifier).equals(String.valueOf(uri));


   if (b)

 { 

System.out.println(Handler URI DC statement removed);

}

else

{

 

utf8 = (  dcvalue element=\ + dcv.element + \ 

+ qualifier=\ + qualifier + \

+ Utils.addEntities(dcv.value) +
/dcvalue\n).getBytes(UTF-8);

 

out.write(utf8, 0, utf8.length);

 

}

 

 

 



From: Mark Diggory [mailto:[EMAIL PROTECTED]
Sent: Sat 11/3/2007 12:26 PM
To: Jayan Chirayath Kurian
Cc: Dorothea Salo; DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Export  Import - URI

Hello Jayan, 

 

For:

 

http://repository.ntu.edu.sg/handle/X23456789/2215

 

The uri are:

 

1.) Older uri from the previous system:

 

http://hdl.handle.net/123456789/2741

 

2.) the Newer URI  assigned by the new system

 

http://hdl.handle.net/X23456789/2215

 

Then challenge is what to do with the Handle URI creation process.
Because the handles are assigned sequentially as items are created in
dspace, they cannot be designated on ingest. In reality, they are
representative of the identical logical item existing in each system.
If you have real handle systems configured, both would resolve to their
corresponding dspace instances appropriately. 

 

If you can do without the older handle, you might process the dublincore
file in the export directory if your using ItemExport (or the mets
package if your using the packager framework) to remove that field.

 

Cheers,

Mark

 

On Nov 3, 2007, at 12:03 AM, Jayan Chirayath Kurian wrote:





Hi! Dorothea,

 

All items appear to have this double URI. I was wondering whether it
could be to specify that the item has been imported from another dspace
instance with xyz URI and now the item is with the present instance with
the 2nd URI. Any suggestions. http://repository.ntu.edu.sg/

 

Thanks,

Jayan

 



From: [EMAIL PROTECTED] on behalf of Dorothea
Salo
Sent: Fri 11/2/2007 10:15 PM
To: DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Export  Import - URI

  I was trying to export a collection from one server and import into
another
 dspace server. The ingestion process was fine but the URI: appears
twice one
 below the other. Is there any specific reason for the uri to get
displayed
 twice? How to get this displayed only once. Please suggest

I see a couple of possibilities. One thing that may have happened is
some metadata duplication during the export/ingest cycle. (I've only
ever had this happen during actual database migration, but your
mileage may vary.) Go into your database and ask the metadatavalues
table for all the metadata surrounding this particular item; if you've
doubled the URI field somehow, you'll see it and be able to deal with
it.

The other possibility is that something's gone wrong with your JSP
such that it is calling for the URI twice. That should be an easy fix!

Dorothea

--
Dorothea Salo[EMAIL PROTECTED]
Digital Repository Librarian  AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


-

This SF.net email is sponsored by: Splunk Inc.

Still grepping through log files to find problems?  Stop.

Now Search log events and configuration files using AJAX and a browser.

Download your FREE copy of Splunk now 
http://get.splunk.com/___

DSpace-tech mailing list

DSpace-tech

Re: [Dspace-tech] Export Import - URI

2007-11-02 Thread Dorothea Salo
  I was trying to export a collection from one server and import into another
 dspace server. The ingestion process was fine but the URI: appears twice one
 below the other. Is there any specific reason for the uri to get displayed
 twice? How to get this displayed only once. Please suggest

I see a couple of possibilities. One thing that may have happened is
some metadata duplication during the export/ingest cycle. (I've only
ever had this happen during actual database migration, but your
mileage may vary.) Go into your database and ask the metadatavalues
table for all the metadata surrounding this particular item; if you've
doubled the URI field somehow, you'll see it and be able to deal with
it.

The other possibility is that something's gone wrong with your JSP
such that it is calling for the URI twice. That should be an easy fix!

Dorothea

-- 
Dorothea Salo[EMAIL PROTECTED]
Digital Repository Librarian  AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Export Import - URI

2007-11-01 Thread Jayan Chirayath Kurian
Hi! 

 

 I was trying to export a collection from one server and import into
another dspace server. The ingestion process was fine but the URI:
appears twice one below the other. Is there any specific reason for the
uri to get displayed twice? How to get this displayed only once. Please
suggest 

 

URI: http://hdl.handle.net/123456789/1793

http://hdl.handle.net/123456789/1793

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech