Problem/Motivation

There are some instances where the title field coming from ArchivesSpace has markup in it. We currently use a string which escapes markup. We should be able to support transforming the emph element into an em tag on ingest so it formats properly. We normally couldn't do anything for the display string value, but the html_title module (which we can include in composer as a recommended module) can help there.

Proposed resolution

We need to update the provided configs and write an update hook to copy existing data from existing 'field_as_title' string-based fields into a new text-based field, as well as any form or display mode configs.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 3183084-5.patch3.8 KBPooja Ganjage
#2 3183084-2.patch1.18 KBPooja Ganjage
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

seth.e.shaw created an issue. See original summary.

Pooja Ganjage’s picture

StatusFileSize
new1.18 KB

Hi,

Creating a patch for changing a title field type.

Please review the patch.

Let me know if any suggestions.

Thanks.

Pooja Ganjage’s picture

Status: Active » Needs review
seth.e.shaw’s picture

Pooja, thanks for that, although there are several other spots where we need to update the defaults. Also, I'm working on an update hook that will update existing field_as_title fields to use the new field type. There is an issue fork but I haven't committed my work thus-far as I was still working on that hook.

Pooja Ganjage’s picture

StatusFileSize
new3.8 KB

Updated patch.

seth.e.shaw’s picture

Pooja, as you can see by the issue fork, I'm also trying to get an update hook for this. I still need it to preserve the existing form and view mode settings... but I'm working on it.

seth.e.shaw’s picture

I've updated the issue fork so that it preserves display modes. I think it is ready to go, but could probably use a larger test before merge.

  • seth.e.shaw committed 6d86ff3 on 8.x-1.x
    Issue #3183084 by seth.e.shaw, Pooja Ganjage: Change Title Field from...
seth.e.shaw’s picture

Status: Needs review » Fixed
seth.e.shaw’s picture

Status: Fixed » Needs work

Reopened because we didn't update the migrations that pull in the data for this field. We also should filter display_strings for emph tags.

seth.e.shaw’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.