Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
catalogue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labs-team
catalogue
Commits
3dd87553
Commit
3dd87553
authored
6 years ago
by
gabriele-h
Browse files
Options
Downloads
Patches
Plain Diff
Correct comment for patterns
parent
bbab41fa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
marc_tools/marc_extractor.py
+1
-2
1 addition, 2 deletions
marc_tools/marc_extractor.py
with
1 addition
and
2 deletions
marc_tools/marc_extractor.py
+
1
−
2
View file @
3dd87553
...
@@ -29,9 +29,8 @@ class SelectorPredicate:
...
@@ -29,9 +29,8 @@ class SelectorPredicate:
class
SingleCommand
(
ParseCommand
):
class
SingleCommand
(
ParseCommand
):
# Testing the input of the patterns, we can either have:
# Testing the input of the patterns, we can either have:
# * tag only
# * tag only
(if it is a controlfield, like 009)
# * tag with inds only
# * tag with inds only
# * tag with subfield only or
# * tag with both inds and subfield
# * tag with both inds and subfield
# Indicators must always be given in pairs, blank-separated
# Indicators must always be given in pairs, blank-separated
pat_tag
=
re
.
compile
(
r
"
^(\d{3}|AVA)( ([0-9_*]) ([0-9_*]))?
"
pat_tag
=
re
.
compile
(
r
"
^(\d{3}|AVA)( ([0-9_*]) ([0-9_*]))?
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment