---
name: "Catmandu::Fix::Condition::marc_has"
section: "3pm"
platform: "linux"
package: "libcatmandu-marc-perl"
version: "1.320-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::Condition::marc_has"
---

# Catmandu::Fix::Condition::marc\_has(3pm)

Test if a MARC (sub)field exists

## NAME

Catmandu::Fix::Condition::marc\_has - Test if a MARC (sub)field exists

## SYNOPSIS

```
   # marc_has(MARC_PATH)
   unless marc_has('245')
        add_field('error.$append','no 245 value!')
   end
```

## DESCRIPTION

Evaluate the enclosing fixes only if the MARC (sub)field exists.

## METHODS

### marc\_has(MARC\_PATH)

Evaluates to true when the MARC\_PATH values exists, false otherwise.

## SEE ALSO

Catmandu::Fix::marc\_has\_many
