Ignore:
Timestamp:
2000-10-26T19:37:46+13:00 (23 years ago)
Author:
jrm21
Message:

Now makes hyperlinks for MARC field 856 (Electronic Access/Location),
so you too can point and click...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/yaz/client/yaz_zclient.c

    r1343 r1616  
    55 *
    66 * $Log$
     7 * Revision 1.2  2000/10/26 06:37:46  jrm21
     8 * Now makes hyperlinks for MARC field 856 (Electronic Access/Location),
     9 * so you too can point and click...
     10 *
    711 * Revision 1.1  2000/08/03 03:10:01  johnmcp
    812 * Added the YAZ toolkit source to the packages directory (for z39.50 stuff)
     
    17051709     200 and 249... */
    17061710      if (!titleonly) {
     1711    /* THIS IS GETTING MESSY - THERE MUST BE A "BETTER WAY" (tm) -
     1712       read in from file perhaps?? */
     1713
    17071714    /* print out what kind of tag this is */
    17081715    char *tagname;
     
    17331740    char *field_sub_note="<tr><td>Subject Notes:</td><td>";
    17341741    char *field_sub_topic="<tr><td>Subject - Topic:</td><td>";
     1742    char *field_sub_geog="<tr><td>Subject - Location:</td><td>";
    17351743    char *field_added_persname="<tr><td>Author Note - Name:</td><td>";
    17361744    char *field_added_corpname="<tr><td>Author - Organisation:</td><td>";
     
    17381746    char *field_host_item="<tr><td>In:</td><td>";
    17391747    char *field_series_corpname="<tr><td>Series - Organisation:</td><td>";
     1748    char *field_url="<tr><td>Electronic Access</td><td><a href=\"";
    17401749    /*char *field_other="<tr><td>(other field):</td><td>";*/
    17411750    char tag_num[100];
     
    17671776    case (630): {tagname=field_sub_note;break;}
    17681777    case (650): {tagname=field_sub_topic;break;}
     1778    case (651): {tagname=field_sub_geog;break;}
    17691779    case (700): {tagname=field_added_persname;break;}
    17701780    case (710): {tagname=field_added_corpname;break;}
     
    17721782    case (773): {tagname=field_host_item;break;}
    17731783    case (810): {tagname=field_series_corpname;break;}
     1784    case (856): {tagname=field_url;break;}
    17741785    default:
    17751786      if (whichtag>=90&&whichtag<=99)
     
    18591870        else {
    18601871          /* end of record, so close HTML table row */
     1872          if (whichtag==856) /* special case: this is a url! */
     1873            title=safeappendstr(title,&title_maxlen,&title_curlen,
     1874                    "\">Uniform Resource Locator</a>");
    18611875          title=safeappendstr(title, &title_maxlen, &title_curlen,
    18621876                      "</td></tr>\n");
Note: See TracChangeset for help on using the changeset viewer.