https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35145
--- Comment #1 from Emily-Rose Francoeur <emily-rose.franco...@inlibro.com> --- Created attachment 159182 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159182&action=edit Bug 35145: Add ability to order patron attribute types Here is a summary of the changes: - Added the new column 'number' to 'borrower_attribute_types' table ---> Created an atomic update file (bug_35145_order_patron_attributes.pl) ---> Updated the kohastructure.sql file - Added the new column 'number' for '/cgi-bin/koha/admin/patron-attr-types.pl' table ---> The table now defaults to sorting based on the 'number' column - Added the field 'Appear in position' in the patron attribute types create/edit form - Changed the order of patron attribute types in the patron create/edit form (OPAC and staff interfcce) so it's now sorted by the assigned number TEST PLAN 1) Go to 'Koha administration > Patron attribute types > + New patron attribute type' 2) Fill out the form ---> Code: Enter any code, for example 'WEIGHT' ---> Description: Enter any description ---> Display in OPAC: Check ---> Editable in OPAC: Check ---> Class: Enter any class (but all the attribute types you will create should have the same), for example 'TEST' 3) Click 'Save' 4) Repeat to add a second code with a code alphabetically "before" the previous one, for example SURNAME (be sure to have the same class as the previous attribute types you created) 5) Optionally, add more to really view the order 6) Go to 'Koha administration > System preferences' 7) Search for 'selfreg' 8) Set 'PatronSelfRegistration' to 'Allow' 9) Set a category in 'PatronSelfRegistrationDefaultCategory' 10) Click on the 'Save all OPAC preferences' button 11) Go to the OPAC and click on the 'Create an account' button 12) Go to the bottom of the form ---> Note that the patron attribute fields are presented in alphabetical order of code 13) Apply the patch 14) Return to 'Koha administration > Patron attribute types' ---> Notice the new 'number' column in the tables 15) Choose one of the attribute types you created earlier and click on the 'edit' button ---> You should now see the 'Appear in position' field 16) Enter a number in the 'Appear in position' field and click on 'Save' 17) Repeat the last two steps for each attribute type you created ---> Notice that the patron attribute types tables are sorted by number by default 18) In the staff interface, go to 'Patrons > + New patron' ---> In the 'Additional attributes and identifiers' section, notice that the fields are in the given number order 19) In the OPAC, return to the patron creation form (step 11) ---> At the end of the form, notice that the fields are in the given number order -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org 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/