[EP-tech] Need some help, not able to click on the missing values/undefined item

James Kerwin jkerwin2101 at gmail.com
Thu Dec 2 12:46:11 GMT 2021


CAUTION: This e-mail originated outside the University of Southampton.
That might not be correct. Looking at this example where at the bottom I have (18) and no phrase, I'm not sure providing a phrase in the way I've suggested would work:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fview%2Fdivisions%2Fdep%3D5Fvesc%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=JRj%2Fq2xjRZLs6UD%2FKa729lP5ai6cOw1L9JyEDq5KCHI%3D&reserved=0

Based on what I said previously I would expect to make a phrase ID for this that looks something like:

<epp:phrase id="viewnull_eprint_divisions">Not Specified</epp:phrase>

But I'm now wondering if that would apply only to missing divisions on this page (there aren't any at the moment):

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fview%2Fdivisions%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=QvxPOZbEksuUyRpnwoy7VIJ4NBz3lcjPSEWAdMmkA1s%3D&amp;reserved=0

Rather than on the page I would like it to appear on (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fview%2Fdivisions%2Fdep%3D5Fvesc%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=JRj%2Fq2xjRZLs6UD%2FKa729lP5ai6cOw1L9JyEDq5KCHI%3D&amp;reserved=0)

On Thu, Dec 2, 2021 at 12:36 PM James Kerwin via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Hi,

I don't have a solution for you right now, but I can point you in the right direction for where to start. It looks like this needs a phrase. I believe it should usually say "unspecified" with something like this, but I've found an instance in one of my non-default views where this behaviour is shown.

If you look at your "year" browse view you might have some items without a year and they show as "Not Specified". Like in this example:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fview%2Fyear%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ixZyn%2BBBRyAvzyKZBWuU3H4X%2BwQVfKJolHPqy0CQ6M0%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fview%2Fyear%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ixZyn%2BBBRyAvzyKZBWuU3H4X%2BwQVfKJolHPqy0CQ6M0%3D&amp;reserved=0>

The phrase that generates this "Not Specified" text is in:

/opt/eprints3/lib/lang/en/phrases/system.xml

and looks like this:

<epp:phrase id="viewnull_eprint_year">Not Specified</epp:phrase>

You SHOULD be able to make something similar for the missing phrase in your custom view (and in a local phrase file for your EPrints archive. NOT the system phrase file in /opt/eprints3/lib/lang/en/phrases/system.xml). I'm not 100% certain this would work and I can't test it myself right now. I'm also not sure what your phrase id should be. I can try later on my repository and see if I get anywhere with it, but this might be enough to get you started?

I believe the code that handles this is in /opt/eprints3/perl_lib/EPrints/Update?Views.pm at line 595 (search for "viewnull" to get to this line: my $null_phrase_id = "viewnull_".$ds->base_id()."_".$view->{id};). You should not have to alter this, but it might tell you how to construct your phrase id.

Thanks,
James


On Thu, Dec 2, 2021 at 10:49 AM Sonu Yadav via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Kindly help me with this...
and how to add extra metrics in the activity overview area...


On Fri, Nov 19, 2021 at 12:46 PM Sonu Yadav <yvsonu1987 at gmail.com<mailto:yvsonu1987 at gmail.com>> wrote:
Dear Team,

1. I created the journals_volume browse by. It is successfully created. I came across some of the material that has no name for the periodicals mentioned in the records.
In the browse view menu page, It is not showing undefined clickable value in place of this it is only showing the no. of items only.
Note: I attached the screenshot for reference.
[image.png]

id=>"date",
                                  menus => [
                        {
                        fields => [ "publication" ],
                        allow_null => 1,
                        hideempty => 1,
                        new_column_at => [10,10],
                        }],
                 order=>"-date/title",
                 allow_null => 1,
                 variations => [
                   "date;res=year","date;res=month","creators_name","volume","number","DEFAULT"

                               ],
                },

2. On the above browse views code in the variations. I need month wise sorting for this I use date;res=month as well as date;res=mm but that is showing with Date and year while when I use date;res=year it is only showing year not date or month.

   In our repository we mention the date of publication with DDMMYYY. when we generate the variation or menu it create the long list for this we are not able to find the related material easily.

[image.png]

3. How to show the Activity Overview on the Homepage of the site from the Usage Statistics page.

I also attached the screenshot for reference.

[image.png]

4. I created the Document language metadata fields for browse by in the views.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fviews.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=D9abHY8pBaYngCHQbqDjF4ggb40pmbROqu30MkcgvGQ%3D&amp;reserved=0>. For this, there is the dupication of the work for mentioning the language in two place. Is there any possibilty that we can also create browse by things from the upload tab in the items workflow process that add the fexibility in the browsing and searching of the eprints sites.

Thanks,

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IKyqbgZSLd81Wd4S%2B0Ip7v560WzKWeBqXmn%2FHJY0wE4%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IKyqbgZSLd81Wd4S%2B0Ip7v560WzKWeBqXmn%2FHJY0wE4%3D&amp;reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=xNTzobhBO0GZnxn7XHi10IO%2FcD9Ozvyr3FI2byN9vYo%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=xNTzobhBO0GZnxn7XHi10IO%2FcD9Ozvyr3FI2byN9vYo%3D&amp;reserved=0>
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IKyqbgZSLd81Wd4S%2B0Ip7v560WzKWeBqXmn%2FHJY0wE4%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C65a1cf97b215488b736c08d9b591bfc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637740460938190938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=xNTzobhBO0GZnxn7XHi10IO%2FcD9Ozvyr3FI2byN9vYo%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211202/1b704f8c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 25798 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211202/1b704f8c/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 10316 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211202/1b704f8c/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9181 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211202/1b704f8c/attachment-0005.png 


More information about the Eprints-tech mailing list