Skip to content

Commit

Permalink
move CI from Travis to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco authored and jrcastro2 committed Jun 21, 2024
1 parent 0eb9864 commit f1b1913
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cds_dojson/marc21/fields/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@

from __future__ import absolute_import, print_function

from dojson.utils import IgnoreKey, filter_values, for_each_value, \
force_list, ignore_value
from dojson.utils import (IgnoreKey, filter_values, for_each_value, force_list,
ignore_value)

from ..models.base import model
from .utils import build_contributor, build_contributor_from_508


@model.over('recid', '^001')
Expand Down
2 changes: 1 addition & 1 deletion cds_dojson/marc21/fields/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _extract_json_ids(info, provenence='source'):
'AUTHOR|(CDS)': 'CDS',
'AUTHOR|(SzGeCERN)': 'CERN'
}
regex = re.compile(r'(AUTHOR\|\((CDS|INSPIRE|SzGeCERN)\))(.*)')
regex = re.compile(r'((AUTHOR\|\((CDS|INSPIRE)\))|(\(SzGeCERN\)))(.*)')
ids = []
author_ids = force_list(info.get('0', ''))
for author_id in author_ids:
Expand Down
2 changes: 1 addition & 1 deletion cds_dojson/marc21/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""Utilities for converting MARC21."""

from dojson.contrib.marc21.utils import MARC21_DTD
from dojson.contrib.marc21.utils import MARC21_DTD, split_stream
from lxml import etree
from six import StringIO, binary_type, text_type

Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import json
import os

import pytest
from dojson.utils import filter_values

Expand Down

0 comments on commit f1b1913

Please sign in to comment.