Summary: | Add remote image option for authorized values | ||
---|---|---|---|
Product: | Koha | Reporter: | Nicole C. Engard <nengard> |
Component: | System Administration | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | cbrannon, david.roberts, eliana, fridolin.somers, gmcharlt, jonathan.druart, jzairo, kyle, lucas, margaret, marjorie.barry-vila, noemie.labine, patrick.robitaille, severine.queune |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This patch updates authorized values management to add the option of specifying a remote image to be associated with an authorized value. This functionality matches what was already available for item types: The ability to specify a full URL to an image file. Modifying a collection code with a remote image will make the image visible on catalog advanced search pages in the OPAC and staff interface when the option to select a collection is enabled.
|
Version(s) released in: |
22.05.00
|
Circulation function: | |||
Bug Depends on: | 29867 | ||
Bug Blocks: | |||
Attachments: |
Bug 7374: Can't upload icon for auth values
Bug 7374: Can't upload icon for auth values Bug 7374: Can't upload icon for auth values Bug 7374: Add remote image option for authorized values Bug 7374: Add remote image option for authorized values Bug 7374: Add remote image option for authorized values |
Description
Nicole C. Engard
2011-12-21 21:40:03 UTC
I confirm the "remote image" tab is still missing for authorized values from current master. Still valid. still valid, removing assignment to me. Created attachment 64916 [details] [review] Bug 7374: Can't upload icon for auth values This patch allows the upload of a remote image to the authorised values policies. Created attachment 64917 [details] [review] Bug 7374: Can't upload icon for auth values Fixes a bug which prevents the delivered images being selected. Test plan: Apply patch and ensure that the noItemTypeImages syspref is set to yes. Add a local image to an authorised value, for example a LOC policy. Check that the local image displays in the list of values. Check that the image displays in the advanced search screen of the OPAC (if using an auth value that displays in the OPAC, i.e. LOC or CCODE) Check that the remote image can be removed. Check that a delivered image can still be selected and removed. Created attachment 65036 [details] [review] Bug 7374: Can't upload icon for auth values Fixes a bug which prevents the delivered images being selected. Works as expected in line with test plan above. Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> Patch does not apply: error: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt). error: could not build fake ancestor You should also correct the email address and the name of the author of the patch. I'm not sure why my patches have been obsoleted and replaced with a different one? Hi David, when a sign off is added, the patch is replaced, but it should contain the same changes plus the sign off line. Do you mean the code changed are different from yours? It looks same on first glance. still valid as the remote image tab is still missing in master (In reply to Lucas Gass from comment #11) > still valid as the remote image tab is still missing in master Yes, this is still a work in progress - it's about half complete at the moment. Hopefully I'll get round to finishing it shortly. *** Bug 29624 has been marked as a duplicate of this bug. *** Created attachment 129401 [details] [review] Bug 7374: Add remote image option for authorized values This patch adds the option of using a remote image for an authorized value, just as you can with item types. To test, apply the patch and go to Administration -> Authorized values. - Click "CCODE" to view the collection authorized values. - Edit a collection code. - In the form, under "Choose an icon," there should now be a "Remote image" tab. - Enter a remote image url, e.g. https://via.placeholder.com/50/FF0000/FFFFFF.png - Click "Save." - After the page redirects to the list of collection codes you should see your image in the table next to the code you edited. - Test that you can still edit a collection to set "No image" or to use one of the local image sets. - Test that remote images can also be added when adding a new collection. - Make sure "ccode" is in the "AdvancedSearchTypes" sytem preference. - Go to the catalog's advanced search page and click the "Collection" tab. - You should see your collection image in the list of collections. - Perform the same check in the OPAC. I'm testing on a sandbox, and before I add the patch, everything work right. But when I add the patch, if I try to edit an existing CCODE, it acts like it is creating a new value instead of editing the existing one. All fields are blank. This patch is messing with existing functionality. I've tested this again in my local test system and I can't reproduce that problem. I wonder if it could be an issue with the sandbox? I'm going to put this back to "Needs signoff" in the hopes that someone can try again. I am currently learning how to test patches on sandboxes so maybe someone else can countercheck, but the patch seems to work fine for me ! I can edit existing values and I don't see any other problems. I'm not gonna change the status for now. Created attachment 129633 [details] [review] Bug 7374: Add remote image option for authorized values This patch adds the option of using a remote image for an authorized value, just as you can with item types. To test, apply the patch and go to Administration -> Authorized values. - Click "CCODE" to view the collection authorized values. - Edit a collection code. - In the form, under "Choose an icon," there should now be a "Remote image" tab. - Enter a remote image url, e.g. https://via.placeholder.com/50/FF0000/FFFFFF.png - Click "Save." - After the page redirects to the list of collection codes you should see your image in the table next to the code you edited. - Test that you can still edit a collection to set "No image" or to use one of the local image sets. - Test that remote images can also be added when adding a new collection. - Make sure "ccode" is in the "AdvancedSearchTypes" sytem preference. - Go to the catalog's advanced search page and click the "Collection" tab. - You should see your collection image in the list of collections. - Perform the same check in the OPAC. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (In reply to Noémie Labine from comment #17) > I am currently learning how to test patches on sandboxes so maybe someone > else can countercheck, but the patch seems to work fine for me ! I can edit > existing values and I don't see any other problems. > > I'm not gonna change the status for now. Noémie, it worked well for me too! Created attachment 130064 [details] [review] Bug 7374: Add remote image option for authorized values This patch adds the option of using a remote image for an authorized value, just as you can with item types. To test, apply the patch and go to Administration -> Authorized values. - Click "CCODE" to view the collection authorized values. - Edit a collection code. - In the form, under "Choose an icon," there should now be a "Remote image" tab. - Enter a remote image url, e.g. https://via.placeholder.com/50/FF0000/FFFFFF.png - Click "Save." - After the page redirects to the list of collection codes you should see your image in the table next to the code you edited. - Test that you can still edit a collection to set "No image" or to use one of the local image sets. - Test that remote images can also be added when adding a new collection. - Make sure "ccode" is in the "AdvancedSearchTypes" sytem preference. - Go to the catalog's advanced search page and click the "Collection" tab. - You should see your collection image in the list of collections. - Perform the same check in the OPAC. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> JD amended patch: fix indentation Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> All good for me as well. Christopher, it would be great if you could test again once this gets pushed, in case we all missed something! This long time wanted enhancement needs a good release note ;) Pushed to master for 22.05, thanks to everybody involved [U+1F984] |