Skip to content

Conversation

@thostetler
Copy link
Member

  • Fixes author load issue on abstract pages
  • Adds back in the link to and xxx more to show all authors, but it now does so in a lazy way

…page

- Detect truncated author data from results widget's minAuthorsPerResult setting
- Automatically fetch complete author data when displaying abstract
- Prevent showing (-) placeholders for missing author affiliations
- Extend fetchAffiliations to also handle complete author data fetching
- Add needsCompleteAuthorData helper to detect incomplete data
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where authors were not always loading on abstract pages when field limiting was used, and adds lazy loading functionality for the "and xxx more" author link on results pages.

Key Changes:

  • Detects when author/affiliation data is truncated and triggers automatic refetch on abstract pages
  • Implements expand/collapse functionality for author lists in results widget with lazy loading
  • Updates templates to show clickable "and xxx more" link when partial author data is available

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/js/widgets/results/widget.js Adds expand/collapse event handlers and API request logic for lazy loading full author lists
src/js/widgets/list_of_things/templates/item-template.html Updates template to conditionally show expand/collapse links and loading states for author lists
src/js/widgets/list_of_things/item_view.js Adds model event listeners to trigger re-rendering when author expansion state changes
src/js/widgets/abstract/widget.js Implements detection and automatic fetching of complete author data when truncation is detected

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@thostetler thostetler merged commit b087d52 into adsabs:master Oct 21, 2025
1 check passed
@thostetler thostetler deleted the SCIX-664-bbb-authors-don-t-always-show-properly-on-abstrac branch October 21, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants