Allowing Batch Tag Adding

Follow

Starting with Ares 4.6, users can add tags to multiple Items at once. These changes can be made on the ICourseInfo.html (for Instructors) and UCourseInfo.html (for students) pages.

Enable Batch Editing

First, the include_head.html page needs to be updated to reference the aresBatchEditing.js file.

  1. If not already done, add the aresBatchEditing.js file to your ares\js folder. This file was introduced with Ares 4.6. See Ares 4.7 Web Page Changes for more information.

  2. If not already done, add the include_head.html file to your Ares web folder.
  3. Ensure that the ICourseInfo.html and UCourseInfo.html pages reference the include_head.html file.
  4. Add this line of code to the include_head.html page:

    <script type="text/javascript" src="js/aresBatchEditing.js"></script>

Add Button and Menu

On the Item and Course Info pages, a button will need to be added. This button will be used to toggle the batch editing process. Additionally, you will need to include references to the menu pages associated with the batch tag process.

ICourseInfo.html

  1. On the Instructor Course Info page (ICourseInfo.html), add the following code. This code can be added anywhere, but note that on the default pages it is placed after the "Save Order" button and before the Item table.

    <button id="ShowBatchInterface" class="EnableBatchEditing" data-batchTable="ItemTable" data-batchMenu="batchMenu" data-enabletext="Enable Batch Tag Editing" data-disabletext="Disable Batch Tag Editing">Enable Batch Tag Editing</button>
  2. On the Instructor Course Info page (ICourseInfo.html), add the following code:

    <#INCLUDE filename="include_instructorBatchMenu.html">

UCourseInfo.html

  1. On the Student Course Info page (UCourseInfo.html), add the following code. This code can be added anywhere, but note that on the default pages it is placed after the "Sort By" dropdown and before the Item table.

    <button id="ShowBatchInterface" class="EnableBatchEditing" data-batchTable="SearchResults" data-batchMenu="batchMenu" data-enabletext="Enable Batch Tag Editing" data-disabletext="Disable Batch Tag Editing">Enable Batch Tag Editing</button>
  2. On the Student Course Info page (UCourseInfo.html), add the following code:

    <#INCLUDE filename="include_studentBatchMenu.html">

In the include_instructorBatchMenu.html and include_studentBatchMenu.html pages, the text for the "Add Batch Tags" button can be modified but the name of the button needs to remain as "AddBatchTags" in order for the javascript to function properly.

The data-baseUrl attribute should also remain unchanged.

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.