LP#1378383-WebStaff Fix Item circ history to obey max setting user/cesardv/lp1378383_REBASE_webstaff_obey_circ_hist_max_checkouts
authorCesar Velez <Cesar.Velez@equinoxinitiative.org>
Thu, 21 Sep 2017 14:45:23 +0000 (15:45 +0100)
committerCesar Velez <Cesar.Velez@equinoxinitiative.org>
Thu, 21 Sep 2017 14:45:23 +0000 (15:45 +0100)
commit819275d0ff97e9d646275e597852da566162dca7
tree333a251ec626a5a3828ebd54b709f371ad9b8981
parentb87a437825a531a3e6977d1e0b17e48d8f41f74a
LP#1378383-WebStaff Fix Item circ history to obey max setting

The circ.item_checkout_history.max lib setting should be respected
in both Circ History tabs, and also check for the permission to
VIEW_COPY_CHECKOUT_HISTORY for the current user.

Also, There was ambiguity for the user to tell the difference
(from the displayed message) if an item truly has no circulations,
or if they see no circs due to the relevant permission setting
being set to 0 (Maximum previous checkouts.) This changes the templates
a bit to make that clearer.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2
Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js