Metabib Display Field Seed Data

Bug #1727487 reported by Bill Erickson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Mike Rylander

Bug Description

As of EG version 3.0 we have a way to configure, extract, and store bib record display data directly in the database, AKA Metabib Display Fields (bug #1251394). To make use of this feature for new development we need a base set of display field configuration entries.

At minimum, the first round of seed data should be sufficient to replace IDL class "mvr" (Virtual Record) and IDL class "rsr" (reporter.simple_record), since these are the most commonly used means of extracting bib record display data. This means creating field data for (at least) the following fields:

author*
edition
isbn*
issn
online_loc
physical_description
pubdate
publisher
series
subject*
synopsis
tcn
title*
toc
types_of_resource

* Fields that already have MDF seed data, but likely need review.

We can of course add additional fields.

Also, either as part of this bug or a future bug, we need MDF entries sufficient to replace much of the XPATH extraction that occurs in the TPAC misc_util.tt2 file.

Implementation of each field boils down to:

1. Select an existing config.metabib_field to use as the basis for the display field. If necessary, add a new config.metabib_field.

2. Add supplementary XPATH to the the display_xpath where needed to massage the data into a display-friendly format.

Note, this XPATH is applied to the data extracted from the base xpath for the CMF. It's not standalone XPATH. If the base XPATH produces unusable display data and cannot be modified w/o breaking existing functionality, a new config.metabib_field will be needed.

3. Add a linking entry to config.display_field_map.
4. Add a matching <field/> entry to IDL class "mwde" (wide display entry).
5. Reingest display fields.

I'm happy to manage the work of getting stuff into the SQL upgrade script. Volunteers for assisting with the field definitions and XPATH appreciated.

Revision history for this message
Bill Erickson (berick) wrote :

Putting together a rough cut of the upgrade script now.

Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Fleshing stuff out here:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1727487-display-field-seed-data

Additional considerations:

Some of the fields mentioned in the bug description may be better retrieved from existing data, e.g pubdate (from metabib.record_attr).

Some of the fields may be require more structure than a flat display field makes sense for, e.g. "online_loc".

Revision history for this message
Bill Erickson (berick) wrote :

Branch contains enough fields (and them some) to replace reporter.simple_record and MVR (minus "online_loc"). Will pause here pending feedback.

I also started a parallel branch for migrating use of reporter.simple_record or MVR in the browser client to display fields.

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1727487-display-field-seed-data-UI

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
Changed in evergreen:
assignee: nobody → Mike Rylander (mrylander)
Revision history for this message
Mike Rylander (mrylander) wrote :

Bill, I've folded all of this into the branch that will soon be posted on bug 1744385, as the contents here are required for that work. How (if) would you like to dispose of this bug?

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.