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
Add ability to retroactively enable checksums #3
Conversation
…ums; testing required.
Restarting the Travis build |
Looks like you got burned by a Drupal Coding Standard error: |
You know how to fix it? I can't figure out what the actual problem is. |
I think it wants these blocks in admin.inc to looks like this: $form['islandora_checksum_checksum_retro_enable'] = array(
'#type' => 'fieldset',
'#title' => t('Retroactively enable checksums'),
); Like how we do it here. Basically, I think you just need to change line 60 from |
OK, thanks, lemme have a go in a few minutes. |
OK, fixed. I'll commit, push, and issue a new PR. |
OK, github magic - didn't need to open new PR. |
Welcome to magic of Github! |
Add ability to retroactively enable checksums
You may want to update the screencap in the README. |
Ah, yeah good call! I'll do that when I get home, or at least add it to my
|
Lads ... I dl'd and tested the module. It is working, but I did notice some odd behavior. I selected the checksum type, selected a collection then selected Enable. It runs though a process and looks like the checksum got applied. I checked the object with fedora/admin ... no checksum got applied. The user needs to save the configuration, then select Enable for the checksums to get generated. This is obvious now, but I missed it. |
Correct Don, if you are running the retro function before saving the config, it will actually rip through your objects and set the checksum type to 'DISABLED' (see https://github.com/Islandora/islandora_checksum/blob/7.x/islandora_checksum.module#L132), which is what you saw happening. That is a documentation oversite that will be fixed (I'll take care of it Nick). |
OK, corrected. |
@ruebot, I'll let you update the screencap linked in the README. Also, coder is showing the following code style error"
Code looks good to me - know how to fix that?