We've been working on creating lots of MARC modification templates. It would be great if each template was auto-assigned an identifying number so that when I'm communicating to another staff member I can give them the template number to use. Rather than saying look for the template named 'Copy 800|t and 800|v to 490|a and 490|v' I could say use template 21. This would make it easier for another staff member to find and increase accuracy.
The templates already have an internal id, so it's just a matter of exposing it in the template. It'd probably be a good idea to add DataTables and table configuration so that we can configure the default to continue to hide the id column.
Created attachment 121283 [details] [review] Bug 28418: Show template_id of MARC modification templates This patch adds an "id" column to the table of MARC modification templates. The table is now a DataTable with table settings, with the new column hidden by default to preserve the existing configuration. To test, apply the patch and restart services. - Go to Administration -> MARC modification templates. - If necessary, add two or more templates. - Confirm that table of templates displays as a DataTable, with all associated sorting, filtering, export, etc. - The "id" column should be hidden by default. - Confirm that column visibility controls work correctly. - Confirm that the table settings found under Administration -> Table settings work correctly to set the default visibility of the table columns.
Created attachment 121288 [details] [review] Bug 28418: Show template_id of MARC modification templates This patch adds an "id" column to the table of MARC modification templates. The table is now a DataTable with table settings, with the new column hidden by default to preserve the existing configuration. To test, apply the patch and restart services. - Go to Administration -> MARC modification templates. - If necessary, add two or more templates. - Confirm that table of templates displays as a DataTable, with all associated sorting, filtering, export, etc. - The "id" column should be hidden by default. - Confirm that column visibility controls work correctly. - Confirm that the table settings found under Administration -> Table settings work correctly to set the default visibility of the table columns. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
This worked great.
Created attachment 121328 [details] [review] Bug 28418: Show template_id of MARC modification templates This patch adds an "id" column to the table of MARC modification templates. The table is now a DataTable with table settings, with the new column hidden by default to preserve the existing configuration. To test, apply the patch and restart services. - Go to Administration -> MARC modification templates. - If necessary, add two or more templates. - Confirm that table of templates displays as a DataTable, with all associated sorting, filtering, export, etc. - The "id" column should be hidden by default. - Confirm that column visibility controls work correctly. - Confirm that the table settings found under Administration -> Table settings work correctly to set the default visibility of the table columns. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
The width of the table columns is a bit unusual here as we don't have a lot of columns. Discussed with Owen on IRC and happy to leave it like that for now.
Pushed to master for 21.11, thanks to everybody involved!
Backported to 21.05.x for 21.05.02
Pushed to 20.11.x for 20.11.09
Not backported to oldoldstable (20.05.x). Feel free to ask if it's needed.