---
name: "Catmandu::Fix::Condition::marc_has_many"
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_many"
---

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

Test if a MARC has more than one (sub)field

## NAME

Catmandu::Fix::Condition::marc\_has\_many - Test if a MARC has more than one (sub)field

## SYNOPSIS

```
   # marc_has_many(MARC_PATH)
   if marc_has_many('245')
        add_field('error.$append','more than one 245!')
   end
```

## DESCRIPTION

Evaluate the enclosing fixes only if the MARC has more than one (sub)field.

## METHODS

### marc\_has\_many(MARC\_PATH)

Evaluates to true when the MARC has more than one (sub)field, false otherwise.

## SEE ALSO

Catmandu::Fix::marc\_has
