[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] related_resources field display



Morning Rory,

It looks as though it is installed from the EPrints Bazaar. It was set up
before I started here, but it is enabled in the Bazaar and appears to be up
to date etc.

Thanks,
James

On Fri, Nov 23, 2018 at 4:52 PM Rory McNicholl <Rory.McNicholl at london.ac.uk>
wrote:

> Hi James,
>
>
> was recollect installed from the bazaar or github (
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Frecollect&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf2cdccbaa104a9d3cc308d6538339be%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=n6Yhda%2BBDJca4sQmPlZXhtPafpwcIL1uEGMGhwRwsos%3D&amp;reserved=0)?
>
>
> Just curiousity really
>
>
> The issue exists in both of them even though they are quite different.
> I've created a PR for it: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Frecollect%2Fpull%2F4&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf2cdccbaa104a9d3cc308d6538339be%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=0nQQ2qSBxHw3Cr%2BvrVvW9xkFfFAsyFY8zfOYr0hHiCA%3D&amp;reserved=0
>
>
> Cheers,
>
>
> Rory
>
>
>
> Rory McNicholl
> Lead developer
> Digital Archives & Research Technologies
> CoSector, University of London
> Senate House
> Malet Street
> London
> WC1E 7HU
>
> t: +44 (0)20 7863 1344
> e: rory.mcnicholl at london.ac.uk
> w: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ulcc.ac.uk%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf2cdccbaa104a9d3cc308d6538339be%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=iUVjeZY7m%2BmhMXk0%2FJYtfQ7z4UXJUJCWmoed8xz4U0w%3D&amp;reserved=0
>
> The University of London is an exempt charity in England and Wales.
> ------------------------------
> *From:* eprints-tech-bounces at ecs.soton.ac.uk <
> eprints-tech-bounces at ecs.soton.ac.uk> on behalf of James Kerwin via
> Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> *Sent:* 23 November 2018 13:28:11
> *To:* eprints-tech at ecs.soton.ac.uk
> *Subject:* [EP-tech] related_resources field display
>
> Hi All,
>
> I have a problem on our data repository which uses Recollect.
>
> On the staff view, the "Related Resources" field displays as something
> similar to:
>
> ARRAY(0x7f7c354a5c10)
>
> Checking the database I can see the links I submitted for this field are
> still in the format I expected, so the problem appears to be in the display
> of these items. It looks as though it's trying to print a hash/array
> instead of accessing the object the "proper" way.
>
> I've taken a good look at this and got to Details.pm in:
>
> /usr/share/eprints3/perl_lib/EPrints/Plugin/Screen/EPrint
>
> I can understand the code (more or less) to the point where it prints out
> each stages tab (Previews, Details, Actions, History, Issues) and how it
> appears to print the header for each section under each tab (e.g. Details
> ==> Upload, Details,Other Defined Fields.
>
> I just can't see where each subheading is then printed to screen (Creators
> of, Title of Divisions etc):
>
> [image: image.png]
>
> Irritatingly, on the repository we have an analogous "related_url" field
> that displays correctly. If I knew where to look I could just compare and
> correct it. Does anybody have any ideas? There is an x_recollect.pl
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fx_recollect.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf2cdccbaa104a9d3cc308d6538339be%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=sf7paN5vgyWQQg8105EYbzcKcu2R5kKkpty7Uonj5TA%3D&amp;reserved=0>
> in cfg.d that contains the following, but I don't think that's what I want:
>
>
> $c->add_dataset_field(
>     "eprint",
>     {
>      name         => 'related_resources',
>      type         => 'compound',
>      multiple     => 1,
>      render_value => 'EPrints::Extras::render_url_truncate_end',
>      fields       => [
> {
>   sub_name   => 'url',
>   type       => 'url',
>   input_cols => 40,
> },
> {
>   sub_name     => 'type',
>   type         => 'set',
>   render_quiet => 1,
>   options      => [
>       qw(
> pub
> author
> org
> )
>   ],
> } ],
>      input_boxes   => 1,
>      input_ordered => 0,
>     },
>     reuse => 1
>      );
>
>
> Thanks,
> James
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20181126/8d46c995/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 105045 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20181126/8d46c995/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 105045 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20181126/8d46c995/attachment-0003.png