link to cradle to create new item if no results
close issue:T370223
Description
Added direct links to Cradle's item creation forms in three locations across Paulina: the no-results page, the search results page, and the author works list. Users can now create missing authors and works in Wikidata without leaving their workflow.
Details of Changes
Helper Function
I created a helper function that returns the appropriate Cradle template URL based on the search context:
Changes by Location:
1) No Results Page
- Added a Bootstrap info alert that displays when searches return zero results
Testing:
- Search for non-existent author/work
- Verify Cradle link appears with correct template URL
UI image
2) Results page
- Added Bootstrap info alert at the bottom of the results list for cases where the user's desired item isn't included in the search results
Testing:
- Search for existing author/work
- Scroll to bottom
- Verify Cradle link appears with correct template URL
UI image
3) Works List Page
- Changed the existing "Add it to Wikidata" link from pointing to the Wikidata homepage to the Cradle book/work creation form
Testing:
- Navigate to author with no works
- Click "Add it to Wikidata" link
- Verify it opens Cradle work form (not Wikidata homepage)



