-
Notifications
You must be signed in to change notification settings - Fork 31
tools/rename_subject_id: incompatible with current installation (3.4.6) #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Spoke too soon, this script seems to need an update generally. |
Looked into it a little further.
It does not seem to be a straight forward change to me. But maybe some dev with more insight into the DB structure could chime in. |
Renaming subject IDs is general a bad idea unless you do it straightaway after you spot a typo or similar. This is why there is the machine-readable subject ID and a separate human-readable subject name (i.e. label) that can be changed without any implications.
Having not look too closely at how it currently works, I would expect that something that can determine all fields that may contain subjects would needed and then looped through and update their use of the renamed subject. I don't think it would be too difficult to do. It could though generate a lot of work for the indexer. |
Alright, thanks for your quick feedback. |
After adapting the include path on its first line to point to
/opt/eprints3
the script generally runs. (Some kind of relative path would be nice, but I am not versed in Perl, a simple-I../perl_lib
did not work)However I get an error:
I tried to change
use EPrints::Database
touse EPrints::Database qw(:sql_types)
as I found this in the wiki, but to no avail.EPrints.pm
already has it,perl_lib/EPrints/Database/mysql.pm
did not have it, so I added it there as well, but it still does not work.What does work is if I change
use EPrints::Database
touse EPrints
intools/rename_subject_id
, but I don't know if this is the correct way to fix this.The text was updated successfully, but these errors were encountered: