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

[EP-tech] EP 3.4.1 + pub flavour doesn't export <item_issues>



Hi Dan,
I suspect it may be related to this:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2Fd805362779e1bab2451531061e932c034702b63f%2Fperl_lib%2FEPrints%2FDataObj%2FEPrint.pm%23L247&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=W83boMqWI%2FZFjWmRoS3Avr6Rc9avKv%2FDgRom73LT%2Buc%3D&amp;reserved=0

The corresponding block in v3.3 is:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FDataObj%2FEPrint.pm%23L198-L247&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=RhhqkDRf%2BcjKUkS4F8BIt%2BLgjYDlVOsqu%2BS77fk7DeE%3D&amp;reserved=0
- which doesn't have the 'export_as_xml=>0,' flag.

One approach to solve this (entirely untested!) would be to replace the core field in an archive specific config file e.g.:
~/archives/ARCHIVE/cfg/cfg.d/zz_export_item_issues.pl
push @{ $c->{fields}->{eprint} },  {
### a copy of the definition of the field in the first link above, and:
  export_as_xml => 1,
  replace_core=>1
};

> I'm a sysadm, not a dev.

I've put the following gist together which might be easier - incase the perl gets mangled in email form:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fjesusbagpuss%2Fb1720d3ea23ac1ff7201a3263a247713&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=tq0Xxcok5Pj%2FeyNs%2FmC8FtJqv%2BYCKm%2BNpTB3%2BLWnJvY%3D&amp;reserved=0

Put that file in e.g. ~/archives/ARCHIVE/cfg/cfg.d/zz_export_item_issues.pl
run bin/epadmin test ARCHIVEID
try an export of one eprint - see if it's helped!

Cheers,
John



From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Stieneke, Dan via Eprints-tech
Sent: 28 July 2020 17:09
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] EP 3.4.1 + pub flavour doesn't export <item_issues>

Old server: Ubuntu 16.04LTS with EP 3.3.15. Worked great for years.
migrating to
New server: Ubuntu 18.04LTS, apt installed EP 3.4.1 from https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeb.eprints-hosting.org%2F3.4%2Fstable%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Udv4mBWdv3EETKcr70tUO%2Bb4Vg5ZkojWTj%2Bdp9fv6tg%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeb.eprints-hosting.org%2F3.4%2Fstable%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Udv4mBWdv3EETKcr70tUO%2Bb4Vg5ZkojWTj%2Bdp9fv6tg%3D&amp;reserved=0>; manually downloaded & unzipped publication flavor v3.4.1.

After setup of the new server, to verify that all data came over, I compared a complete XML export from the 3.3.15 server to a complete XML export from the 3.4.1 server, both using the ~/bin/export CLI tool.

The 3.3.15 export correctly contains <item_issues> tags & corresponding subtags. The 3.4.1 server correctly imports the <item_issues>, as they are visible on the 3.4.1 web pages, but it does not export any <item_issues> tags / subtags at all.

I'd like the 3.4.1 export to contain the <item_issues> tags, as next time I do a migration like this I'll want that data to be moved over to the newer machine.

I'm a sysadm, not a dev. I have basic perl skills, but looking at ~/perl_lib/EPrints/Plugin/Export/XML.pm, I don't understand how XML export works or where the actual heavy lifting occurs.

Suggestions?

Thanks,
Dan Stieneke
IT Specialist
AFM ITSD
USDA - ARS - NWISRL
3793 N 3600 E
Kimberly, ID 83341





This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200730/f177dfde/attachment-0001.html