Nameresolver: Linking from BibClass Using ID Resolver
From DLXS Documentation
m |
|||
(One intermediate revision not shown.) | |||
Line 1: | Line 1: | ||
- | [[DLXS Wiki|Main Page]] > [[Mounting Collections: Class-specific Steps]] > [[Mounting a Bib Class Collection]] > Linking from BibClass Using ID Resolver | + | [[DLXS Wiki|Main Page]] > [[Mounting Collections: Class-specific Steps]] > [[Mounting a Bib Class Collection]] > nameresolver: Linking from BibClass Using ID Resolver |
<hr> | <hr> | ||
<tt>nameresolver</tt> is a CGI program that allows lengthy URLs-- e.g., those with multiple CGI parameters-- to be translated to a short URL for permanence. In the case of DLPS, URLs such as: | <tt>nameresolver</tt> is a CGI program that allows lengthy URLs-- e.g., those with multiple CGI parameters-- to be translated to a short URL for permanence. In the case of DLPS, URLs such as: | ||
- | * http:// | + | * http://quod.lib.umich.edu/cgi/t/text/text-idx?c=moa;idno=1462339.1913.002 |
Get translated to: | Get translated to: | ||
Line 16: | Line 16: | ||
To use the program: | To use the program: | ||
- | # Create | + | # Create BibClass records with appropriate <tt>ID</tt> attributes. |
# Create a new group in collmgr with the ID of <tt>bibperm</tt> with webdir set to <tt>/b/bibperm</tt>. | # Create a new group in collmgr with the ID of <tt>bibperm</tt> with webdir set to <tt>/b/bibperm</tt>. | ||
- | # Check those | + | # Check those BibClass collections you want to provide nameresolver URLs for and release the group. |
The program itself lives in /{$DLXSROOT}/cgi/b/bib and is called <tt>bibperm</tt>. | The program itself lives in /{$DLXSROOT}/cgi/b/bib and is called <tt>bibperm</tt>. | ||
[[#top|Top]] | [[#top|Top]] |
Current revision
Main Page > Mounting Collections: Class-specific Steps > Mounting a Bib Class Collection > nameresolver: Linking from BibClass Using ID Resolver
nameresolver is a CGI program that allows lengthy URLs-- e.g., those with multiple CGI parameters-- to be translated to a short URL for permanence. In the case of DLPS, URLs such as:
Get translated to:
This provides a bookmarkable URL for incorporation into DLXS templates and other web pages.
The program works by parsing the ID attribute of the A field in Bib Class and appending the value of that attribute to the http://name.umdl.umich.edu/ prefix. The record associated with the A field is what the user sees when they link to the short, persistent, nameresolver URL, e.g., http://name.umdl.umich.edu/1462339.1913.002
To use the program:
- Create BibClass records with appropriate ID attributes.
- Create a new group in collmgr with the ID of bibperm with webdir set to /b/bibperm.
- Check those BibClass collections you want to provide nameresolver URLs for and release the group.
The program itself lives in /{$DLXSROOT}/cgi/b/bib and is called bibperm.