Skip to content

Commit

Permalink
Changes to include given name.
Browse files Browse the repository at this point in the history
  • Loading branch information
sumathi-thirumani committed Nov 18, 2024
1 parent a4f7ca1 commit faf6903
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backend/src/components/eas/studentFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ function createMoreFiltersSearchCriteria(searchFilter = []) {
}
//Default Filter End

if (key === 'givenName' && pValue) {
searchCriteriaList.push({ key: 'givenName', value: pValue.toString(), operation: FILTER_OPERATION.CONTAINS_IGNORE_CASE, valueType: VALUE_TYPE.STRING, condition: CONDITION.AND });
}

if (key === 'surName' && pValue) {
searchCriteriaList.push({ key: 'surName', value: pValue.toString(), operation: FILTER_OPERATION.CONTAINS_IGNORE_CASE, valueType: VALUE_TYPE.STRING, condition: CONDITION.AND });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@
</v-col>
</v-row>
<v-row>
<v-col class="py-0" cols="12">
<v-col class="py-0" cols="6">
<v-text-field
id="searchInput"
v-model="givenName"
label="Given Name"
color="primary"
variant="underlined"
/>
</v-col>
<v-col class="py-0" cols="6">
<v-text-field
id="searchInput"
v-model="surName"
Expand Down Expand Up @@ -284,6 +293,7 @@ export default {
selected: {},
scoreRangeDefault: [0, 4],
scoreRange: [0, 4],
givenName: null,
surName: null,
pen: null,
localID: null,
Expand Down Expand Up @@ -378,7 +388,7 @@ export default {
this.schoolSearchNames = sortBy(this.schoolSearchNames, ['schoolCodeName']);
},
setPenLocalIdNameFilter($event, val) {
const keys = ['surName', 'pen', 'localID'];
const keys = ['givenName', 'surName', 'pen', 'localID'];
keys.forEach((key) => {
if (this[key] != null) {
if (this[key].length > 0) {
Expand Down Expand Up @@ -457,6 +467,7 @@ export default {
this.districtNameNumberFilter = null;
this.schoolNameNumberFilter = null;
this.assessmentCenterNameNumberFilter = null;
this.givenName = null;
this.surName = null;
this.pen = null;
this.localID = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const SCHOOL_YEAR_REGISTRATIONS_VIEW = Object.freeze(
{ title: 'Assessment Center', key: 'assessmentCenterName' },
{ title: 'PEN', key: 'pen' },
{ title: 'Local ID', key: 'localID' },
{ title: 'Given Name', key: 'givenName' },
{ title: 'Surname', key: 'surName' },
{ title: 'Course Name (Code)', key: 'assessmentTypeName' },
{ title: 'Special Case', key: 'provincialSpecialCaseName' },
Expand All @@ -136,6 +137,7 @@ export const SESSION_REGISTRATIONS_VIEW = Object.freeze(
{ title: 'PEN', key: 'pen' },
{ title: 'Local ID', key: 'localID' },
{ title: 'Surname', key: 'surName' },
{ title: 'Given Name', key: 'givenName' },
{ title: 'Course Name (Code)', key: 'assessmentTypeName' },
{ title: 'Special Case', key: 'provincialSpecialCaseName' },
{ title: 'Proficiency Score', key: 'proficiencyScore' },
Expand Down

0 comments on commit faf6903

Please sign in to comment.