Discussion:
[Dspace-tech] ask help with user-friendly url
vlad ovsyannikov
2015-08-19 10:06:22 UTC
Permalink
Hello!

I need help

As i can see - handle db table is used to access item by url like
"123456789/6666"

if i change handle column in handle table to "beutiful-url" i can access
document by this user-friendly url



Questions

How to update all handle rows for items with proper user-friendly url named
by doc-title?
How to add form input to edit this column on item edit page?
How to generate proper sitemaps with this user-friendly urls?

Thanks for help!

dspace 4.x
Tim Donohue
2015-08-20 17:45:39 UTC
Permalink
Hi Vlad,

Unfortunately, DSpace doesn't support generating what you call "user
friendly URLs". It specifically generates number-based URLs in order to
ensure uniqueness and provide a stable, persistent identifier.

So, as a basic example, if you were to generate URLs based on doc title,
you'd run into issues if two documents had the same name. You also may
run into issues if you decided to change the title of the document
(would this change the URL? If so, what would happen to folks who
bookmarked the old URL?).

URL naming is not a simple problem, which is why DSpace specifically
uses identifiers which have no "meaning", but are persistent in nature
(they won't change if you rename the document, and they won't conflict
if you have two items of the same name).

Because DSpace doesn't support this, there's really no easy way to
implement this idea in DSpace.

Sorry,

Tim
Post by vlad ovsyannikov
Hello!
I need help
As i can see - handle db table is used to access item by url like
"123456789/6666"
if i change handle column in handle table to "beutiful-url" i can
access document by this user-friendly url
Questions
How to update all handle rows for items with proper user-friendly url
named by doc-title?
How to add form input to edit this column on item edit page?
How to generate proper sitemaps with this user-friendly urls?
Thanks for help!
dspace 4.x
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
Loading...