Hello! I recently uploaded a new edition of EVENING SHADE, and I noticed these little "search" icons right next to the standard ones
https://www.cpdl.org/wiki/index.php/Eve ... hen_Jenks)
However, other works do not display these: https://www.cpdl.org/wiki/index.php/Exu ... r_Utendal)
I looked at the code and didn't see anything different. Is it a difference in how they were uploaded?
Thank you so much!
- A. J. Higgins
How to remove "search" icons on page
-
- Moderator
- Posts: 627
- Joined: 13 Jan 2007 15:16
- Location: Fontenay-sous-Bois (France)
- Contact:
Re: How to remove "search" icons on page
These white icons are "File-history' icons. Clicking on them opens the file-history page with the ability to upload a new version of the file. They are so useful that they should never disappear. For some reason, they often disappear. If you don't see them but need to, just click on the 'Modify' (the page) tab, upper right, then on 'Save changes'. If they don't reappear, repeat both clicks.
Re: How to remove "search" icons on page
The "file-history page" icons are activated by a Choralwiki-specific extension named MediaIcon, which I developed in 2016. It takes care of various formatting functions relevant to the way link to Media files (i.e., all files invoked through a [[Media:]] keyword) are displayed.
When MediaIcon was developed, a flag was foreseen to activate the displaying of file-history page icons to all users, or to logged-in users only instead. In order to simplify the displaying of pages to anonymous users, who are the majority of users and may inadvertently click on the wrong icon, it was decided to set the flag to "logged-in users only". So, for the time being, the file-history page icons are only displayed to logged-in users.
Furthermore, the MediaWiki software implements a rather aggressive caching mechanism, which may display to the user a cached page rather than the current page. As a result, if the cached page was created following the visit of an anonymous user, it will not display the icons. Instead, if the same page was cached following the visit of a logged-in user, it will display the icons.
I can easily switch the extension to show the icons to all users, as it's just a flag to be set from "true" to "false". However, I'm not sure that this is the best choice. Many users will click the file-history page icons rather than the file icons, and then they may not understand why a file history page is displayed in lieu of a music score or something like that.
Max
When MediaIcon was developed, a flag was foreseen to activate the displaying of file-history page icons to all users, or to logged-in users only instead. In order to simplify the displaying of pages to anonymous users, who are the majority of users and may inadvertently click on the wrong icon, it was decided to set the flag to "logged-in users only". So, for the time being, the file-history page icons are only displayed to logged-in users.
Furthermore, the MediaWiki software implements a rather aggressive caching mechanism, which may display to the user a cached page rather than the current page. As a result, if the cached page was created following the visit of an anonymous user, it will not display the icons. Instead, if the same page was cached following the visit of a logged-in user, it will display the icons.
I can easily switch the extension to show the icons to all users, as it's just a flag to be set from "true" to "false". However, I'm not sure that this is the best choice. Many users will click the file-history page icons rather than the file icons, and then they may not understand why a file history page is displayed in lieu of a music score or something like that.
Max
Re: How to remove "search" icons on page
Thanks for the context of this! And since I've found use for those icons already, I don't foresee any use for removal. Though I am glad that they don't appear for the general population.