I propose to add more available columns to the overdues report and column configuration to hide the new columns by default.
Created attachment 82550 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible.
Patch doesn't apply 82550 - Bug 21852: Add more columns and column configuration to overdues report Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 21852: Add more columns and column configuration to overdues report Using index info to reconstruct a base tree... M admin/columns_settings.yml M koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt Auto-merging admin/columns_settings.yml CONFLICT (content): Merge conflict in admin/columns_settings.yml error: Failed to merge in the changes. Patch failed at 0001 Bug 21852: Add more columns and column configuration to overdues report The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-21852-Add-more-columns-and-column-configuratio-WOKvpz.patch
Created attachment 84281 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible.
I followed the test plan and everything works. But I ran into some troubles on the columns settings page (Administration > Configure columns). First, the column names for the table circ-overdues don't appear. Also, on that same page, if I try to save a new column configuration for that table (randomly, because I cannot see the column names), my changes aren't kept.
Created attachment 84638 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible.
Created attachment 84639 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table.
Created attachment 84648 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Created attachment 84649 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Hi Owen, I am passing QA on this, but can I ask you to please complete the cookie documentation on the wiki according to coding guidelines? https://wiki.koha-community.org/wiki/Use_of_Cookies
Created attachment 84663 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 84664 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(In reply to Katrin Fischer from comment #9) > Hi Owen, I am passing QA on this, but can I ask you to please complete the > cookie documentation on the wiki according to coding guidelines? Done. Let me know if I need to provide more information.
(In reply to Owen Leonard from comment #12) > (In reply to Katrin Fischer from comment #9) > > Hi Owen, I am passing QA on this, but can I ask you to please complete the > > cookie documentation on the wiki according to coding guidelines? > > Done. Let me know if I need to provide more information. Thx!
I really really like this, but I kind of want to see the state save on its own bug for highlighting in the release and so we have an example of hwo to do this for many tables - we may also want to add it more broadly upon adding so one table is not inconsistent with others.
Created attachment 84735 [details] [review] Bug 21852: (follow up) Remove persistent DataTables user configuration This patch removes the DataTables function for restoring a user's previous configuration.
Patch doesn't apply Applying: Bug 21852: Add more columns and column configuration to overdues report Using index info to reconstruct a base tree... M admin/columns_settings.yml M koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt M koha-tmpl/intranet-tmpl/prog/js/datatables.js Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/js/datatables.js CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/js/datatables.js Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt Auto-merging admin/columns_settings.yml error: Failed to merge in the changes. Patch failed at 0001 Bug 21852: Add more columns and column configuration to overdues report
Created attachment 90269 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 90270 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 90271 [details] [review] Bug 21852: (follow up) Remove persistent DataTables user configuration This patch removes the DataTables function for restoring a user's previous configuration.
Owen, could you please rebase?
Created attachment 92369 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 92370 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 92371 [details] [review] Bug 21852: (follow up) Remove persistent DataTables user configuration This patch removes the DataTables function for restoring a user's previous configuration.
Sorry to ask, but do the test plans of the first 2 patches still apply with the last patch removing persistent DataTables? (By the way...I'd like that)
Created attachment 92373 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. New code has been added to the global DataTables configuration to allow the locally-stored column visibility information to override the default Koha configuration for that table. This lets us take advantage of the "stateSave" option in DataTAbles. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Show or hide columns in such a way that it doesn't match the default configuration. - Navigate away from this page. - Return to the page. The same set of columns should be visible. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 92374 [details] [review] Bug 21852: (follow-up) Correct columns configuration YAML This patch corrects a parameter name in the columns configuration file. "columnname" was misspelled "columname." To test, apply the patch and restart Plack (or restart_all on kohadevbox). Follow the test plan in the original patch. Important testing note: This patch adds persistence to the column visibility which you select. This means that updating the default column visibility won't necessarily be reflected automatically in the table in question. To confirm that defaults are being loaded one must delete the browser's Local Storage data for that table. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 92375 [details] [review] Bug 21852: (follow up) Remove persistent DataTables user configuration This patch removes the DataTables function for restoring a user's previous configuration. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Hi Owen, before pushing this I tihnk it would be nice to clarify the commit messages to not give a false impression. I'd also love to see persistency added on a follow-up bug as it's especially annoying here to lose your selection everytime you change your search/filters. Note: Atm this suffers from the same missing filter as the dependency.
(In reply to Katrin Fischer from comment #28) > before pushing this I tihnk it would be nice to clarify the commit messages > to not give a false impression. Would it be useful for me to squash the patches and revise the commit message?
Hi Owen, I think that would help to clear up the confusion. Should we file a new bug for adding persistance?
I wanted to go ahead and squash, but there is a slight conflict with the datatables update I think. I tried to fix it, but failed - can you have a look please?
Created attachment 92575 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Update the default configuration for this table in Administration -> Configure columns. Confirm that your changes are applied to the overdues report. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 92823 [details] [review] Bug 21852: Add more columns and column configuration to overdues report This patch adds some new columns to the overdue report: Patron category, item home library, item holding library, item type. Adding these columns makes available columns better match the available filter fields in the sidebar form. Column configuration is added to this DataTable, with the new columns defined as hidden by default in order to preserve current functionality. This patch also fixes a bug where the home and holding branch template variable names didn't match what was being used in the template for pre-selecting the searched-for value in the sidebar filter menu. To test, apply the patch and go to Circulation -> Overdues. - The list of overdues should look correct, with no new columns shown. - Test the column visibility button, showing the columns which are hidden by default. Confirm that the data in these columns displays correctly. - Update the default configuration for this table in Administration -> Configure columns. Confirm that your changes are applied to the overdues report. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Thx for your patience!
Nice work! Pushed to master for 19.11.00
*** Bug 13710 has been marked as a duplicate of this bug. ***
Sorry to say it but this patch actually makes the overdues report (potentially) inaccurate in terms of libraries. See Bug 26362 for the explanation and upcoming patch.