https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35145

Lucas Gass (lukeg) <lu...@bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #176758|0                           |1
        is obsolete|                            |

--- Comment #44 from Lucas Gass (lukeg) <lu...@bywatersolutions.com> ---
Created attachment 176763
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176763&action=edit
Bug 35145: Add ability to order patron attribute types

Here is a summary of the changes:
 - Added the new column 'display_order' 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 'Display order' for
   '/cgi-bin/koha/admin/patron-attr-types.pl' table
     ---> The table now defaults to sorting based on the 'display_order' 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
   display_order

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: Keep it empty
3) Click 'Save'
4) Repeat to add a second code with a code alphabetically before the
   previous one, for example SURNAME
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) Perform an atomic update (./installer/data/mysql/updatedatabase.pl)
15) Return to 'Koha administration > Patron attribute types'
    ---> Notice the new 'Display order' column in the tables
16) Choose one of the attribute types you created earlier and click on
    the 'edit' button
    ---> You should now see the 'Appear in position' field
17) Enter a number in the 'Appear in position' field and click on
    'Save'
18) Repeat the last two steps for each attribute type you created
    ---> Notice that the patron attribute types tables are sorted by
         display_order by default
19) 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
20) 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

Signed-off-by: Anneli Österman <anneli.oster...@koha-suomi.fi>
Signed-off-by: Lucas Gass <lu...@bywatersolutions.com>

-- 
You are receiving this mail because:
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/

Reply via email to