Skip to content

Commit

Permalink
Merge pull request #35 from lcnetdev/v2.8.1-dev
Browse files Browse the repository at this point in the history
V2.8.1 dev
  • Loading branch information
kefo authored Dec 2, 2024
2 parents 5fb2723 + bd9ce30 commit 12f0703
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 8 deletions.
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
--- 2.8.1 2024/12/02

Patch release.

Changes include:

* Stop incorrect genre/form from populating obsolete 008 byte for monographs
* Refine XPath selection for 072 production


--- 2.8.0 2024/11/21

Changes for updated v2.8.0 specifications:
Expand Down
9 changes: 9 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# bibframe2marc release notes

## v2.8.1

Patch release. This still conforms with 2.8.0 specs, which can be found in the [spec](spec/) directory. Changes of note:

* Stop incorrect genre/form from populating obsolete 008 byte for monographs
* Refine XPath selection for 072 production

See the [NEWS](NEWS) file for full details of changes.

## v2.8.0

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:
Expand Down
2 changes: 2 additions & 0 deletions rules/01-001-008.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,10 @@
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2011026351' or
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2011026351'">g</xsl:when>
-->
<!--
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2014026049' or
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2014026049'">h</xsl:when>
-->
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2014026112' or
*/@rdf:about='http://id.loc.gov/authorities/genreForms/gf2014026112'">i</xsl:when>
<xsl:when test="@rdf:resource='http://id.loc.gov/authorities/genreForms/gf2011026438' or
Expand Down
2 changes: 1 addition & 1 deletion rules/03-050-088.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
</df>

<df tag="072">
<context xpath="bf:Work/bf:subject/bf:Topic[*[local-name()='code']]">
<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']]">
<ind1 default=" "/>
<ind2 default="7">
<switch>
Expand Down
2 changes: 1 addition & 1 deletion rules/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DLC bibframe2marc v2.8.0
DLC bibframe2marc v2.8.1
2 changes: 1 addition & 1 deletion rules/test/data/001-008/008-BK.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<bf:genreForm>
<bf:GenreForm rdf:about="http://id.loc.gov/authorities/genreForms/gf2014026339"/>
</bf:genreForm>
<bf:genreForm rdf:resource="http://id.loc.gov/authorities/genreForms/gf2014026049"/>
<bf:genreForm rdf:resource="http://id.loc.gov/authorities/genreForms/gf2014026039"/>
<bf:hasInstance rdf:resource="http://example.org/13600108#Instance"/>
<bf:supplementaryContent>
<bf:SupplementaryContent>
Expand Down
2 changes: 1 addition & 1 deletion rules/test/rules.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xslt-version="1.0">

<x:param name="pRecordId">test001</x:param>
<x:param name="vCurrentVersion">DLC bibframe2marc v2.8.0</x:param>
<x:param name="vCurrentVersion">DLC bibframe2marc v2.8.1</x:param>
<x:param name="pGenerationDatestamp">19700101</x:param>
<x:param name="pSourceRecordId">http://example.org/test-record</x:param>
<x:param name="pConversionAgency">DLC</x:param>
Expand Down
2 changes: 1 addition & 1 deletion rules/test/tests/01-001-008.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<x:expect label="BK 008/23 generated from bf:Instance/bf:carrier"
test="substring(marc:record/marc:controlfield[@tag='008'],24,1) = 's'"/>
<x:expect label="BK 008/24-27 generated from bf:Work/bf:genreForm or bf:Work/bf:supplementaryContent"
test="substring(marc:record/marc:controlfield[@tag='008'],25,4) = 'bh '"/>
test="substring(marc:record/marc:controlfield[@tag='008'],25,4) = 'bm '"/>
<x:expect label="BK 008/28 generated from bflc:governmentPubType with gov doc URI"
test="substring(marc:record/marc:controlfield[@tag='008'],29,1) = 'f'"/>
<x:expect label="BK 008/29 generated from bf:Work/bf:genreForm with conference URI"
Expand Down
2 changes: 1 addition & 1 deletion rules/test/tests/10-8XX.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<x:expect label="$q contains conversion agency"
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='q'] = 'DLC'"/>
<x:expect label="$u contains generation process URI"
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='u'] = 'https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.0'"/>
test="//marc:datafield[@tag='884'][1]/marc:subfield[@code='u'] = 'https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.1'"/>
</x:scenario>

</x:description>
4 changes: 2 additions & 2 deletions rules/test/tests/99-regression.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
<marc:subfield code="1">http://bibframe.example.org/13600108#Instance</marc:subfield>
</marc:datafield>
<marc:datafield tag="884" ind1=" " ind2=" ">
<marc:subfield code="a">DLC bibframe2marc v2.8.0 (Saxonica)</marc:subfield>
<marc:subfield code="a">DLC bibframe2marc v2.8.1 (Saxonica)</marc:subfield>
<marc:subfield code="g">19700101</marc:subfield>
<marc:subfield code="k">http://example.org/test-record</marc:subfield>
<marc:subfield code="q">DLC</marc:subfield>
<marc:subfield code="u">https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.0</marc:subfield>
<marc:subfield code="u">https://github.com/lcnetdev/bibframe2marc/releases/tag/v2.8.1</marc:subfield>
</marc:datafield>
</marc:record>
</x:expect>
Expand Down

0 comments on commit 12f0703

Please sign in to comment.