Bug 15888 - Syndetics Reviews preference should not enable LibraryThing reviews
To test: 1 - Enable Syndetics Reviews without a LibraryThing ID 2 - Check page source and note you have a stanza for LTFL tabbed reveiws 3 - Apply patch 4 - Reload page and note LTFL tabbed reviews are not present 5 - Enter a LibraryThing ID and not the tab is restored. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
aed235cbf5
commit
541a03cf6d
|
|
@ -558,16 +558,18 @@
|
|||
[% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
|
||||
<li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
|
||||
[% END %]
|
||||
[% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
|
||||
[% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
|
||||
<li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
|
||||
<li id="tab_LTFLreviews">
|
||||
[% IF ( using_https ) %]
|
||||
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
[% ELSE %]
|
||||
<script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
[% END %]
|
||||
[% IF ( LibraryThingForLibrariesID ) %]
|
||||
<li id="tab_LTFLreviews">
|
||||
[% IF ( using_https ) %]
|
||||
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
[% ELSE %]
|
||||
<script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue