From 8804b682b075b1e1600a193bc01b5c29fcb176b2 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 12 Nov 2024 10:58:55 +0000 Subject: [PATCH] v6.0 --- Koha/Plugin/AddBDSCovers.pm | 17 ++++++++++++++++- koha-plugin-addbdscovers.kpz | Bin 2889 -> 2964 bytes release_kpz.sh | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Koha/Plugin/AddBDSCovers.pm b/Koha/Plugin/AddBDSCovers.pm index 20b3f3e..be417f1 100644 --- a/Koha/Plugin/AddBDSCovers.pm +++ b/Koha/Plugin/AddBDSCovers.pm @@ -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', @@ -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 += ` + + + + `; + } else { + a.innerHTML += `No cover image available`; + } + }) + } } document.addEventListener('DOMContentLoaded', addBDSCoversOPAC, false); diff --git a/koha-plugin-addbdscovers.kpz b/koha-plugin-addbdscovers.kpz index 8782265baa74d64b1748e4ee37d306dddc3c2650..f922900329d2866b846b9b1aeb00f78a49225970 100644 GIT binary patch delta 1275 zcmV$lK zKOLOJ_f*Jkf2ER23Kwxe1x{U4!E@7y;J;6^TKQYq>GaWDM@XCssQz(wGdRDx1P`pA z+?G|CL#jwX6hZsE0yrWPQYa0t2X;9MyJ27?Rnu6k!!C$Y(C0L|!{y^7N1}H+%-}T0 zkq51V1E5EGFjyQJPwjVZ>qocM!oODT zDNyrB2v#A zlhd2qe?_V61x_yu*L?`2-;CD`Zys}(xMWpQK3>|L-r)D^vztx_!>Soy_1v$9p(lUB zw3m}#&Yhmd)N@aQs#HW7tXo-Rdt;FjB%*3)GBnIHG_QP#poIO0W-w*8Uf7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@x|GZNVKsD64A(QZIHbMQ^M`7n5S3j!-vs^o;fHb&RWkzO2Ta|Gk@U!P|ix^ zs}$|x^6=wNAA5d)82^@gqps;L67Ob8pT5luI53o_v-uUrN{c#T%BNk2yo%5~uhvRmXtiUoE%m%D9_-?@5(+ZE87 z)8sjfwmc@UWijz>Rn1Lcu7!qMA!GF%o9{fA_ixM=zQdLWN&C{7+dk8eo4D`4oz2Dd z;v2f#{|2)k39A7P>U~LB>>eGGJp=#%I}elC3N!OC I2><{90Nh_mAOHXW diff --git a/release_kpz.sh b/release_kpz.sh index 93773f8..02bc3a1 100755 --- a/release_kpz.sh +++ b/release_kpz.sh @@ -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