Re: [EP-tech] Disabling/hiding email field in eprint form
Stefan Wellsandt via Eprints-tech <[email protected]>
| Newsgroups | gmane.comp.web.eprints.devel |
|---|---|
| Message-ID | <EMEW3|d527b984b810f2d74512f738a42ac4f2v4N8ci14eprints-tech-bounces|ecs.soton.ac.uk|9CA7ADA411111D49BC9BB73F594622BC13E2F429@EXCH1.biba.uni-bremen.de> |
Thanks for the code snippet. I forked it and fixed a small bug. -----Ursprüngliche Nachricht----- Von: [email protected] <[email protected]> Im Auftrag von Dennis Müller via Eprints-tech Gesendet: Donnerstag, 16. Mai 2019 09:49 An: [email protected] Betreff: Re: [EP-tech] Disabling/hiding email field in eprint form Hello Stefan, we've had the same problem and approach as you. We disabled the id subfield and removed it from the lookup. However, be aware that this might break plugins or other functions that use or require the id subfield. In that case you would have to adapt each plugin to not require the field, meaning having to find workarounds and having to maintain the modified code. Maybe the simplest approach would be to just hide the id-field with a JS file placed in your archive under /cfg/static/javascript/auto/. See here for our example: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fdennmuel%2Fc49dbc82c0f5ccc83fd53e86d4b66f76&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1e7c9a4b6a7e4c201a2308d6e01acf9b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=E6Tn95JK0LA4npASlGXKoE9J5zi%2FqlH0wHHWavyAYEk%3D&reserved=0 Best regards Dennis -- Dennis Müller Universitätsbibliothek Mannheim Digitale Bibliotheksdienste Schloss Schneckenhof West 68131 Mannheim Tel.: 0621 / 181-3023 E-Mail: [email protected] *** 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%7C1e7c9a4b6a7e4c201a2308d6e01acf9b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=MRKBO%2B24VCbpxRtJvTzVqkyC%2BlNzlKrsqk%2BPJdWB8Kc%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%7C1e7c9a4b6a7e4c201a2308d6e01acf9b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=pkgIwohVChmVK0XLRbVHHEBnmthySLKX6GmEUNbJxhs%3D&reserved=0 *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C1e7c9a4b6a7e4c201a2308d6e01acf9b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=i6uNQ%2BGVjEtcgRhOwCtmg%2FFqsLjWfCo0KOjjtE3nOOQ%3D&reserved=0 *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/