Patron sort1 and sort2 fields are used to store the patron's information which is not pre-assigned in the patron's form. Koha allows creating a dropdown list for these fields by adding authorized value. You need to add the sort fields (sort1 and sort2) to the Authorized Value bsort1 and bsort2. Further, you can change the wording of these fields e.g. Course Name, Session, Semester, Designation, Blood Group, etc.
Let's know how to connect authorized values to the sort1 & sort2 fields. In this article, I used the sort1 field for the "Course Name" and the sort2 field for the "Semester".
Create authorized values for sort1 (For Course Name)
Go to Koha Administration ➤ Authorized Values ➤ Click on Bsort1
Next, Click on "New authorized value for the Bsort1"
Enter the values for the Course Name and save
Create the Authorized value for all courses
Now the same way create Authorized values for sort2 (For Semesters)
Likewise, add all Semesters
In order to change the wording sort1 and sort2 to Course and Semester, add the following JavaScript to the IntranetUserJS in Global system preferences.
You will see the Course name and Semester in the patrons form while adding new patrons instead of sort1 and sort2. And you can easily choose the Course Name and Semester from the drop-down list.
Create a report based on Course (sort1) and Semester (sort2)
Select the parameters e.g. Patron Library, Patron Category, Course, and Semester, and Run the report.
Reference:- https://wiki.koha-community.org/wiki/JQuery_Library#Relabel_Sort1_on_Patron_Record
0 Comments