Skip to content

Commit

Permalink
v6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mblenk committed Nov 12, 2024
1 parent a94d6a2 commit 8804b68
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Koha/Plugin/AddBDSCovers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use Modern::Perl;

use base qw(Koha::Plugins::Base);

our $VERSION = "5.0";
our $VERSION = "6.0";

our $metadata = {
name => 'AddBDSCovers',
Expand Down Expand Up @@ -101,6 +101,21 @@ sub opac_cover_images {
}
})
}
const listCovers = document.querySelectorAll('#listcontents .coverimages .p1');
if(listCovers.length > 0){
listCovers.forEach((a, i) => {
let { isbn, title } = a.dataset;
if(isbn){
a.innerHTML += `
<span title="${title}" id="bds-coverimg-${isbn}">
<img src="https://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=${isbn}&amp;SIZE=l&amp;DBM=B" alt="" />
</span>
`;
} else {
a.innerHTML += `<span class="no-image">No cover image available</span>`;
}
})
}
}
document.addEventListener('DOMContentLoaded', addBDSCoversOPAC, false);
</script>
Expand Down
Binary file modified koha-plugin-addbdscovers.kpz
Binary file not shown.
1 change: 1 addition & 0 deletions release_kpz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if [ "$NEW_VERSION_NUMBER" != "$PREVIOUS_VERSION_NUMBER" ]; then
echo "Version has been updated - starting upload"
git add .
git commit -m "$NEW_VERSION"
git tag "v$NEW_VERSION_NUMBER"
git push
echo -e "${GREEN}Plugin has been pushed to Github and a release is being generated${NC}"
else
Expand Down

0 comments on commit 8804b68

Please sign in to comment.