]> git.evergreen-ils.org Git - evergreen/tadl.git/commit
tpac added content default type improvements
authorBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 17:23:53 +0000 (13:23 -0400)
committerJeff Godin <jgodin@tadl.org>
Thu, 26 Jul 2012 09:05:40 +0000 (05:05 -0400)
commit26febab63cbfd11f2f113bec34b2472f4ea73149
tree32b5e1acd5b57a44ebe20727d5ecaa258193d384
parent139836a6e2bdb76d9ea8a1b966153a186f712773
tpac added content default type improvements

* In the pre-JS state, only choose a default display type when the type
is known to have data.

* If no default type is chosen for the main tab link, because no data
was available to the template, set the default from the first added
content type determined to be available via JS.

* Move added content JS to separate template file for easier override.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/acjs.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/parts/record/extras.tt2