EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08293
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] How to remove a sub field from a compound field?
- To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>, Dennis - UT <dv.eprints@gmail.com>
- Subject: Re: [EP-tech] How to remove a sub field from a compound field?
- From: Dennis - UT <dv.eprints@gmail.com>
- Date: Thu, 6 Aug 2020 09:47:13 +0200
Hi David, I found the solution. There was also a file called zz_webcfg_eprint_fields.pl in the cfg.d folder which contained nearly the same content as metafield.pl in var. I also removed the field from that file and now the field is gone. Why actually are these fields defined in two nearly identical Perl files? The only difference seems to be that one contains a field "provenance" and the other uses "providence" for the same field. Additionally these fields are also defined in metafield.xml. We started with EPrints before the webcfg fields were invented. Later on we used the webcfg to define some fields. After a while however we switched back to eprints_fields.pl as that seemed easier to maintain. Dennis University of Twente - NL On Wed, Aug 5, 2020 at 7:26 PM Dennis - UT via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote: > > Hi David, > > Thanks for the reply! > > It's a custom field on the eprint data object. I already removed the > subfield from all of the mentioned files. Is field information also > stored or cached elsewhere? I saw some references in mf* tables, but > removing those also didn't work. > > Dennis > University of Twente - NL > > On Tue, Aug 4, 2020 at 5:56 PM David R Newman <drn@ecs.soton.ac.uk> wrote: > > > > Hi Dennis, > > > > Assuming you want to remove a sub-field from the eprint data object > > (dataobj) and you are running at least EPrints 3.3.x then you would need > > to edit the field in eprint_fields.pl under > > archives/ARCHIVE_NAME/cfg/cfg.d/ to remove the sub-field from the > > compound field*. If you cannot find the field in here see if you can > > find the field somewhere else in the cfg.d/ directory. If it is a > > compound field you will probably not need to remove this sub-field from > > cfg/workflows/eprint/default.xml but you may need to remove it from > > citations in cfg/citations/eprint/. > > > > Generally, I advise against removing fields using epadmin remove_field, > > just in case you decide you want to reinstate it later, if you have > > remove it from all the places it is included (eprint_fields.pl, > > workflows and possibly citations and eprints_render.pl and other cfg.d > > files). This should mean that EPrints forgets about the field and you > > shouldn't get any errors from EPrints trying to find a field that is no > > longer defined. > > > > Regards > > > > David Newman > > > > *If you are trying to remove a sub-field for a core field on the data > > object you may not be able to do this by editing one of the config > > files. Instead you will need to edit perl_lib/EPrints/DataObj/Eprint.pm > > or whatever data objects you are dealing with. > > > > On 04/08/2020 15:45, Dennis - UT via Eprints-tech wrote: > > > Hi, > > > > > > Does anyone know how to remove a sub field from a compound field? I > > > removed the field from metafields.xml and metafields.pl. I also > > > removed any reference to it from other files in the archive cfg > > > folder, followed by a restart. This doesn't make the field disappear > > > however. > > > > > > I tried epadmin remove_field on the subfield. This does delete the DB > > > table, but the sub field is still in the UI. If I run epadmin update > > > afterward, it just adds the table back. > > > > > > Somehow somewhere it still remembers the sub field. > > > > > > How can I completely remove the sub field? > > > > > > Thanks! > > > > > > Dennis > > > University of Twente - NL > > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > > > *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf0ce3614c0cc4e74838808d839dcf6d2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9qNsQnh4fBmuAAdLAz5JpHFN5AOj4O6rD6wkgrDWiCI%3D&reserved=0 > > > *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf0ce3614c0cc4e74838808d839dcf6d2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=rvQH1ATUubNVUweeG61aw%2FmUQHktWoX3v7i%2FEZnWtKI%3D&reserved=0 > > > > -- > > This email has been checked for viruses by AVG. > > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf0ce3614c0cc4e74838808d839dcf6d2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=LXSGYdjBjUztwokg0mBApUWTedtO%2F7CL5wj3IedOfN4%3D&reserved=0 > > > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf0ce3614c0cc4e74838808d839dcf6d2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9qNsQnh4fBmuAAdLAz5JpHFN5AOj4O6rD6wkgrDWiCI%3D&reserved=0 > *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf0ce3614c0cc4e74838808d839dcf6d2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=rvQH1ATUubNVUweeG61aw%2FmUQHktWoX3v7i%2FEZnWtKI%3D&reserved=0
- Follow-Ups:
- Re: [EP-tech] How to remove a sub field from a compound field?
- From: Dennis - UT <dv.eprints@gmail.com>
- Re: [EP-tech] How to remove a sub field from a compound field?
- References:
- [EP-tech] How to remove a sub field from a compound field?
- From: Dennis - UT <dv.eprints@gmail.com>
- Re: [EP-tech] How to remove a sub field from a compound field?
- From: Dennis - UT <dv.eprints@gmail.com>
- Re: [EP-tech] How to remove a sub field from a compound field?
- From: Dennis - UT <dv.eprints@gmail.com>
- [EP-tech] How to remove a sub field from a compound field?
- Prev by Date: Re: [EP-tech] How to remove a sub field from a compound field?
- Next by Date: Re: [EP-tech] How to remove a sub field from a compound field?
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):