@@ -, +, @@ - Enable the LocalCoverImages system preference. - Locate a bibliographic record which has no images attached. - There should be a "no images" message and an upload button. - Upload an image and return to the detail page. - The "Images" tab should have a nicely-styled thumbnail of the image you uploaded. - Test the "Delete image" link: It should ask for a confirmation. If you confirm, the image should disappear and a "loading" spinner should appear. - When the image has been deleted the thumbnail container should disappear and the "no images" message should reappear. - Test this process with AllowMultipleCovers enabled and disabled. --- .../intranet-tmpl/prog/css/src/staff-global.scss | 20 ++++++- .../prog/en/modules/catalogue/detail.tt | 65 +++++++++++++--------- 2 files changed, 57 insertions(+), 28 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2284,10 +2284,28 @@ li { .thumbnail { display: block; margin: auto; +} - > li { +.thumbnails { + li { + display: inline-block; list-style-type: none; } + + .remove { + border-top: 1px solid #EEE; + display: block; + font-size: 90%; + margin: 4px -4px 2px -4px; + padding-top: .5em; + text-align: center; + } + + & + p { + border-top: 1px solid #eee; + margin-top: 1em; + padding-top: 1em; + } } #searchresults { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -812,26 +812,31 @@ [% END %] [% IF ( LocalCoverImages ) %] -
Click on an image to view it in the image viewer
-Click on an image to view it in the image viewer
+Upload an image file: Upload +
+ [% END %] +