Hi,

<<< The 123456789 prefix is a bogus, non-existent prefix and the default value 
if you don't specify your actual handle prefix (assuming you have one).>>>

We are not registered with Handle server so we do not have handle prefix that’s 
the reason we are using 123456789.

I came across few handles:

http://www.dspace.cam.ac.uk/handle/1810/221922
http://cadair.aber.ac.uk/dspace/handle/2160/1

Does this mean that these universities have registered with Handle server and 
has 2160 or 1810 registered as institution id?
How do we get this institution id generated for us?

One more thing to notice in these handles that they do not have 'jspui' in the 
URL.
We got of jspui in the handle url, making it longer. 
https://qmro.qmul.ac.uk/jspui/handle/123456789/2564

Is there any way to get rid of jspui here, we haven't got  xmlui  yet?

Thanks
Kirti

-----Original Message-----
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 07 August 2012 12:44
To: Kirti Bodhmage
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Changing Handle URL

Hi Kirti,

On Tue, Aug 7, 2012 at 1:27 PM, Kirti Bodhmage <k.bodhm...@qmul.ac.uk> wrote:
> I think this question has been asked many times on this list.

I believe this is the first time :)

> My requirement is to change handle url to something smaller.
>
> Instead of https://qmro.qmul.ac.uk/jspui/handle/123456789/2564 can we 
> change it to https://qmro.qmul.ac.uk/2564 .

The 123456789 prefix is a bogus, non-existent prefix and the default value if 
you don't specify your actual handle prefix (assuming you have one).

> As I want to reduce URL to something smaller, is there any way to 
> avoid handle.prefix all together?

No, for now, you have to keep it.

> I tried removing it but didn't work.  Although setting it to something 
> like
> handle.prefix=1 does work.

Do not do this. This indicates you're the institution with handle prefix "1", 
which you surely aren't. Handle redirects would be broken (there's a 
hdl.handle.net permaling automatically generated with this prefix).

SOLUTION: I assume you're running a web server (e.g. Apache HTTPD) in front of 
your servlet contaniner (e.g. Tomcat). What you want to do is add an URL 
rewriting module (e.g. mod_rewrite) that will intercept all reqests in form of 
"^/[1-9]*$" (regex notation) and turn them into redirects to 
"/jspui/handle/123456789/$1". In mod_rewrite notation, this would be:

RewriteEngine on
RewriteRule ^/[1-9]*$ /jspui/handle/123456789/$1$1 [L]

(This is off the top of my head, I didn't test it)

> I assume any change in handle prefix will be applied to newly 
> submitted records not the existing records in repository.

That's right, there's the "[dspace]/bin/dspace update-handle-prefix"
command for updating existing items, but DO NOT change the prefix for the 
reasons I said above.

> If I change the handle prefix then the old records will have 
> handle.prefix set to 123456789  and new one handle.prefix = 1.
>
> Is there any problem having both handle in repository?
>
> We have Symplectic Elements and repository tools depositing records 
> into Dspace.  Will changing the handle url create any issue with 
> publications?( a question for Symplectic)

Like I said above, don't change the handle prefix.

Regards,
~~helix84
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to