MARC record formatting

A MARC record does not contain tag types and can therefor in this respect be compared with GRS-1 records with string tags. Therefore the tagpath only consists of a list of tag names separated by "/". In the MARC terminology this is usually referred to as field name and subfield name.

Apart from this the record formatting is exactly like GRS-1.

Please refer to the document http://lcweb.loc.gov/z3950/agency/defns/oids.html#5 for information on the different MARC formats.

Example 9-2. MARC Formatting

Let's say we want to display the title and author field in an USMARC record. The title is stored in field 245, subfield a and the author name is stored in field 100 where the subfields for surname is a and for first name it is h. This would look something like this in ZAP:


      %%format usmarc
      245
      245/*
      245/*/a "<B>Title:</B> $data"
      100
      100/*
      100/*/a "<br><B>Author:</B> $data"
      100/*/h ", $data"
     

Given the values "The Ugly Ducklin", "Hans Christian " and "Andersen" for title, first name and surname, respectively, the output would be:


      <B>Title:</B> The Ugly Ducklin
      <B>Author:</B>Andersen, Hans Christian