Nameresolver

From DLXS Documentation

(Difference between revisions)
Jump to: navigation, search
Current revision (13:26, 15 August 2008) (edit) (undo)
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
-
==nameresolver: For Building Persistent URLs==
+
[[DLXS Wiki|Main Page]] > [[Working with DLXS Components]] > [[Working with DLXS Utilities and Applications]] > nameresolver
-
<code>nameresolver</code> 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:</p>
+
<code>nameresolver</code> is a CGI program that allows lengthy URLs--those with multiple CGI parameters--to be translated to a short URL for permanence. In the case of DLPS, URLs such as:</p>
<ul>
<ul>
<li>http://www.hti.umich.edu/cgi/t/text/text-idx?c=moa;idno=1462339.1913.002</li>
<li>http://www.hti.umich.edu/cgi/t/text/text-idx?c=moa;idno=1462339.1913.002</li>
Line 13: Line 13:
<p>This provides a bookmarkable URL for incorporation into DLXS templates and other web pages.</p>
<p>This provides a bookmarkable URL for incorporation into DLXS templates and other web pages.</p>
-
<p>The program works by parsing the <tt>ID</tt> attribute of the <tt>A</tt> field in Bib Class and appending the value of that attribute to the <tt>http://name.umdl.umich.edu/</tt> prefix. The record associated with the <tt>A</tt> field is what the user sees when they link to the short, persistent, nameresolver URL, e.g., <a href="http://name.umdl.umich.edu/1462339.1913.002">http://name.umdl.umich.edu/1462339.1913.002</a></p>
+
<p>The program works by parsing the <tt>ID</tt> attribute of the <tt>A</tt> field in Bib Class and appending the value of that attribute to the <tt>http://name.umdl.umich.edu/</tt> prefix. The record associated with the <tt>A</tt> 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</p>
<p>To use the program:
<p>To use the program:
Line 23: Line 23:
</ol></p>
</ol></p>
-
<p>The program itself lives in /{$DLXSROOT}/cgi/b/bib and is called <tt>bibperm</tt>.</p>
+
<p>The program itself lives in <code>/{$DLXSROOT}/cgi/b/bib</code> and is called <tt>bibperm</tt>.</p>
 +
 
 +
[[#top|Top]]

Current revision

Main Page > Working with DLXS Components > Working with DLXS Utilities and Applications > nameresolver

nameresolver is a CGI program that allows lengthy URLs--those with multiple CGI parameters--to be translated to a short URL for permanence. In the case of DLPS, URLs such as:</p>

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:

  1. Create Bib Class records with appropriate ID attributes.
  2. Create a new group in collmgr with the ID of bibperm with webdir set to /b/bibperm.
  3. Check those Bib Class 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.

Top

Personal tools