EPrints Technical Mailing List Archive

Message: #08802


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

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


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:


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@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@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. 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: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/