Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.5, 2.0
-
Fix Version/s: DEV backlog
-
Component/s: Blocks
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
We have developed 2 tools which allow to do mass actions on multiple resources and activities.
Toolbar was the first version, and it appeared in every course site once you click Turn Editing on. Later we have converted it to the Block format, which is more flexible, can be added on as-needed basis, and has more functionality.
1) Mass Actions Block - 1.9 and 2.0. We actively develop and support this block.
Supported actions:
- select multiple items one-by-one, select all, select all in section(s), deselect all
- with those: indent/outdent, hide, show, delete move to a section
- 1.9 version: Download "massaction.zip" (12 kB) file uploaded and attached to this ticket on 27/Feb/10 3:04 AM. You do not need to get any other files.
- 2.0 version: Download the latest code from https://github.com/hqhoang/moodle-block_massaction
2) Mass Actions Toolbar - 1.9 only. We do not develop/support the toolbar patch anymore.
Supported actions:
- select multiple items one-by-one
- with those: hide, show, delete, move to a section
- 1.9 version: Download "updated patch October 26, 2009.txt"(24 kB) file which is attached to this ticket. You do not need to get any other files.
DESCRIPTION:
The Mass Actions block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.
To use this block, Javascript must be enabled in your browser, you must be in editing mode in the course home page, and Ajax must be disabled. Only the courses in the Week or Topics formats are supported.
Supported actions include mass selection, indentation, deletion, hiding, showing, mass moving. To select items to perform actions on, simply click the checkbox to the right of it in the course home page or use select functionality, then click the action you would like to perform in the block.
If you have any suggestions or bug reports, please add to this ticket.
Attachments
-
- massaction_patch_build_20090604.txt
- 10/Sep/09 4:20 AM
- 23 kB
- Elena Ivanova
-
$i18n.getText("admin.common.words.hide")
- massaction.zip
- 27/Feb/10 3:04 AM
- 12 kB
- Elena Ivanova
-
- massaction/action.php 4 kB
- massaction/block_massaction.php 3 kB
- massaction/db/access.php 1 kB
- massaction/delete.php 2 kB
- massaction/hide.php 0.3 kB
- massaction/indent.php 0.6 kB
- massaction/lang/.../block_massaction.php 1 kB
- massaction/lang/.../massaction.html 0.8 kB
- massaction/lib.php 8 kB
- massaction/massaction.js 5 kB
- massaction/move.php 1 kB
- massaction/outdent.php 0.6 kB
- massaction/show.php 0.2 kB
-
- massaction.zip
- 27/Feb/10 1:55 AM
- 41 kB
- Elena Ivanova
-
$i18n.getText("admin.common.words.hide")
- massaction.zip
- 09/Dec/09 3:43 AM
- 11 kB
- Elena Ivanova
-
- massaction/action.php 4 kB
- massaction/block_massaction.php 3 kB
- massaction/db/access.php 1 kB
- massaction/delete.php 2 kB
- massaction/hide.php 0.3 kB
- massaction/indent.php 0.6 kB
- massaction/lang/.../block_massaction.php 1 kB
- massaction/lang/.../massaction.html 0.8 kB
- massaction/lib.php 8 kB
- massaction/massaction.js 4 kB
- massaction/move.php 1 kB
- massaction/outdent.php 0.6 kB
- massaction/show.php 0.2 kB
-
- updated patch October 26, 2009.txt
- 28/Oct/09 12:59 AM
- 24 kB
- Elena Ivanova
-
- mass.jpg
- 31 kB
- 04/Sep/09 1:00 AM
-
- massaction_block.jpg
- 18 kB
- 09/Dec/09 3:43 AM
-
- massaction_selectcontrols.jpg
- 12 kB
- 09/Dec/09 3:43 AM
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
I have realized that others may want to have the patch here, plus it will allow to keep track of them dome for different Moodle versions. So I am attaching the patch for Moodle 1.9.5+ build 20090604
We have found a bug in the toolbar - the course cache was not rebuilt right away after an action was applied, so while the module was set to be hidden (or open), it could still be displayed. Any other action on the course homepage would trigger the cache to be rebuilt, so the item would become hidden (open)
Attaching a fix.
Also, we will be re-doing the toolbar into the Block format, as it will allow greater flexibility for both instructors and admins, plus it will be less invasive to the code.
(New items to be added to the block: Select/Deselect all, Indent/Outdent)
Hi There,
I have just installed the block. Such a brilliant job.
However, whenever I click on the 'delete' option or actually any action options, I get a message saying I do not have permission.
Where have I gone wrong?
I guess, I just replied to your email.. so I will copy/paste ![]()
Is it only for Delete or for any other action?
What role are you in when you are trying to perform that action?
Try to check role permissions for the roles for that block. There are 2: view and use.
Sharmilee found the cause.
The issue occurs if you add the block as Sticky one as an admin.
I have attached an updated version of the block that has a fix for Internet Explorer (it is the very top file at the moment: massaction.zip (41 kB))
I've attached bad file several hours ago. So, here is a corrected one massaction.zip 12 kB
(can someone help me to clean up this ticket?
I do not think I can delete bad files myself)
I just installed this on our 1.9.7 version, and when I click either Select All or one of the topic links, the browser freezes up and I have to kill the browser to regain access. Any ideas on what might be causing this?
Hi Elizabeth,
Can you please tell what have you installed: the block or the toolbar?
What is the browser that you use, and does it happen in all browsers?
Do you have Javascript enabled?
Thank you
Thank you for this feature.
It speeds up course administration and is a blessing when you have a slow connection.
IMHO, this should be default behavior of Moodle interface.
This seems like a great block, but when I install it on 1.9.8 none of the checkboxes appear. Any ideas?
Hi Doug,
I cannot really help with installation
, but I will try.
Have you got correct zip archive: 1. Zip Archive massaction.zip (12 kB)?
You do not have it added as a sticky block?
Have you added the block to the course homepage and clicked Turn Editing on? ![]()
Also, Javascript must be enabled in your browser, and Ajax must be disabled.
Only the courses in the Week or Topics formats are supported.
I have the same problem as Elizabeth - the browser freezes when I click the dropdown "select all in section". But the problem occurs in one course only (which is in topics format). In other courses in works fine. And it doesn't make any difference whether ajax is enabled or not - in the courses where it works, it works with ajax enabled or disabled.
I am using Moodle 1.9.8,
Hi Barbara,
Can you please tell:
- What browser (version, number) and operating system do you use?
- Does this happen in all browsers?
- Do you have any sticky blocks, or any custom ones installed?
- If you will try the block on some new and "empty" course in topic format - will also not work? There is a possibility that block is chocking on some particular content item in the existing course.
Thank you!
P.s. we plan to update the block for 2.0, but most probably it will not be available till Spring 2012.
- What browser (version, number) and operating system do you use?
- Does this happen in all browsers?
- Do you have any sticky blocks, or any custom ones installed?
- If you will try the block on some new and "empty" course in topic format - will also not work? There is a possibility that block is chocking on some particular content item in the existing course. Thank you!
This is a great addition for Moodle, thank you very much !
However, I've been having some trouble installing it Debian GNU/Linux Squeeze, with Moodle 1.9.9.
I've downloaded massaction.zip and unzipped it in /usr/share/moodle/mod.
When I then login as admin and click on Notifications, it complains that:
"Module massaction: /usr/share/moodle/mod/massaction/version.php was not readable"
Normal, since this file does not exist. So I try by copying the version.php from another block. Then it complains with:
"Tried to modify database, but "/usr/share/moodle/mod/massaction/db/postgres7.sql" doesn't exist!"
Any hints ?
Moritz
just checking - which .zip file you ave grabbed? Please make sure to get the latest one from 27/Feb/10 3:04 AM
I will check with our developers may be they will have some hints :/
I was wondering if there were any plans to update this for 2.0/2.1?
Yes, we will be updating the Mass Actions block. Hopefully this task will be completed by the end of this year, or sooner.
Many thanks Elena. It's a brilliant block, and our users are missing it terribly!
UMN now has a version for Moodle 2 (tested on 2.0.* only), any feedback are appreciated. Thanks.
https://github.com/hqhoang/moodle-block_massaction
Michael - I've added you as a watcher. The code has been made available via Moodle Plugins (http://moodle.org/plugins/view.php?plugin=block_massaction) but I wanted to see if there seemed to be interest in including in core or if this should instead be moved to CONTRIB. Peace - Anthony
Huy, that seems to work well on our test installation of Moodle 2.1.2.
Hi Huy,
I have installed Mass Actions on 2.1.3+, and have noticed very slow load times for moving course resources/activities. The browser spins for 4 to 5 minutes. If I close the browser before the page loads, log back in, and visit the course, the items actually have moved. It is just the course page load that lags. Deleting, show/hide, etc. are very quick.
The server runs Suse 11.4, Mysql 5.1, PHP 5.3. I looked in the slow query log for Mysql and did not find anything related to Mass Actions.
Any ideas?
Rob
ugm, I have put PATCH....