tpac added content default type improvements
authorBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 17:23:53 +0000 (13:23 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 18:01:11 +0000 (14:01 -0400)
commitb062b73b45b8eb515263ae2de71b1ddb85ace2b0
tree7321894771d106e0e9cc474acd87fa98738ca280
parenta2cf45de8d2213eafcbefc9c7512f6bd885aa17f
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>
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