LP#1724348: show preferred tab when record loads
authora. bellenir <ab@grpl.org>
Fri, 18 May 2018 20:44:49 +0000 (16:44 -0400)
committera. bellenir <ab@grpl.org>
Fri, 18 May 2018 20:44:49 +0000 (16:44 -0400)
commit4b735dae5a6df920ac05776be068fee243f83a08
treef77e92c32cac7a306681311dd2196fffa678eb4f
parentae11a1c1f4f3d653bfe6604e9552d07eca5fd822
LP#1724348: show preferred tab when record loads

allow $scope.record_tab to be an empty string. (prevents overriding user preference in eg.cat.default_record_tab).
do not reset or clear $scope.record_tab when returning to search results (so previously used view can be remembered as subsequent records are opened.)
always use catalog view if there is no $scope.record_id.

Signed-off-by: a. bellenir <ab@grpl.org>
Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js