Thank you for your response.

On Wed, Jan 12, 2011 at 16:21, Tim Donohue <[email protected]> wrote:
> This auto-incrementing number ensures the next assigned handle is always
> unique, and won't accidentally create a conflict in the system.

I'm aware that there's a sequence in database which accomplishes this.

> However, that being said, in DSpace 1.7.0, the underlying API now adds the
> ability to *assign* your own specified handles to newly created objects
> (Communities, Collections & Items).  See these 1.7.0 API methods..
>
> Collection.create(context,handle)
> Community.create(parent,context,handle)
> InstallItem.installItem(context,submission,handle)
>
> At this point in time, these methods are *not* used by the DSpace UIs
> (XMLUI, JSPUI etc), since DSpace doesn't yet have another method to
> determine unique handles.

I'm not sure I understand what you mean here by "method", since the
first method is the sequence.

> But, you would need to do some customizations to the UI to
> ensure it was somehow determining the next unique handles to assign.

Here I thought generating the handle has nothing to do with UI,
because the handle.handle column contains '12345/6789'. So I imagined
if I changed only the generating code, there would be nothing to
change in the reading/UI part. Is this wrong?

What if I only changed this (dspace/etc/oracle/update-sequences.sql:97):

@updateseq.sql handle_seq handle "to_number(regexp_replace(handle,
'.*/', ''), '999999999999')" "WHERE REGEXP_LIKE(handle,
'^.*/[0123456789]*$')"

> But, should you go this route, I'm sure others would be interested in the work
> (and it could also lead towards a new feature in a future version of
> DSpace).

I'm afraid I don't have the Java skills needed, so anything may I do
will probably be limited to my simple use case of a static prefix to
the local handle part. Though I can imagine other useful use cases -
like generating a prefix for each comunity, i.e. "/comm1.1234",
"comm2.1234" and some less useful ones like a hash or UUID.

Regards,
~~helix84

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to