This section of the documentation will describe specifically how to move in and out of MARC and MARCXML either for one record or a batch of records as well as mapping from MARC to another XML schema (Dublin Core, MODS, RDF, etc.). For those interested in simply examining MARC records without exporting them, MarcEdit’s MarcEditor application allows users to view a MARC record in MARC Mnemonic MarcEdit format. To do so, see Creating File for Editing in MarcEdit. This section will also cover the Character Conversion functionality and principles within MarcEdit.
While MarcEdit allows users to convert between schemas, this conversion schemas requires some configuration. In the interest of brevity, we will walk through the registering of XML functions in general rather than for each schema specifically. Essentially MarcEdit performs translations by converting an XML document written according to one schema into a MARCXML document and then out of MARCXML into a different schema. As long as MarcEdit understands how to move into MARCXML from a schema, that schema can typically be converted into MARC and from there either to MARCXML or MARC Mnemonic format. MarcEdit also allows for flexibility in how one schema is mapped to the other, but some setting of preferences is required. While there are a number of XSLT sheets which perform this transformation, there is often data loss as one might expect with this sort of transformation. This documentation will begin by walking through the registration of a given XML function and then provide more specific information for particular schemas in subsequent workflows.
While there are some XSLT sheets that come with MarcEdit, they are not accessible unless manually imported into the Marc Tools functions menu. This outlines how a function can be added for future use within the MarcTools window.
Give the transformation a name, typically outlining the transformation you would like to perform. For the purpose of this demonstration, we will map OAI_DC to MARCXML, but the procedure will be similar for any mapping.
These XSLT style sheets come installed with MarcEdit, though you cannot make use of them until you register the function. Select the stylesheet which relates to the transformation being performed. NOTE: some will use the “[SchemaName]to[SchemaName]” format and some will use “[SchemaName]2[SchemaName].” Click open to select the stylesheet.
Once you click OK, it will be set as a function in the menu so you should not have to establish these settings again. You can also modify the function at a later date. The function you just registered can be found in the menu of transformations in MARC Tools as well as in the Batch Processing menu. You can now use the same steps below to transfer between this new XML function (or any existing functions) to MARC. In the process of creating this documentation, these functions were somewhat inconsistent in how much data loss occurred, though the MARCXML to MARC translation is typically very accurate. While some data loss in crosswalking often occurs, it is worth noting that the amount of data loss varies depending on the crosswalk used.
This function allows users to compile a MARCXML file to MARC. Because MarcEdit does not conform to a particular MARC standard by default, changes in the order of fields or subfields within the MARCXML document will not be sorted when compiled back into MARC.