I see the Import option in the dev release and the checklist of options for nodes, but no code to actually process those nodes. What was the plan for this?

I'm not sure this UI is going to work for a site like www.denveropenmedia.org where I need to convert 4000 nodes with CC licenses.

CommentFileSizeAuthor
#1 creativecommons_bulk.patch1.68 KBkreynen

Comments

kreynen’s picture

StatusFileSize
new1.68 KB

As I thought, loading 4000 checkboxes into a form was a no-go. This patch is really for the bare minimum we needed for our transition. Once installed, users with Admin Creative Commons permission can navigate directly to admin/settings/creativecommons/import/bulk

Obviously more work needs to be done, but this keeps the ball rolling. Hopefully someone with a different use case can add to this patch.

kreynen’s picture

Status: Active » Needs review
turadg’s picture

Status: Needs review » Needs work

Looking at the code, I have some questions:

1) Why does it hard-code BY-NC 3.0 as the license? Is that all that CC_Lite supports? If not, can this importer read the license from CC_Lite?

2) Instead of printing, shouldn't it send to a log?

3) The UI text says "Convert Creative Commons Licenses" but really it's just copying them into another module, right? The CC_Lite licenses stay in place. Should this code also remove those?

kreynen’s picture

I doesn't hard-code the license...

$new_license = 'http://creativecommons.org/licenses/' . $row->license . '/3.0/us/

+//http://creativecommons.org/licenses/by-nc/3.0/us/ <- is just a comment for reference

The import should allow bother the version and jurisdiction to be set.

The reason is prints and isn't completely intuitive is it was written to scratch my itch and get the licenses converted on a few large sites. This works, but needs work.

kreynen’s picture

Status: Needs work » Closed (works as designed)