Skip to content

Commit 12f0703

Browse files
authored
Merge pull request #35 from lcnetdev/v2.8.1-dev
V2.8.1 dev
2 parents 5fb2723 + bd9ce30 commit 12f0703

10 files changed

Lines changed: 29 additions & 8 deletions

File tree

NEWS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
--- 2.8.1 2024/12/02
2+
3+
Patch release.
4+
5+
Changes include:
6+
7+
* Stop incorrect genre/form from populating obsolete 008 byte for monographs
8+
* Refine XPath selection for 072 production
9+
10+
111
--- 2.8.0 2024/11/21
212

313
Changes for updated v2.8.0 specifications:

release-notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# bibframe2marc release notes
22

3+
## v2.8.1
4+
5+
Patch release. This still conforms with 2.8.0 specs, which can be found in the [spec](spec/) directory. Changes of note:
6+
7+
* Stop incorrect genre/form from populating obsolete 008 byte for monographs
8+
* Refine XPath selection for 072 production
9+
10+
See the [NEWS](NEWS) file for full details of changes.
11+
312
## v2.8.0
413

514
Conversion updates based on specifications v2.8. See the Library of Congress’s [BIBFRAME site](https://www.loc.gov/bibframe/) for more details. Specifications are included in the distribution in the [spec](spec/) directory. Changes of note:

rules/01-001-008.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,10 @@
12491249
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2011026351' or
12501250
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2011026351'">g</xsl:when>
12511251
-->
1252+
<!--
12521253
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2014026049' or
12531254
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2014026049'">h</xsl:when>
1255+
-->
12541256
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2014026112' or
12551257
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2014026112'">i</xsl:when>
12561258
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2011026438' or

rules/03-050-088.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
</df>
310310

311311
<df tag="072">
312-
<context xpath="bf:Work/bf:subject/bf:Topic[*[local-name()='code']]">
312+
<context xpath="bf:Work/bf:subject/bf:Topic[bf:code[not(@rdf:datatype) or @rdf:datatype!='http://id.loc.gov/datatypes/codes/gac'] or madsrdf:code[not(@rdf:datatype) or @rdf:datatype!='http://id.loc.gov/datatypes/codes/gac']]">
313313
<ind1 default=" "/>
314314
<ind2 default="7">
315315
<switch>

rules/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DLC bibframe2marc v2.8.0
1+
DLC bibframe2marc v2.8.1

rules/test/data/001-008/008-BK.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<bf:genreForm>
2828
<bf:GenreForm rdf:about="http://id.loc.gov/authorities/genreForms/gf2014026339"/>
2929
</bf:genreForm>
30-
<bf:genreForm rdf:resource="http://id.loc.gov/authorities/genreForms/gf2014026049"/>
30+
<bf:genreForm rdf:resource="http://id.loc.gov/authorities/genreForms/gf2014026039"/>
3131
<bf:hasInstance rdf:resource="http://example.org/13600108#Instance"/>
3232
<bf:supplementaryContent>
3333
<bf:SupplementaryContent>

rules/test/rules.xspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xslt-version="1.0">
77

88
<x:param name="pRecordId">test001</x:param>
9-
<x:param name="vCurrentVersion">DLC bibframe2marc v2.8.0</x:param>
9+
<x:param name="vCurrentVersion">DLC bibframe2marc v2.8.1</x:param>
1010
<x:param name="pGenerationDatestamp">19700101</x:param>
1111
<x:param name="pSourceRecordId">http://example.org/test-record</x:param>
1212
<x:param name="pConversionAgency">DLC</x:param>

rules/test/tests/01-001-008.xspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
<x:expect label="BK 008/23 generated from bf:Instance/bf:carrier"
219219
test="substring(marc:record/marc:controlfield[@tag='008'],24,1) = 's'"/>
220220
<x:expect label="BK 008/24-27 generated from bf:Work/bf:genreForm or bf:Work/bf:supplementaryContent"
221-
test="substring(marc:record/marc:controlfield[@tag='008'],25,4) = 'bh '"/>
221+
test="substring(marc:record/marc:controlfield[@tag='008'],25,4) = 'bm '"/>
222222
<x:expect label="BK 008/28 generated from bflc:governmentPubType with gov doc URI"
223223
test="substring(marc:record/marc:controlfield[@tag='008'],29,1) = 'f'"/>
224224
<x:expect label="BK 008/29 generated from bf:Work/bf:genreForm with conference URI"

rules/test/tests/10-8XX.xspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
<x:expect label="$q contains conversion agency"
132132
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='q'] = 'DLC'"/>
133133
<x:expect label="$u contains generation process URI"
134-
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='u'] = 'https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.0'"/>
134+
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='u'] = 'https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.1'"/>
135135
</x:scenario>
136136

137137
</x:description>

rules/test/tests/99-regression.xspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@
102102
<marc:subfield code="1">http://bibframe.example.org/13600108#Instance</marc:subfield>
103103
</marc:datafield>
104104
<marc:datafield tag="884" ind1=" " ind2=" ">
105-
<marc:subfield code="a">DLC bibframe2marc v2.8.0 (Saxonica)</marc:subfield>
105+
<marc:subfield code="a">DLC bibframe2marc v2.8.1 (Saxonica)</marc:subfield>
106106
<marc:subfield code="g">19700101</marc:subfield>
107107
<marc:subfield code="k">http://example.org/test-record</marc:subfield>
108108
<marc:subfield code="q">DLC</marc:subfield>
109-
<marc:subfield code="u">https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.0</marc:subfield>
109+
<marc:subfield code="u">https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.1</marc:subfield>
110110
</marc:datafield>
111111
</marc:record>
112112
</x:expect>

0 commit comments

Comments
 (0)