INSERT INTO config.metabib_field (id, field_class, name,
label, xpath, display_field, search_field, browse_field)
VALUES (
- 38, 'keyword', 'edition',
+ 38, 'identifier', 'edition',
oils_i18n_gettext(38, 'Edition', 'cmf', 'label'),
$$//mods33:mods/mods33:originInfo//mods33:edition[1]$$,
TRUE, TRUE, FALSE
INSERT INTO config.metabib_field (id, field_class, name,
label, xpath, display_field, search_field, browse_field)
VALUES (
- 40, 'keyword', 'publisher',
+ 40, 'identifier', 'publisher',
oils_i18n_gettext(40, 'Publisher', 'cmf', 'label'),
$$//mods33:mods/mods33:originInfo//mods33:publisher[1]$$,
TRUE, TRUE, FALSE
INSERT INTO config.metabib_field (id, field_class, name, format,
label, xpath, display_xpath, display_field, search_field, browse_field)
VALUES (
- 52, 'keyword', 'origin_info', 'marcxml',
+ 52, 'identifier', 'origin_info', 'marcxml',
oils_i18n_gettext(52, 'Origin Info', 'cmf', 'label'),
$$//*[@tag='260']$$,
$$//*[local-name()='subfield' and contains('abc',@code)]$$,
- TRUE, TRUE, FALSE
+ TRUE, FALSE, FALSE
);
INSERT INTO config.metabib_field (id, field_class, name, format, weight,
45
FROM config.metabib_field
WHERE search_field
- AND id NOT IN (15, 45)
+ AND id NOT IN (15, 45, 38, 40)
AND id NOT IN (SELECT real FROM config.metabib_field_virtual_map);
UPDATE config.metabib_field_virtual_map SET weight = -1 WHERE real = 39;
<xsl:with-param name="chopString">
<xsl:value-of select="$title"/>
</xsl:with-param>
+ <xsl:with-param name="punctuation">
+ <xsl:text>,;/ </xsl:text>
+ </xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--3.2 change tmee additional note fields-->
+ <xsl:for-each select="marc:datafield[@tag=502]">
+ <note type="thesis">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
+ <xsl:for-each select="marc:datafield[@tag=504]">
+ <note type="bibliography">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
+ <xsl:for-each select="marc:datafield[@tag=508]">
+ <note type="creation/production credits">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
<xsl:for-each select="marc:datafield[@tag=506]">
<note type="restrictions">
<xsl:call-template name="uri"></xsl:call-template>
-
-
- <xsl:for-each select="marc:datafield[@tag=501 or @tag=502 or @tag=504 or @tag=507 or @tag=508 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">
+ <xsl:for-each select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">
<note>
<xsl:call-template name="uri"></xsl:call-template>
<xsl:variable name="str">
<xsl:with-param name="chopString">
<xsl:value-of select="$title"/>
</xsl:with-param>
+ <xsl:with-param name="punctuation">
+ <xsl:text>,;/ </xsl:text>
+ </xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--3.2 change tmee additional note fields-->
+ <xsl:for-each select="marc:datafield[@tag=502]">
+ <note type="thesis">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
+ <xsl:for-each select="marc:datafield[@tag=504]">
+ <note type="bibliography">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
+ <xsl:for-each select="marc:datafield[@tag=508]">
+ <note type="creation/production credits">
+ <xsl:call-template name="uri"/>
+ <xsl:variable name="str">
+ <xsl:for-each select="marc:subfield[@code!='6' or @code!='8']">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
+ </note>
+ </xsl:for-each>
+
<xsl:for-each select="marc:datafield[@tag=506]">
<note type="restrictions">
<xsl:call-template name="uri"/>
</xsl:for-each>
<xsl:for-each
- select="marc:datafield[@tag=501 or @tag=502 or @tag=504 or @tag=507 or @tag=508 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">
+ select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">
<note>
<xsl:call-template name="uri"/>
<xsl:variable name="str">
INSERT INTO config.metabib_field (id, field_class, name,
label, xpath, display_field, search_field, browse_field)
VALUES (
- 38, 'keyword', 'edition',
+ 38, 'identifier', 'edition',
oils_i18n_gettext(38, 'Edition', 'cmf', 'label'),
$$//mods33:mods/mods33:originInfo//mods33:edition[1]$$,
TRUE, TRUE, FALSE
INSERT INTO config.metabib_field (id, field_class, name,
label, xpath, display_field, search_field, browse_field)
VALUES (
- 40, 'keyword', 'publisher',
+ 40, 'identifier', 'publisher',
oils_i18n_gettext(40, 'Publisher', 'cmf', 'label'),
$$//mods33:mods/mods33:originInfo//mods33:publisher[1]$$,
TRUE, TRUE, FALSE
INSERT INTO config.metabib_field (id, field_class, name, format,
label, xpath, display_xpath, display_field, search_field, browse_field)
VALUES (
- 52, 'keyword', 'origin_info', 'marcxml',
+ 52, 'identifier', 'origin_info', 'marcxml',
oils_i18n_gettext(52, 'Origin Info', 'cmf', 'label'),
$$//*[@tag='260']$$,
$$//*[local-name()='subfield' and contains('abc',@code)]$$,
- TRUE, TRUE, FALSE
+ TRUE, FALSE, FALSE
);
</xsl:for-each>
<xsl:for-each
- select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">+
+ select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]">
<note>
<xsl:call-template name="uri"/>
<xsl:variable name="str">
45
FROM config.metabib_field
WHERE search_field
- AND id NOT IN (15, 45)
+ AND id NOT IN (15, 45, 38, 40) -- keyword|keyword, self, edition, publisher
AND id NOT IN (SELECT real FROM config.metabib_field_virtual_map);
UPDATE config.metabib_field SET xpath=$$//mods32:mods/mods32:subject[not(descendant::mods32:geographicCode)]$$ WHERE id = 16;