Bug 41582: Tidy kohaTable - opac-detail.tt - Novelist
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
a6009fbd0d
commit
aa8ec9e4d4
|
|
@ -2076,22 +2076,6 @@
|
|||
KOHA.OpenLibrary.GetCoverFromIsbn();
|
||||
}
|
||||
|
||||
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
|
||||
novSelect.loadContentForQuery(
|
||||
{
|
||||
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
|
||||
ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
|
||||
version : '2.1'
|
||||
},
|
||||
'[% NovelistSelectProfile | html %]',
|
||||
'[% NovelistSelectPassword | html %]',
|
||||
function(d){
|
||||
if ( d.length > 0 ){ //If no content
|
||||
$(".NovelistSelect").show();
|
||||
}
|
||||
});
|
||||
[% END %]
|
||||
|
||||
if (prefs.OPACShelfBrowser){
|
||||
// Focus on shelf browser if present
|
||||
var shelfbrowser = $("#shelfbrowser");
|
||||
|
|
@ -2277,4 +2261,26 @@
|
|||
|
||||
}
|
||||
</script>
|
||||
|
||||
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
novSelect.loadContentForQuery(
|
||||
{
|
||||
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
|
||||
ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
|
||||
version : '2.1'
|
||||
},
|
||||
'[% NovelistSelectProfile | html %]',
|
||||
'[% NovelistSelectPassword | html %]',
|
||||
function(d){
|
||||
if ( d.length > 0 ){ //If no content
|
||||
$(".NovelistSelect").show();
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue