Summary: | Patron attributes don't have identifying info in the staff interface | ||
---|---|---|---|
Product: | Koha | Reporter: | paxed <pasi.kallinen> |
Component: | Templates | Assignee: | paxed <pasi.kallinen> |
Status: | CLOSED FIXED | QA Contact: | Nick Clemens (kidclamp) <nick> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | matt.blenkinsop, nick |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26206 | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
23.05.00
|
|
Circulation function: | |||
Attachments: |
Bug 33349: Patron Attributes don't have identifying information in intranet
Bug 33349: Patron Attributes don't have identifying information in intranet Bug 33349: Patron Attributes don't have identifying information in intranet |
Description
paxed
2023-03-28 06:32:43 UTC
Created attachment 148792 [details] [review] Bug 33349: Patron Attributes don't have identifying information in intranet Bug 33349: Patron Attributes don't have identifying information in intranet Patron Attributes have no identifying info in the template page, no stable ID to style or effect with javascript, so when new patron attributes are added or removed, their order may change, requiring extra work to make sure CSS and javascript don't change the wrong patron attributes. Test plan: 0) in intranet: 1) create patron attribute types with different codes: "TESTPA", "test2 PA", and "At%tr:X" 2) add those patron attributes to a patron, with some values 3) in a browser, go to a patron information page, and inspect the page source where the patron attributes are 4) note how the PA entries have no identifying information usable to css or javascript 5) apply patch 6) inspect the page source, note how the patron attributes have data-pa_code -value with the following values: "TESTPA", "test2PA", and "AttrX" (The attribute codes are sanitized to remove possibly problematic characters; those shouldn't be used in PA codes anyway) 7) Go to the page where you edit the patron's Additional attributes and identifiers, and repeat 6 for that page. Created attachment 148811 [details] [review] Bug 33349: Patron Attributes don't have identifying information in intranet Patron Attributes have no identifying info in the template page, no stable ID to style or effect with javascript, so when new patron attributes are added or removed, their order may change, requiring extra work to make sure CSS and javascript don't change the wrong patron attributes. Test plan: 0) in intranet: 1) create patron attribute types with different codes: "TESTPA", "test2 PA", and "At%tr:X" 2) add those patron attributes to a patron, with some values 3) in a browser, go to a patron information page, and inspect the page source where the patron attributes are 4) note how the PA entries have no identifying information usable to css or javascript 5) apply patch 6) inspect the page source, note how the patron attributes have data-pa_code -value with the following values: "TESTPA", "test2PA", and "AttrX" (The attribute codes are sanitized to remove possibly problematic characters; those shouldn't be used in PA codes anyway) 7) Go to the page where you edit the patron's Additional attributes and identifiers, and repeat 6 for that page. Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Created attachment 148987 [details] [review] Bug 33349: Patron Attributes don't have identifying information in intranet Patron Attributes have no identifying info in the template page, no stable ID to style or effect with javascript, so when new patron attributes are added or removed, their order may change, requiring extra work to make sure CSS and javascript don't change the wrong patron attributes. Test plan: 0) in intranet: 1) create patron attribute types with different codes: "TESTPA", "test2 PA", and "At%tr:X" 2) add those patron attributes to a patron, with some values 3) in a browser, go to a patron information page, and inspect the page source where the patron attributes are 4) note how the PA entries have no identifying information usable to css or javascript 5) apply patch 6) inspect the page source, note how the patron attributes have data-pa_code -value with the following values: "TESTPA", "test2PA", and "AttrX" (The attribute codes are sanitized to remove possibly problematic characters; those shouldn't be used in PA codes anyway) 7) Go to the page where you edit the patron's Additional attributes and identifiers, and repeat 6 for that page. Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Pushed to master for 23.05. Nice work everyone, thanks! Enhancement - not backporting to 22.11.x Nice work everyone! |