https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40192
Jonathan Druart <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188777|0 |1 is obsolete| | --- Comment #7 from Jonathan Druart <[email protected]> --- Created attachment 189019 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189019&action=edit Bug 40192: Add additional fields support to ERM titles This patch extends the additional fields framework to ERM e-holdings titles, allowing libraries to configure custom metadata fields for managing electronic resources. Implementation details: - Extended Koha::ERM::EHoldings::Title and ::Titles with AdditionalFields mixin for object-level support - Added 'erm_titles' table mapping to AdditionalField.pm for API serialization - Updated OpenAPI schema definitions to include extended_attributes in erm_eholdings_title.yaml and expose extended_attribute_types endpoint - Enhanced REST API controller to handle additional fields in title creation/updates - Updated admin interface to allow configuring additional fields for the 'title' table name - Modified Vue.js EHoldingsLocalTitleResource component to display and manage custom fields This enables institutions to track custom metadata (e.g., license details, administrative notes, local identifiers) alongside standard ERM title information. Test plan: 1. Configure additional fields: - Go to Administration > Additional fields - Click "New field" and select table name "title" - Create a text field: Name="License notes", Searchable=Yes - Create an authorized value field: Name="Access level", AV category=LOC (or any available category) - Save both fields 2. Test with local ERM titles: - Navigate to E-resource management > Local titles - Create a new local title or edit an existing one - Verify the "Additional fields" section appears with your configured fields - Fill in "License notes" with test text - Select a value for "Access level" - Save the title 3. Verify persistence: - Reopen the title you just edited - Confirm both additional field values are displayed correctly - Edit one field value and save - Confirm the update persists Signed-off-by: Michaela <[email protected]> Signed-off-by: Martin Renvoize <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
