EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10109
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- To: "kralizeck@gmail.com" <kralizeck@gmail.com>
- Subject: Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Mon, 5 May 2025 16:59:01 +0100
Hi Fernando,
Abstract is short-hand for the HTML web page that represents a publication on your EPrints repository. E.g. https://pub.demo.eprints-hosting.org/id/eprint/23/. If you want to learn about terms used in EPrints see:
https://wiki.eprints.org/w/EPrints_Glossary
In particular the description of an "Abstract page".
With respect to your issues finding the browse_link causing problems with generate_abstracts, I am talking about the field configuration like that highlighted in the URL below:
https://github.com/eprints/eprints3.4/blob/c35c2c5a0f23c1cca05699633645ba7e3d523d12/flavours/pub_lib/cfg.d/eprint_fields.pl#L88L94
If you just remove the browse_link line that should have solve you problem. However, the file you would have needed to edit would have likely been under your archive at cfg/cfg.d/eprint_fields.pl. The alternative solution would be to make sure the divisions browse view is present (and uncommented) in flavours/pub_lib/cfg.d/views.pl or your archive's cfg/cfg.d/views.pl if the latter exists. As you may have observed, if there is an identically named file under you archive, it will take precedence over the one under flavours/pub_lib/.
Regards
David Newman
On 05/05/2025 4:43 pm,
kralizeck@gmail.com wrote:
CAUTION: This e-mail originated outside the University of Southampton.Thanks, David.Both problems were solved with your advice.
Forgenerate_views
, the phrase was in'../ARCHIVE_ID/cfg/lang/es/phrases/system.xml'
. I commented out the old one, added new entries with their spanish translations, and had no issues generating the views.
ForAbstracts generated without problems.generate_abstracts
, it was trickier. I searched (manygrep
s), tried to understand the perl code, and finally found a commenteddivisions
code block in'../ARCHIVE_ID/cfg/cfg.d/views.pl'
. I uncommented it and placed inside the$c->{browse_views} = [...]
code block.
Although I'm still trying to understand what abstracts are ;-))
Many thanks and best regards.Fernando Hdez.
El dom, 4 may 2025 a las 19:14, David R Newman (<drn@ecs.soton.ac.uk>) escribió:
Hi Fernando,
The fact you have a multi-langugage repository is probably not the issue. The generate_views is that you have an old version of the phrase Update/Views:up_a_level, likely under your archive (i.e. EPRINTS_PATH/archives/ARCHIVE_ID/cfg/lang/en/phrases/). I cannot be what sure in which file this phrase will be, possibly zz_webcfg.xml but otherwise use (the Unix command) grep to find it. I expect the phrase line you will find its like:
<epp:phrase id="Update/Views:up_a_level"><div class="no_link_decor"><epc:pin name="url"><img src="" alt="[up]" border='0' /> Up a level</epc:pin></div></epp:phrase>
This needs to be replaced with three separate phrases:
<epp:phrase id="Update/Views:up_a_level"> Up a level</epp:phrase>
<epp:phrase id="Update/Views:up_a_level_alt">[up]</epp:phrase>
<epp:phrase id="Update/Views:up_a_level_src">/style/images/multi_up.png</epp:phrase>
I think the generate_abstracts issue is due to having removed a browse view for divisions but not a 'browse_link' reference to this in the divisions field, most likely in the archive's cfg/cfg.d/eprint_fields.pl. If it is not under this file, similarly use grep to find incidences of 'browse_link' specifically, the one for 'divisions'.
Regards
David Newman
On 04/05/2025 6:33 am, kralizeck@gmail.com wrote:
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Hello.
I have EPrints 3.4.6 on the latest AlmaLinux and Apache. I upgraded from EPrints 3.3.12 on a very old Ubuntu.
Everything seems to work fine but when running generate_views and generate_abstracts via daily cron it get the same message hundreds of times:
- In generate_views myid
CROND[108159]: (eprints) CMDOUT (missing parameter ‘url’ when making phrase ‘Update/Views:up_a_level’)
- In generate_abstracts myid
CROND[106480]: (eprints) CMDOUT (browse_link to view ‘divisions’ not found for field ‘divisions’)I'm looking for information about these errors but no luck so far.My site is in english and spanish.
I would appreciate any help or recommendations on how to resolve them.
Thanks and best regards.
Fernando Hdez.
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
- References:
- [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- From: "kralizeck@gmail.com" <kralizeck@gmail.com>
- Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- From: "kralizeck@gmail.com" <kralizeck@gmail.com>
- [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- Prev by Date: Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- Next by Date: [EP-tech] Modification of Upload type
- Previous by thread: Re: [EP-tech] Fwd: Errors running generate_views and generate_abstracts
- Next by thread: [EP-tech] "Search the Archive" doesn't work?
- Index(es):