EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10031
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] "newbie" questions about customizing and static pages
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] "newbie" questions about customizing and static pages
- From: Andrew M <eprints-tech@unitedgames.co.uk>
- Date: Tue, 11 Mar 2025 13:14:01 +0000
CAUTION: This e-mail originated outside the University of Southampton. I come from a background of making fanzines (fan magazines - fan-made magazines - typically I've created videogame related magazines, written by members of the public keen to share their videogame knowledge), so learning about Cogito dla Polonii, as a youth magazine for Polish people abroad, is pretty cool, =). Yes, if an approach works, it's not stupid. Am only sorry for any pain you experienced with the EPrints API. There are easier modern Perl web frameworks, if all you wish to do is run a website, such as Catalyst, Mojolicious, and Dancer 2. EPrints' Publications flavour, of course, has a lot of the work done for you, if you wish to have an Open Access Repository solution out of the box. Do you have any code to share on your approach? ( I.e. when you mention creating a view, are you talking about, for example: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpbc.uw.edu.pl%2Fview%2Fdivisions%2FCogito.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0b0de29286f346a9371208dd609e97bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638772956466414145%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C40000%7C%7C%7C&sdata=Y%2FFS8%2BVKzCgnOu4gM3w%2FNFPGg6GiPf7a%2Bmh4IwANaOw%3D&reserved=0 - and then of course am curious as to where the prototype code was or is, that fetched the html? ). Are you able to share how you first attempted it via Perl and the EPrints API, and then what the obstacles you encountered were? If all you wanted was a static page, there is an EPrints ingredient you can use called Easy Pages, =). https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feasy_pages%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0b0de29286f346a9371208dd609e97bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638772956466448770%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C40000%7C%7C%7C&sdata=YE9u6iZuArqZuQgNj%2FGWXkgyp92s3CDHpHD8kQSo8eg%3D&reserved=0 Of course, if you have a solution that is fully working for your purposes, you could consider providing it as a solution for others to use too, by sharing open source code via the EPrints User Group: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprintsug.github.io%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0b0de29286f346a9371208dd609e97bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638772956466470903%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C40000%7C%7C%7C&sdata=XtsAIznakC1%2BhAUweXbeanZnK0PDWsHibc7K%2B3PtTPM%3D&reserved=0 I once needed dynamic content on a static EPrint summary page, and wrote some custom JavaScript to fetch the dynamic content via the Fetch API, from an async function. Yours, Andrew. Quoting Marcin Roguski <mt.roguski@uw.edu.pl>:
CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hi all, Well, in Polish we have a saying "if not with stick, [try] with a club." Behold the fruit of my labour: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpbc.uw.edu.pl%2Fcogito.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0b0de29286f346a9371208dd609e97bd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638772956466492322%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C40000%7C%7C%7C&sdata=LEXLTVkA%2FQe%2BTv6K1rTM2dqnm6IkWR4qvsh2QTnQH9g%3D&reserved=0 After trying (and failing miserably) to write perl code, attempting to access internal API, I tried a completely different, and so stupid it hurts, approach - enabling HTML-only generation of a view, and fetching it with Prototype into page. It's stupid, but it works - it's not stupid! -- Marcin Roguski Specjalista informatyk Wydział Dziennikarstwa, Informacji i Bibliologii UW tel. (22) 55 23 714
----- End forwarded message -----
- Follow-Ups:
- Re: [EP-tech] "newbie" questions about customizing and static pages
- From: Marcin Roguski <mt.roguski@uw.edu.pl>
- Re: [EP-tech] "newbie" questions about customizing and static pages
- Prev by Date: Re: [EP-tech] "newbie" questions about customizing and static pages
- Next by Date: Re: [EP-tech] Implementing custom metadata field into subject views
- Previous by thread: Re: [EP-tech] "newbie" questions about customizing and static pages
- Next by thread: Re: [EP-tech] "newbie" questions about customizing and static pages
- Index(es):