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:
Jonathan Druart 2026-01-09 10:08:46 +01:00 committed by Lucas Gass
parent a6009fbd0d
commit aa8ec9e4d4
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 22 additions and 16 deletions

View File

@ -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 %]