When doing an item search through label-item-search.pl, if there is a only one page of results the formatting of the result count is weird. To reproduce: 0) Go to Tools > Label creator > New > Label batch 1) Add items 2) Do a search that will return few items 3) The result count will read "Results through of X" instead of "Results 1 through X of X" The error is also present on 16.05.
Created attachment 69289 [details] [review] Bug 19681 - Correct result count formatting This simply passes the missing information to the template. Test plan: 0) Apply patch 1) Go to Tools > Label creator > New > Label batch 2) Press 'Add items' 3) Do a search that will return few items 4) The result count will read "Results 1 through X of X"
Created attachment 69293 [details] [review] Bug 19681 - Correct result count formatting This simply passes the missing information to the template. Test plan: 0) Apply patch 1) Go to Tools > Label creator > New > Label batch 2) Press 'Add items' 3) Do a search that will return few items 4) The result count will read "Results 1 through X of X" Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 69294 [details] [review] Bug 19681 - Correct result count formatting Small correction, previous patch accidentally changed the file mode to 644. -- This simply passes the missing information to the template. Test plan: 0) Apply patch 1) Go to Tools > Label creator > New > Label batch 2) Press 'Add items' 3) Do a search that will return few items 4) The result count will read "Results 1 through X of X" Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 69333 [details] [review] Bug 19681: Correct result count formatting This simply passes the missing information to the template. Test plan: 0) Apply patch 1) Go to Tools > Label creator > New > Label batch 2) Press 'Add items' 3) Do a search that will return few items 4) The result count will read "Results 1 through X of X" Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 18.05, thanks to everybody involved!
Pushed to stable for 17.11.01, awesome work all!
Pushed to 17.05.x, will be in v17.05.07