EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09771
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Count mismatch on new views/fields created as subject
- To: Mosys Consultancy Services Pvt Ltd <mosyssw@gmail.com>
- Subject: Re: [EP-tech] Count mismatch on new views/fields created as subject
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 23 Jul 2024 17:30:12 +0100
Hi Revathi,
Having reviewed the version of EPrints you are on (3.4.4), I think there is a bug with this:
https://github.com/eprints/eprints3.4/issues/253
This has been fixed with the following change to a single file:
https://github.com/eprints/eprints3.4/commit/c93f6be3d756ac4cf8b835a18f3f16f64758c99e
You can apply this if you download this commit as a patch:
https://github.com/eprints/eprints3.4/commit/c93f6be3d756ac4cf8b835a18f3f16f64758c99e.patch
and then from your EPRINTS_PATH directory run the command (substituting /PATH/TO/ to the location where you downloaded the patch file):
patch -p1 -i /PATH/TO/c93f6be3d756ac4cf8b835a18f3f16f64758c99e.patch
Regards
David Newman
CAUTION: This e-mail originated outside the University of Southampton.Dear David,Thanks, I am also anaylyzing the same. Meanwhile, I am attaching the subjects.xml file herewith.
On Tue, Jul 23, 2024 at 1:50 PM David R Newman <drn@ecs.soton.ac.uk> wrote:
Hi Revathi,
The first thing to note is that a known bug in the counts for subject-tree based browse views has been fixed in a yet to be fully released version of EPrints:
https://github.com/eprints/eprints3.4/issues/323
This ensures that the number for the parent or greater ancestor subjects does not only count items in the currently selected child subject. So as you navigate down the subject tree the counts for the parents/ancestors does not descrease. However, this does not look to be the issue you are having here.
Secondly, it would not be unexpected for the sum of the counts of all the children in a subject tree to add up to a number either smaller or larger than the count listed next to the parent. As one item could be under multiple child subject but can only be counted under the parent subject once. Also, items could be only under the parent subject and none of the child subjects.
However, looking at you browse view screenshot you appear to have child subjects that have a higher count individually than their parent subjects. This should not be possible. I am not aware of any specific bug that would cause this. However, browse view counts can behave oddly if you have a subject tree where the a subjects are link into the tree in multiple places. If you could send me an export of you subject tree, I could determine if that would be an issue. To export the subject tree you will need the command:
EPRINTS_PATH/bin/export ARCHIVE_ID subject XML > subjects.xml
This only exports the structure of the subject tree and not any information about publications, so should not contain any private information, unless you are using the subject tree for something other than options for fields that are the basis of browse views.
Regards
David Newman
On 23/07/2024 8:32 am, Mosys Consultancy Services Pvt Ltd wrote:
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Dear all,We have created a subject category with the following new fields and created views.May I know why the count is mismatching?URL:
File name: /opt/eprints3/flavours/pub_lib/cfg.d/eprint_fields.pl{
name => 'subjects',
type => 'subject',
multiple => 1,
top => 'subjects',
browse_link => 'subjects',
},
{
name => 'index_db',
type => 'subject',
multiple => 1,
top => 'index_db',
browse_link => 'index_db',
},
{
name => 'study',
type => 'subject',
multiple => 1,
top => 'study',
browse_link => 'study',
},
ThanksRevathi
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
- Follow-Ups:
- Re: [EP-tech] Count mismatch on new views/fields created as subject
- From: Mosys Consultancy Services Pvt Ltd <mosyssw@gmail.com>
- Re: [EP-tech] Count mismatch on new views/fields created as subject
- References:
- [EP-tech] Count mismatch on new views/fields created as subject
- From: Mosys Consultancy Services Pvt Ltd <mosyssw@gmail.com>
- Re: [EP-tech] Count mismatch on new views/fields created as subject
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Count mismatch on new views/fields created as subject
- From: Mosys Consultancy Services Pvt Ltd <mosyssw@gmail.com>
- [EP-tech] Count mismatch on new views/fields created as subject
- Prev by Date: RE: [EP-tech] Robots
- Next by Date: Re: [EP-tech] Count mismatch on new views/fields created as subject
- Previous by thread: Re: [EP-tech] Count mismatch on new views/fields created as subject
- Next by thread: Re: [EP-tech] Count mismatch on new views/fields created as subject
- Index(es):