eprints / eprints3.4

EPrints 3.4 core and releases
http://www.eprints.org/uk/index.php/eprints-3-4/
GNU Lesser General Public License v3.0
31 stars 27 forks source link

MetaField render_quiet attribute overloaded #366

Closed drn05r closed 7 months ago

drn05r commented 7 months ago

The render_quiet attribute of EPrints::MetaField is used in two similar but different contexts. One ensures that nothing is displayed rather than an UNSPECIFIED when a value is not set, the other ensures a column in compound field is not rendered if not value is set for that sub-field. Up until now no conflict in this uploaded is found. However, some repositories may be reliant on the structure of a table to read-off different values so if some columns disappear this may be an issue but at the same time displaying a load of UNSPECIFIEDs will impact on the layout of the table.

Therefore, this functionality should be split up into two attributes render_quiet was first defined to avoid displaying UNSPECIFIEDs so that should keep its name. The hiding of columns with no value set should be changed to render_column_quiet.