Commit d943e194 authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

classification mapping complete

parent 40dcaf82
......@@ -224,54 +224,116 @@
<xsl:with-param name="language" select="'en'"/>
<xsl:with-param name="value" select="text()"/>
</xsl:call-template>
<xsl:choose>
<xsl:when test="text() = 'Political institutions and public administration (General)'">
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.identifier.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10500'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.subject.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10500'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.identifier.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'40200'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.subject.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'40200'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="starts-with(text(), 'Political science')">
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.identifier.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10500'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.subject.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10500'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="text() = 'Political theory'">
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.identifier.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10501'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.subject.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'10501'"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
<xsl:variable name=" texti">
<xsl:value-of select="text()"/>
</xsl:variable>
<xsl:variable name="map">
<classi key="Academies and learned societies">10207</classi>
<classi key="Anthropology">10400</classi>
<classi key="Bibliography. Library science. Information resources">1080501</classi>
<classi key="Christian Denominations">30100</classi>
<classi key="Christianity">30100</classi>
<classi key="Cities. Urban geography">10213</classi>
<classi key="Colonies and colonization. Emigration and immigration. International migration">10304</classi>
<classi key="Communication. Mass media">1080400</classi>
<classi key="Communities. Classes. Races">10201</classi>
<classi key="Computational linguistics. Natural language processing">50200</classi>
<classi key="Consciousness. Cognition">10703</classi>
<classi key="Criminal law and procedure">10214</classi>
<classi key="Diplomatics. Archives. Seals">10505</classi>
<classi key="Ecology">20900</classi>
<classi key="Economic growth, development, planning">1090301</classi>
<classi key="Economic history and conditions">10901</classi>
<classi key="Economic theory. Demography">1090301</classi>
<classi key="Economics as a science">10901</classi>
<classi key="Education">10601</classi>
<classi key="Education (General)">10601</classi>
<classi key="Environmental law">40101</classi>
<classi key="Environmental pollution">20900</classi>
<classi key="Environmental protection">20900</classi>
<classi key="Environmental sciences">20900</classi>
<classi key="Ethics">30100</classi>
<classi key="Ethnology. Social and cultural anthropology">10400</classi>
<classi key="Folklore">10216</classi>
<classi key="General Works">10204</classi>
<classi key="History">30301</classi>
<classi key="History (General)">30301</classi>
<classi key="History (General) and history of Europe">30301</classi>
<classi key="History America">30301</classi>
<classi key="History of Africa">30301</classi>
<classi key="History of Asia">30301</classi>
<classi key="History of Central Europe">30301</classi>
<classi key="History of Civilization">10400</classi>
<classi key="History of Eastern Europe">30301</classi>
<classi key="History of France">30301</classi>
<classi key="History of Germany">30301</classi>
<classi key="History of Great Britain">30301</classi>
<classi key="History of Italy">30301</classi>
<classi key="History of Law">30301</classi>
<classi key="History of Northern Europe. Scandinavia">30301</classi>
<classi key="History of Oceania (South Seas)">30301</classi>
<classi key="History of Russia. Soviet Union. Former Soviet Republics">30301</classi>
<classi key="History of Spain">30301</classi>
<classi key="History of education">10601</classi>
<classi key="History of the Greco-Roman World">30301</classi>
<classi key="Human ecology. Anthropogeography">20900</classi>
<classi key="Information resources (General)">1080501</classi>
<classi key="International relations">10505</classi>
<classi key="Islam. Bahai Faith. Theosophy, etc.">30100</classi>
<classi key="Journalism. The periodical press, etc.">1080406</classi>
<classi key="Judaism">30100</classi>
<classi key="Jurisprudence. Philosophy and theory of law">40101</classi>
<classi key="Labor in politics. Political activity of the working class">10204</classi>
<classi key="Labor policy. Labor and the state">10204</classi>
<classi key="Labor. Work. Working class">10205</classi>
<classi key="Latin America. Spanish America">10203</classi>
<classi key="Law">40101</classi>
<classi key="Law in general. Comparative and uniform law. Jurisprudence">40101</classi>
<classi key="Law of Europe">40101</classi>
<classi key="Law of nations">40101</classi>
<classi key="Manners and customs (General)">10216</classi>
<classi key="Men">20200</classi>
<classi key="Philosophy (General)">30100</classi>
<classi key="Philosophy. Psychology. Religion">30100</classi>
<classi key="Political institutions and public administration (General)">10501</classi>
<classi key="Political science">10501</classi>
<classi key="Political science (General)">10501</classi>
<classi key="Political theory">10501</classi>
<classi key="Practical Theology">30100</classi>
<classi key="Psychology">10701</classi>
<classi key="Public finance">1090303</classi>
<classi key="Religion (General)">30100</classi>
<classi key="Religions. Mythology. Rationalism">30100</classi>
<classi key="Science">10220</classi>
<classi key="Science (General)">10220</classi>
<classi key="Social Sciences">10201</classi>
<classi key="Social history and conditions. Social problems. Social reform">10201</classi>
<classi key="Social legislation">40101</classi>
<classi key="Social pathology. Social and public welfare. Criminology">206000</classi>
<classi key="Social sciences (General)">10101</classi>
<classi key="Socialism. Communism. Anarchism">10501</classi>
<classi key="Sociology (General)">10201</classi>
<classi key="Special aspects of education">10616</classi>
<classi key="Statistics">10105</classi>
<classi key="The family. Marriage. Woman">10209</classi>
<classi key="Theory and practice of education">10601</classi>
<classi key="Therapeutics. Psychotherapy">10708</classi>
<classi key="Transportation and communications">20700</classi>
<classi key="United States">10203</classi>
<classi key="Women. Feminism">20200</classi>
</xsl:variable>
<xsl:if test="string-length($map/classi[@key=$texti]) > 0">
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.subject.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="$map/classi[@key=$texti]"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.identifier.classoz'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="$map/classi[@key=$texti]"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="marcxml:datafield[@tag='653']/child::node()[@code='a']">
<xsl:call-template name="new-metadatum">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment