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, 25 May 2012 19:06:54 +0000 (15:06 -0400)
commitce8c776aeee0e25903b7bdcad701c8e0e041b265
treee58f6b76ff1ad2b2b567d93ff39f94cab214fe47
parent8f681cf75eccfbf00bd2411aa601e8a2bcc32cd6
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