Skip to Main Content

User Interfaces Standing Committee

Working site for the UISC

Custom Author Display Field

Custom Author Display Field

Objective: Replace the author display in search results and the top of the record with the 245 $c field (statement of responsibility).

Before:

After:

How to accomplish this:

  1. Create a local display field for MARC 245 $c
  2. In the discovery view, replace the creator and contributor fields with the new local field
Normalization rule for lds11:

rule "Primo VE - Lds11"
    when
        MARC is "245"."c"
    then
        create pnx."display"."lds11" with MARC "245"."c"
end

Detailed instructions:

Part 1: Create a local display field for MARC 245 $c
  1. Go to Discovery > Mange Display and Local Fields.
  2. Choose Add field > Add local field
  3. Under Field to edit, choose the local field you are defining; you can choose one between 2 and 50. In this example, I chose local_field_11.
  4. Type what you want to call the field in the Display label box.
  5. In the MARC21 normalization rule for search and facet section, select the three dots and choose Edit.
  6. Replace the code with the normalization rule (note: the lds number must match your field number):

    Normalization rule for lds11:

rule "Primo VE - Lds11"
    when
        MARC is "245"."c"
    then
        create pnx."display"."lds11" with MARC "245"."c"
end

  1. Click Save for the norm rule and Save for the field.
  2. On the page that lists the fields (which you should be returned to), select Apply rules.
Part 2: In the discovery view, replace the creator and contributor fields with the new local field.
  1. Go to Discovery > Configure Views. Use the three dots to choose Edit for your view.
  2. Choose the Brief Records Display tab. The default fields look like this:
    Display fields
  3. In this section (Display fields) choose Customize.
  4. On the next screen, choose the three dots at the end of the Creator ; Contributor row and select Edit.
  5. Use the three dots to delete the Creator and Contributor fields.
  6. Under Add Field look for the label you created in step 4 of part 1 above and select Add. Then select Done.

Code credit: Santa Fe College