(32, 'series', 'browse', oils_i18n_gettext(32, 'Series Title (Browse)', 'cmf', 'label'), 'mods32', $$//mods32:mods/mods32:relatedItem[@type="series"]/mods32:titleInfo[@type="nfi"]$$, FALSE, '//@xlink:href', TRUE, $$*[local-name() != "nonSort"]$$ );
INSERT INTO config.metabib_field ( id, field_class, name, label, format, xpath, browse_field, facet_field, facet_xpath, joiner ) VALUES
- (33, 'identifier', 'genre', oils_i18n_gettext(33, 'Genre', 'cmf', 'label'), 'marcxml', $$//marc:datafield[@tag='655' or @tag='659']$$, FALSE, TRUE, $$//*[local-name()='subfield' and contains('abvxyz',@code)]$$, ' -- ' ); -- /* to fool vim */;
+ (33, 'identifier', 'genre', oils_i18n_gettext(33, 'Genre', 'cmf', 'label'), 'marcxml', $$//marc:datafield[@tag='655']$$, FALSE, TRUE, $$//*[local-name()='subfield' and contains('abvxyz',@code)]$$, ' -- ' ); -- /* to fool vim */;
UPDATE config.metabib_field SET joiner = ' -- ' WHERE field_class = 'subject' AND name NOT IN ('name', 'complete');
BEGIN;
INSERT INTO config.metabib_field ( id, field_class, name, label, format, xpath, browse_field, facet_field, facet_xpath, joiner ) VALUES
- (33, 'identifier', 'genre', oils_i18n_gettext(33, 'Genre', 'cmf', 'label'), 'marcxml', $$//marc:datafield[@tag='655' or @tag='659']$$, FALSE, TRUE, $$//*[local-name()='subfield' and contains('abvxyz',@code)]$$, ' -- ' ); -- /* to fool vim */;
+ (33, 'identifier', 'genre', oils_i18n_gettext(33, 'Genre', 'cmf', 'label'), 'marcxml', $$//marc:datafield[@tag='655']$$, FALSE, TRUE, $$//*[local-name()='subfield' and contains('abvxyz',@code)]$$, ' -- ' ); -- /* to fool vim */;
INSERT INTO config.metabib_field_index_norm_map (field,norm)
SELECT m.id,
\qecho
\qecho SELECT metabib.reingest_metabib_field_entries(record, FALSE, TRUE, FALSE)
\qecho FROM metabib.real_full_rec
-\qecho WHERE tag IN (''''655'''', ''''659'''')
+\qecho WHERE tag IN (''''655'''')
\qecho GROUP BY record;
\qecho
facet.display = [
{facet_class => 'author', facet_order => ['personal', 'corporate']},
{facet_class => 'subject', facet_order => ['topic']},
+ {facet_class => 'identifier', facet_order => ['genre']},
{facet_class => 'series', facet_order => ['seriestitle']},
{facet_class => 'subject', facet_order => ['name', 'geographic']}
];
label => l('Genre: '),
facet => 'identifier|genre',
joiner => ' -- ',
- xpath => '//*[@tag="655" or @tag="659"]',
+ xpath => '//*[@tag="655"]',
subfields => '[abvxyz]'
}, {
label => l('Topic Heading: '),
New Form/Genre Search and Facet Index
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-The stock indexing definitions now include a search
-and facet index on the form/genre field (tag 655)
-and a commonly-used local genre field (659). This allows
-genre links in the public catalog record display to retrieve
-works in the same genre. A partial reingest during upgrade
-is required to use this index.
+The stock indexing definitions now include a search and facet index on the
+form/genre field (tag 655). This allows genre links in the public catalog
+record display to retrieve works in the same genre. The public catalog genre
+links will no longer display content from the 659 MARC fields.
+
+The genre facet will also display by default in the public catalog. A partial
+reingest during upgrade is required to use this index.