<?xml version="1.0" encoding="UTF-8"?>
<!--
	Valid ONIX 3.0 using every construct the library rewrites on its way to 3.1, one per
	numbered CONVERSION comment. The point of this one is the rewriting rather than the
	record: `Onix30FixtureSpec` pins what the validator reports for each conversion, and
	`Onix30RoundTripTest` that what the unmarshaller produces needs none of them.

	For an ordinary 3.0 record that 3.1 rejects, see `3.0-message-3.0-only`.

	The people, imprints and titles are invented.
-->
<ONIXMessage release="3.0" xmlns="http://ns.editeur.org/onix/3.0/reference">
	<Header>
		<Sender>
			<SenderName>Bumblecrag Bookinfo</SenderName>
		</Sender>
		<SentDateTime>20240101</SentDateTime>
	</Header>
	<Product>
		<RecordReference>example.bumblecrag-bookinfo.onix.9788205511033</RecordReference>
		<NotificationType>03</NotificationType>
		<ProductIdentifier>
			<ProductIDType>03</ProductIDType>
			<IDValue>9788205511033</IDValue>
		</ProductIdentifier>
		<ProductIdentifier>
			<ProductIDType>15</ProductIDType>
			<IDValue>9788205511033</IDValue>
		</ProductIdentifier>
		<DescriptiveDetail>
			<ProductComposition>00</ProductComposition>
			<ProductForm>BC</ProductForm>
			<TitleDetail>
				<TitleType>01</TitleType>
				<TitleElement>
					<TitleElementLevel>01</TitleElementLevel>
					<!-- Deprecated in 3.1 but still valid: reported as a warning, not converted -->
					<TitleText>The Bitter Beacon</TitleText>
				</TitleElement>
			</TitleDetail>
			<Contributor>
				<ContributorRole>A01</ContributorRole>
				<NamesBeforeKey>Adelaide</NamesBeforeKey>
				<KeyNames>Cloverbottom</KeyNames>
				<!-- CONVERSION 1: Gender was removed in 3.1 with no replacement; dropped -->
				<Gender>f</Gender>
			</Contributor>
			<!-- CONVERSION 2: Conference becomes Event, child for child; the theme keeps its words and loses its markup -->
			<Conference>
				<ConferenceRole>02</ConferenceRole>
				<ConferenceName>Bumblecrag Book Fair</ConferenceName>
				<ConferenceAcronym>BBF</ConferenceAcronym>
				<ConferenceNumber>75</ConferenceNumber>
				<ConferenceTheme>Tides <i>and</i> ledgers</ConferenceTheme>
				<ConferenceDate>202310</ConferenceDate>
				<ConferencePlace>Bumblecrag</ConferencePlace>
				<ConferenceSponsor>
					<ConferenceSponsorIdentifier>
						<ConferenceSponsorIDType>01</ConferenceSponsorIDType>
						<IDTypeName>Bumblecrag fair register</IDTypeName>
						<IDValue>42</IDValue>
					</ConferenceSponsorIdentifier>
					<CorporateName>Cobblewaite Booksellers Guild</CorporateName>
				</ConferenceSponsor>
				<Website>
					<WebsiteLink>https://www.bumblecrag-book-fair.example</WebsiteLink>
				</Website>
			</Conference>
			<!-- CONVERSION 3: a Conference without ConferenceRole is given the EventRole 3.1 requires -->
			<Conference>
				<ConferenceName>Cloverbottom Book Days</ConferenceName>
			</Conference>
			<Language>
				<LanguageRole>01</LanguageRole>
				<LanguageCode>eng</LanguageCode>
			</Language>
			<!-- CONVERSION 4: AudienceCode becomes an Audience composite with AudienceCodeType 01 -->
			<AudienceCode>01</AudienceCode>
		</DescriptiveDetail>
		<CollateralDetail>
			<TextContent>
				<TextType>03</TextType>
				<ContentAudience>00</ContentAudience>
				<Text>The first of the Quiet Coast novels.</Text>
				<ContentDate>
					<ContentDateRole>17</ContentDateRole>
					<!-- CONVERSION 5: DateFormat in a ContentDate becomes the dateformat attribute on Date -->
					<DateFormat>05</DateFormat>
					<Date>2024</Date>
				</ContentDate>
			</TextContent>
		</CollateralDetail>
		<PublishingDetail>
			<Publisher>
				<PublishingRole>01</PublishingRole>
				<PublisherName>Velvet Publishing</PublisherName>
			</Publisher>
			<PublishingStatus>04</PublishingStatus>
			<PublishingDate>
				<PublishingDateRole>01</PublishingDateRole>
				<!-- CONVERSION 6: DateFormat in a PublishingDate -->
				<DateFormat>00</DateFormat>
				<Date>20060807</Date>
			</PublishingDate>
			<SalesRights>
				<SalesRightsType>01</SalesRightsType>
				<Territory>
					<CountriesIncluded>GB IE</CountriesIncluded>
				</Territory>
			</SalesRights>
			<!-- CONVERSION 7: SalesRestriction directly in PublishingDetail, which 3.1 allows only inside SalesRights and Market; dropped -->
			<SalesRestriction>
				<SalesRestrictionType>04</SalesRestrictionType>
			</SalesRestriction>
		</PublishingDetail>
		<ProductSupply>
			<MarketPublishingDetail>
				<MarketPublishingStatus>04</MarketPublishingStatus>
				<MarketDate>
					<MarketDateRole>01</MarketDateRole>
					<!-- CONVERSION 8: DateFormat in a MarketDate -->
					<DateFormat>00</DateFormat>
					<Date>20060807</Date>
				</MarketDate>
				<!-- CONVERSION 9: PromotionContact was removed in 3.1 with no replacement; dropped -->
				<PromotionContact>Constance Crumplehorn</PromotionContact>
			</MarketPublishingDetail>
			<SupplyDetail>
				<Supplier>
					<SupplierRole>01</SupplierRole>
					<SupplierName>Velvet Publishing</SupplierName>
				</Supplier>
				<ProductAvailability>21</ProductAvailability>
				<Price>
					<PriceType>02</PriceType>
					<PriceAmount>7.99</PriceAmount>
					<CurrencyCode>GBP</CurrencyCode>
					<!-- CONVERSION 10: CurrencyZone was removed in 3.1 with no replacement; dropped -->
					<CurrencyZone>EUR</CurrencyZone>
					<PriceDate>
						<PriceDateRole>14</PriceDateRole>
						<!-- CONVERSION 11: DateFormat in a PriceDate -->
						<DateFormat>05</DateFormat>
						<Date>2024</Date>
					</PriceDate>
				</Price>
				<!-- CONVERSION 12: Reissue was removed in 3.1 with no replacement; dropped -->
				<Reissue>
					<ReissueDate>20240101</ReissueDate>
				</Reissue>
			</SupplyDetail>
		</ProductSupply>
	</Product>
</ONIXMessage>
