web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Group page's "Recently Added Items" section's "Title" column is blank for item type "Case"

Open jon-freed opened this issue 4 years ago • 0 comments

On group pages, the "Title" column is blank in the "Recently Added Section" for items that are of item type "Case", "Email", or "Statute".

In contrast, the "Title" column is not blank for those item types within the regular Zotero user interface.

Lines of code that are relevant to recent items on the group page appear to include these:

  • https://github.com/zotero/web-components/blob/b60f1ae5549cff681ee47af729146084a28ce3ac/src/js/RecentItems.js#L155
  • https://github.com/zotero/web-components/blob/b60f1ae5549cff681ee47af729146084a28ce3ac/src/js/RecentItems.js#L32

It appears that the group recent items does not use but should use the zotero-base-mappings that are used within the web library code. See https://github.com/zotero/web-library/blob/3b72faf5da5645bafabebc3e1f96352efb666ba3/src/js/common/item.js#L15. So, the group recent items should not just use the title. Instead, they should use whatever the title is resolved to through those base mappings.

@fcheslack can you take this? You appear to have done the most recent relevant commits for the group recent items, and I don't know how easy a change for this issue would be for you versus for me.

jon-freed avatar Feb 04 '21 05:02 jon-freed