Click or drag to resize

MARC21AddField Method

AddField provides access to the MarcEngine's add field function. Function requires data to be passed in mnemonic format

Namespace:  MARCEngine7
Assembly:  MARCEngine7 (in MARCEngine7.dll) Version: 1.0.22.0 (1.0.22)
Syntax
C#
public string AddField(
	string smarc,
	string[] arr_options,
	out int lCount
)

Parameters

smarc
Type: SystemString
Mnemonic record (can be multiple records -- so long as in proper mnemonic format)
arr_options
Type: SystemString
Array of options to configure the resource
lCount
Type: SystemInt32
Returns number of changes

Return Value

Type: String
updated string

Implements

MARC21_InterfaceAddField(String, String, Int32)
Remarks
Replaces the Add_Field and Add_Field_Stream functions (preferred) arr_options is a string array with the following values: arr_options[0]: ADDFIELD arr_optoins[1]: [Field]; example: 245 arr_options[2]: [Field_Data]; example: \\$aThis is a title. arr_options[3]: [Insert Option] 100 - insert before 101 - add if not present 105 - insert last 106 - add if present 108 - add if not duplicate arr_options[4]: [optional] -- match string when paired with add if not present place "/" around string to signify regular expressions example: /=245.{4}\$a[Tt]est/
See Also