EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09911
< 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 regenerate count in tree view?
- To: MOHD.IZWAN SALIM <mohdizwan8733@uitm.edu.my>
- Subject: Re: [EP-tech] How to regenerate count in tree view?
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Mon, 23 Dec 2024 14:42:11 +0000
Hi Izwan,
Sorry, I initially thought this might have just been a lack of regeneration but it looks like all pages are regenerating regularly. I see you are running 3.4.4, we fixed a couple of bugs with counts in subject tree based browse views in 3.4.5 and 3.4.6 respectively:
https://github.com/eprints/eprints3.4/issues/253
https://github.com/eprints/eprints3.4/issues/323
Looking at https://ir.uitm.edu.my/view/collection/ I see that the special collections has the count: 197 but https://ir.uitm.edu.my/view/collection/collection/ has the count 29 assigned to it. That is due to the bug described in issues/253.
I think these fixes (by upgrading to 3.4.6) I think this will fix all the issues that I can currently see. However, this may make it possible to see other issues that were previously hidden. Once you are done, I would either run generate_views manually or run "epadmin refresh_views" after reloading Apache. This should ensure you see updated counts. However, refresh_views means they are re-generated on next request so you may spend a lot of time waiting for browse view pages to load.
It may also not be a bad idea to clear out your archive's html/en/view/ directory. As by chance discovered some old (September 2023) cached pages when you had a different browse view configuration. These should no longer be linked but they could cause confusion if someone had them bookmarked or accidentally discovered them like me. Also, they could possibly be taking up a significant amount of disk space unnecessarily.
Regards
David Newman
CAUTION: This e-mail originated outside the University of Southampton.Dear David and team.
What I mean is the record count beside the field. If you can see, the number is not correct. Suppose the parent total record is cumulative from the child hierarchy.
Regards.
On Mon, 23 Dec 2024, 1:04 am David R Newman, <drn@ecs.soton.ac.uk> wrote:
Hi Izwan,
By default, all browse view pages, menus (e.g. https://ir.uitm.edu.my/view/collection/ and https://ir.uitm.edu.my/view/collection/h=5Fimpak/) and liings (https://ir.uitm.edu.my/view/collection/h=5Fimpak/2008.html) are regenerated if they are requested more than 24 hours after they were last generated. However, if you want to regenerate all browse view pages (menus and listings) for a particular browse view (e.g. collection) you need the command:
<EPRINTS_PATH>/bin/generate_views <ARCHIVE_ID> --view collection
Typically, people have a scheduled task (cron job) that runs every night. Depending on how big your repository archive is / number of browse views, some people get this cron job to update just the menus:
<EPRINTS_PATH>/bin/generate_views <ARCHIVE_ID> --generate menus --quiet
or they regenerate all browse views' menus and listings pages:
<EPRINTS_PATH>/bin/generate_views <ARCHIVE_ID> --quiet
Regards
David Newman
On 21/12/2024 7:35 pm, MOHD.IZWAN SALIM wrote:
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Dear support, how to re-generate or recount the total item in the tree view?Mine was messed up here - https://ir.uitm.edu.my/view/collection/
Regards
IzwanUiTM Digital Library
PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law including the Official Secrets Act 1972. READ MORE...
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law including the Official Secrets Act 1972. READ MORE...
- References:
- [EP-tech] How to regenerate count in tree view?
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Re: [EP-tech] How to regenerate count in tree view?
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] How to regenerate count in tree view?
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- [EP-tech] How to regenerate count in tree view?
- Prev by Date: Re: [EP-tech] How to regenerate count in tree view?
- Next by Date: Re: [EP-tech] Bulk PDF Upload Issue
- Previous by thread: Re: [EP-tech] How to regenerate count in tree view?
- Index(es):