EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09868
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] ChangeName script & trying out Objects, Languages, and Configurations.
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] ChangeName script & trying out Objects, Languages, and Configurations.
- From: Andrew M <eprints-tech@unitedgames.co.uk>
- Date: Thu, 31 Oct 2024 19:23:37 +0000
CAUTION: This e-mail originated outside the University of Southampton. Hello lovely EPrints Tech community, =). I love learning and trying out new things, and recently had the opportunity to do a lot of that with Version 2 of a ChangeName script, now published on the EPrints User Group github here: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2FChangeName&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3b4df453dc24040f9e808dcf9e1858c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638659994611973642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C20000%7C%7C%7C&sdata=EVfvhHtzqaHRQOi2qO7Yx4BJABU6TmKkYd%2B%2FtOkzjGA%3D&reserved=0 It's a single file, you can run at the commandline, to change names of eprint records in an EPrints repository. I made an 8minute video about the aspects I was recently experimenting with, as a coder/programmer, and that's on youtube here: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dk3A0hFK5DL4&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3b4df453dc24040f9e808dcf9e1858c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638659994611973642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C20000%7C%7C%7C&sdata=YFGGjozX6ybozwipVpqSt0kPHheRVc6XEHdrtUSfoqg%3D&reserved=0 They were... * Objects, * Languages, * and Configurations. =). As these were experiments for fun, there are plenty of flaws in my approaches, and room for improvement(s), =). You're welcome to post github issues, for any improvements you'd like to see, =). https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2FChangeName%2Fissues&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3b4df453dc24040f9e808dcf9e1858c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638659994611973642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C20000%7C%7C%7C&sdata=dsoT3kqITcwQ7Ik75DEjye20aSd2FkVJui8JZfMwc2k%3D&reserved=0 You're welcome to comment on the video, if I've got anything I'm saying in the video wrong. I realise I've lots to learn about Design Patterns and POD2, for example, and may not have known what I was talking about there, =). (Have since read up more on Strategy Pattern, and usually it's useful when there could be a variety of strategies deployed - and this video only talks of one). You may be an EPrints user rather than a developer or programmer. Would you be willing to test and share your feedback on the script? You can read the documentation (presently in German and English)... ...at the commandline via... perldoc ChangeName.pm ...in a web browser, by copy and pasting the script into the textarea box here... https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmetacpan.org%2Fpod2html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3b4df453dc24040f9e808dcf9e1858c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638659994611973642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C20000%7C%7C%7C&sdata=gNth7Y0c85jf9cbsw26RmzL%2B2Z36UD%2Ble%2F%2BOl5w3v4c%3D&reserved=0 ...and you can also generate a html page of the documentation from the commandline via... perldoc -oHTML -dChangeName.htm ./ChangeName.pm ...and then view the resulting ChangeName.htm in your web browser. Typically, assuming you're in the same directory as the script, you'd run the script in English via: perl -CAS ./ChangeName.pm --language=en-GB I've also added a German language version: perl -CAS ./ChangeName.pm --sprache=de-DE ...and would be curious if the community wants to help translate it to other languages too, =). The script runs in dry run mode by default and doesn't actually change anything in your repository without the --live tag applied. Once changes are applied, you may wish to ensure your repository's indexer is running, so the changes are noticed in subsequent searches. Yours, Andrew M, eprints-tech@unitedgames.co.uk
- Prev by Date: Re: [EP-tech] Help : Ask about mysql error
- Next by Date: [EP-tech] A changed self - Whachu Know About It?
- Previous by thread: [EP-tech] Encoding for database tables - utf8mb4
- Next by thread: [EP-tech] A changed self - Whachu Know About It?
- Index(es):