Re: [Dspace-tech] Changing Handle URL
On Wed, Aug 8, 2012 at 12:46 PM, Kirti Bodhmage wrote: > Does this mean that these universities have registered with Handle server > and has 2160 or 1810 registered as institution id? Correct. > How do we get this institution id generated for us? You can find all the details at http://handle.net/ Note that it's a paid service, about 50 USD per prefix per year. There were also suggestions to rework the current system of persistent identifiers in DSpace, to support more than just handle.net (e.g. DOI, purl), but this surely won't be in DSpace 3.0, maybe later. > One more thing to notice in these handles that they do not have 'jspui' in > the URL. Oh, yes, I could have mentioned that. It just doesn't have anything to do with handles. You can define the base URL for each webapp (xmlui, jspui, oai, sword, ...) in Tomcat configuration in its "Context". You can see an example if you look at Step 8 here: https://wiki.duraspace.org/display/DSDOC18/Installation#Installation-InstallationSteps What you need to do is to set the "path" attribute to the URL you want, in this case the URL root: Please, note that there are several ways to configure webapps in Tomcat. 1) using Contexts in server.xml 2) using Contexts in so called "context fragments", i.e. a separate .xml file for each context 3) not using Contexts, but pointing Tomcat to a directory with .war files (here you'd have to rename your "jspui" webapp directory to "ROOT") 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
Re: [Dspace-tech] Changing Handle URL
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 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
Re: [Dspace-tech] Changing Handle URL
On Tue, Aug 7, 2012 at 1:43 PM, helix84 wrote: > RewriteRule ^/[1-9]*$ /jspui/handle/123456789/$1$1 [L] Sorry, typo. I meant: RewriteRule ^/[1-9]*$ /jspui/handle/123456789/$1 [L] 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
Re: [Dspace-tech] Changing Handle URL
Hi Kirti, On Tue, Aug 7, 2012 at 1:27 PM, Kirti Bodhmage 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
[Dspace-tech] Changing Handle URL
Hi, I think this question has been asked many times on this list. 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 . Looking into the previous email discussions on this list , I think I need to change handle.canonical.prefix parameter in Handle settings section in dspace.cfg. # to change # CNRI Handle prefix handle.prefix = 123456789 As I want to reduce URL to something smaller, is there any way to avoid handle.prefix all together? I tried removing it but didn't work. Although setting it to something like handle.prefix=1 does work. I assume any change in handle prefix will be applied to newly submitted records not the existing records in repository. 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) Thanks Kirti Bodhmage -- 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