Skip to content
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

Merged
merged 6 commits into from Mar 13, 2014
Merged

Add ability to retroactively enable checksums #3

merged 6 commits into from Mar 13, 2014

Conversation

mjordan
Copy link

@mjordan mjordan commented Mar 13, 2014

@ruebot, I'll let you update the screencap linked in the README. Also, coder is showing the following code style error"

Line 60: No key specified for array entry; first entry specifies key [sniffer_squiz_arrays_arraydeclaration_nokeyspecified]
    ),

Code looks good to me - know how to fix that?

@ruebot
Copy link
Member

ruebot commented Mar 13, 2014

Restarting the Travis build

@ruebot
Copy link
Member

ruebot commented Mar 13, 2014

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

You know how to fix it? I can't figure out what the actual problem is.

@ruebot
Copy link
Member

ruebot commented Mar 13, 2014

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 ), to );, and I think the same goes for 66, 72, 77, and 80.

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

OK, thanks, lemme have a go in a few minutes.

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

OK, fixed. I'll commit, push, and issue a new PR.

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

OK, github magic - didn't need to open new PR.

@ruebot
Copy link
Member

ruebot commented Mar 13, 2014

Welcome to magic of Github! :octocat:

ruebot added a commit that referenced this pull request Mar 13, 2014
Add ability to retroactively enable checksums
@ruebot ruebot merged commit 678224f into Islandora:7.x Mar 13, 2014
@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

You may want to update the screencap in the README.

@ruebot
Copy link
Member

ruebot commented Mar 13, 2014

Ah, yeah good call! I'll do that when I get home, or at least add it to my
to do list. You'll get to merge it :-)
On 13 Mar 2014 16:37, "Mark Jordan" notifications@github.com wrote:

You may want to update the screencap in the README.


Reply to this email directly or view it on GitHubhttps://github.com//pull/3#issuecomment-37583628
.

@dmoses
Copy link

dmoses commented Mar 13, 2014

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.

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

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).

@mjordan
Copy link
Author

mjordan commented Mar 13, 2014

OK, corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants