Bug 39673

Summary: Organizing forms
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Example of current modifications made via jquery
Example of imagined editor with modal for settings

Description Christopher Brannon 2025-04-17 22:28:33 UTC
Similar to what we have for defining what columns show for each table, it would be nice if we had a tool that listed all forms in Koha and allowed admin to structure the form order, wording, and availability.  This would be a tool that would add new functionality while incorporating various current sys prefs like BorrowerMandatoryField, BorrowerUnwantedField, CollapseFieldsPatronAddForm, PatronDuplicateMatchingAddFields, PatronQuickAddFields, PatronSelfModificationBorrowerUnwantedField, PatronSelfModificationMandatoryField, PatronSelfRegistrationBorrowerMandatoryField, and PatronSelfRegistrationBorrowerUnwantedField.

Currently we use a combination of jQuery and these fields to move things around, hide, require, and reword.  It seems like it would be more efficient and logical to have these all together and allow for rewording and reordering as needed in one place.
Comment 1 Owen Leonard 2025-04-18 13:11:31 UTC
Some examples and screenshots would be helpful to understand this.
Comment 2 Christopher Brannon 2025-04-18 16:59:14 UTC
Created attachment 181190 [details]
Example of current modifications made via jquery

Here is an example of some of the modifications we make via jquery.  This is only some of what we do just to edit the form to our workflow.
Comment 3 Christopher Brannon 2025-04-18 17:03:46 UTC
Created attachment 181191 [details]
Example of imagined editor with modal for settings

This is just a crude example of what might be possible.  From a list of forms that could be edited, for example, the patron information, we could relabel the surname field where ever it is displayed and indicate if it is required or hidden in particular forms.

Sections could be reorganized, and fields within sections could be reorganized with drag and drop handles on the left.

There might be better ways to achieve this, but this would be a huge improvement over the various system preferences and jquery needed to accomplish the same thing.