Skip to content

Commit

Permalink
contrib: fix of 044 being repeatable
Browse files Browse the repository at this point in the history
* FIX Removes `@utils.for_each_value decorator` from conversion
  function for MARC21 field 044, which is not repeatable.
  (closes #181)

Signed-off-by: Øystein Blixhavn <oystein@blixhavn.no>
  • Loading branch information
blixhavn authored and jirikuncar committed Oct 3, 2016
1 parent aca152a commit 9ae0fd8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion dojson/contrib/marc21/fields/bd01x09x.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,6 @@ def geographic_area_code(self, key, value):


@marc21.over('country_of_publishing_producing_entity_code', '^044__')
@utils.for_each_value
@utils.filter_values
def country_of_publishing_producing_entity_code(self, key, value):
"""Country of Publishing/Producing Entity Code."""
Expand Down
2 changes: 0 additions & 2 deletions tests/data/test_8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
<subfield code="a">gw</subfield>
<subfield code="a">fr</subfield>
<subfield code="a">au</subfield>
</datafield>
<datafield tag="044" ind1=" " ind2=" ">
<subfield code="a">xxu</subfield>
<subfield code="c">usa</subfield>
</datafield>
Expand Down

0 comments on commit 9ae0fd8

Please sign in to comment.