Thanks @pinkfishies, you helped untangle me.
One additional question.
If I wanted to change the 'representation_tag' in the gallery sidebar:
$va_first_items_from_set = $this->getVar("first_items_from_sets");
...
$va_first_item = array_shift($va_first_items_from_set[$vn_set_id]);
...
<?php print $va_first_item["representation_tag"];?>
to something other than icon
to say medium
where would I do that?
Couldn't find much on my own by working backwards from the gallery view.
preg_replace("/[^\d-.]+/", "", $vm_value)
in order to strip non numerical chars is KO. Replacing it with a preg_replace("/[^\d]+/", "", $vm_value)
is ok, I could send a pull request with that, and seems a quick fix ; nevertheless the "-." may be there for a reason. So, for now, if you develop with the latest homebrew php, many things are down, you cannot add a metadata through the interface, edit a user, and so on. OK for a pull request or is it a bad idea ?