[librecat-dev] how to have field remain in user after account save
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Wed May 27 15:02:05 CEST 2020
Hi,
One way is using the LibreCat::Hook::read_only_fields
Somewhere in your config/catmandu.local.yml define:
hook:
my_read_only_fields:
- legacy_id
And in your config/hooks.yml
publication-update:
before_fixes:
- my_read_only_fields
In this way the legacy_id fileds are kept in the original state when updating a record via the forms.
Patrick
> On 27 May 2020, at 10:34, Jonathan NORRIS <jnorris at ist.ac.at> wrote:
>
> Hello,
>
> Is there a way to configure a field in store.yml to have it remain in an index document after saving the document via a form when there is no entry for that field in the form?
>
> As in, say I have a new field in the user mapping in store.yml which is populated via some process somewhere in Librecat, but I don't have a form field for this in the user account form. Can I configure the field in store.yml so that it is not removed after I save the user via the user's account form?
>
> Thanks,
> Jonathan
> IST Austria
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/
More information about the librecat-dev
mailing list