Add further tests for sn, sl, nd abbreviations #7767
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #
Using test data supplied by @tfmorris in #7652 (comment)
Technical
The original test-publish-sn-sl.mrc test record has the place
$a
and publisher name$b
swapped. I "corrected" it in the test expectations. I should make it case-insensitive, but I don't think we should have the swapped fields in the test example. I was planning to swap them back.Original MARC:
I plan to change the 260 line to:
260 $a [s.l.] : $b [S.n.], $c [between 1900 and 1909]
So it becomes a correct field inupt, but case insensitive, case.
The other test case skips the date entirely, but that seems to be existing behaviour. I think it's checking for a date in
008
, but I'll need to figure out exactly how this works. The current behaviour of not adding a date at all (because008
is empty) doesn't seem entirely wrong. Maybe no date is ok in this case?Testing
Screenshot
Stakeholders
@tfmorris