[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:

The corresponding block in v3.3 is:
- 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.:
push @{ $c->{fields}->{eprint} },  {
### a copy of the definition of the field in the first link above, and:
  export_as_xml => 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:

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!


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.


Dan Stieneke
IT Specialist
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