<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hinkelman</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hinkelman"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/Special:Contributions/Hinkelman"/>
	<updated>2026-04-17T20:32:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140470</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140470"/>
		<updated>2021-06-26T06:24:31Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.10 has been released, 2021.06.26&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 3 - 2020.04.15  (fixed a bug where section copy was not consistent)&lt;br /&gt;
*Block: Sharing Cart 3.10      release 3 - 2021.06.26  (many minor fixes and enhancements)&lt;br /&gt;
&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s easier to see which files belong there.&lt;br /&gt;
    **Labels with images now resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete has a layout overhaul.&lt;br /&gt;
    **Loading boxes match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported.&lt;br /&gt;
#  PHP 7.2 or later is required. Older versions of PHP may cause problems with badges and more.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* For future versions, depending on funding, contact maintainers if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* The Sharing Cart uses core code that has significant issues. See MDL-12403:  Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database”  Bug—critical; MDL-41924:  Minimize questions in Question Bank-new; MDL-19721:  Put Sharing Cart into core. Voting for these issues may help the Sharing Cart provide better performance and user satisfaction.&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. Before, we were recommending sharing questions with the &amp;quot;System&amp;quot; level question category because the philosophy of Moodle of collaboration and sharing.  However due to a long-standing bug in Moodle core, if you keep thousands of questions at the System level, it will slow down all sharing of quizzes, even to the point of crashing backup/restore.&lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140469</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140469"/>
		<updated>2021-06-26T06:22:28Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.10 has been released, 2021.06.26&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 3 - 2020.04.15  (fixed a bug where section copy was not consistent)&lt;br /&gt;
*Block: Sharing Cart 3.10      release 3 - 2021.06.26  (many minor fixes and enhancements)&lt;br /&gt;
&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s easier to see which files belong there.&lt;br /&gt;
    **Labels with images now resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete has a layout overhaul.&lt;br /&gt;
    **Loading boxes match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported.&lt;br /&gt;
#  PHP 7.2 or later is required. Older versions of PHP may cause problems with badges and more.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* The Sharing Cart uses core code that has significant issues. See MDL-12403:  Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database”  Bug—critical; MDL-41924:  Minimize questions in Question Bank-new; MDL-19721:  Put Sharing Cart into core. Voting for these issues may help the Sharing Cart provide better performance and user satisfaction.&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. Before, we were recommending sharing questions with the &amp;quot;System&amp;quot; level question category because the philosophy of Moodle of collaboration and sharing.  However due to a long-standing bug in Moodle core, if you keep thousands of questions at the System level, it will slow down all sharing of quizzes, even to the point of crashing backup/restore.&lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140468</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=140468"/>
		<updated>2021-06-26T06:20:39Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.10 has been released, 2021.06.26&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 3 - 2020.04.15  (fixed a bug where section copy was not consistent)&lt;br /&gt;
*Block: Sharing Cart 3.10      release 3 - 2021.06.26  (many minor fixes and enhancements)&lt;br /&gt;
&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s easier to see which files belong there.&lt;br /&gt;
    **Labels with images now resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete has a layout overhaul.&lt;br /&gt;
    **Loading boxes match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* The Sharing Cart uses core code that has significant issues. See MDL-12403:  Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database”  Bug—critical; MDL-41924:  Minimize questions in Question Bank-new; MDL-19721:  Put Sharing Cart into core. Voting for these issues may help the Sharing Cart provide better performance and user satisfaction.&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. Before, we were recommending sharing questions with the &amp;quot;System&amp;quot; level question category because the philosophy of Moodle of collaboration and sharing.  However due to a long-standing bug in Moodle core, if you keep thousands of questions at the System level, it will slow down all sharing of quizzes, even to the point of crashing backup/restore.&lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136925</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136925"/>
		<updated>2020-04-23T15:16:39Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8.3 has been released, 2020.04.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 3 - 2020.04.15  (fixed a bug where section copy was not consistent)&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s easier to see which files belong there.&lt;br /&gt;
    **Labels with images now resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete has a layout overhaul.&lt;br /&gt;
    **Loading boxes match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* The Sharing Cart uses core code that has significant issues. See MDL-12403:  Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database”  Bug—critical; MDL-41924:  Minimize questions in Question Bank-new; MDL-19721:  Put Sharing Cart into core. Voting for these issues may help the Sharing Cart provide better performance and user satisfaction.&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. Before, we were recommending sharing questions with the &amp;quot;System&amp;quot; level question category because the philosophy of Moodle of collaboration and sharing.  However due to a long-standing bug in Moodle core, if you keep thousands of questions at the System level, it will slow down all sharing of quizzes, even to the point of crashing backup/restore.&lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136874</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136874"/>
		<updated>2020-04-16T13:52:49Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Issues to Consider */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8.2 has been released, 2020.03.31&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons should be converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s hard to see which files belong there.&lt;br /&gt;
    **Labels with images don&#039;t resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete could use a layout overhaul.&lt;br /&gt;
    **Loading boxes should match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* The Sharing Cart uses core code that has significant issues. See MDL-12403:  Minimize questions in Question Bank-original “Backup/Import of single quiz includes all questions in database”  Bug—critical; MDL-41924:  Minimize questions in Question Bank-new; MDL-19721:  Put Sharing Cart into core. Voting for these issues may help the Sharing Cart provide better performance and user satisfaction.&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. Before, we were recommending sharing questions with the &amp;quot;System&amp;quot; level question category because the philosophy of Moodle of collaboration and sharing.  However due to a long-standing bug in Moodle core, if you keep thousands of questions at the System level, it will slow down all sharing of quizzes, even to the point of crashing backup/restore.&lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136838</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136838"/>
		<updated>2020-04-07T00:14:34Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8.2 has been released, 2020.03.31&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons should be converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s hard to see which files belong there.&lt;br /&gt;
    **Labels with images don&#039;t resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete could use a layout overhaul.&lt;br /&gt;
    **Loading boxes should match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136837</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136837"/>
		<updated>2020-04-07T00:12:29Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 has been released, 2020.03.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    **Icons should be converted to font-awesome.&lt;br /&gt;
    **Dropzones for moving are just empty white spaces.&lt;br /&gt;
    **Match dropzones when copying activity to section.&lt;br /&gt;
    **When expanding folders, it&#039;s hard to see which files belong there.&lt;br /&gt;
    **Labels with images don&#039;t resize and just add the fullsize image.&lt;br /&gt;
    **Alerts/Confirm boxes should be modals.&lt;br /&gt;
    **Bulkdelete could use a layout overhaul.&lt;br /&gt;
    **Loading boxes should match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    **When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    **PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    **Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    **Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136836</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136836"/>
		<updated>2020-04-07T00:11:13Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 has been released, 2020.03.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2020.03.15  (many interface improvements--listed below)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 2 - 2020.03.31  (fixed a bug where Firefox would not show icons properly)&lt;br /&gt;
*UI improvements in 3.8:&lt;br /&gt;
    Icons should be converted to font-awesome.&lt;br /&gt;
    Dropzones for moving are just empty white spaces.&lt;br /&gt;
    Match dropzones when copying activity to section.&lt;br /&gt;
    When expanding folders, it&#039;s hard to see which files belong there.&lt;br /&gt;
    Labels with images don&#039;t resize and just add the fullsize image.&lt;br /&gt;
    Alerts/Confirm boxes should be modals.&lt;br /&gt;
    Bulkdelete could use a layout overhaul.&lt;br /&gt;
    Loading boxes should match moodle better.&lt;br /&gt;
&lt;br /&gt;
*Bug fixes in 3.8:&lt;br /&gt;
    When changing groupmode, or duplicating activity, the sharing cart icons disappear.&lt;br /&gt;
    PHP warning when adding activity to a subfolder, of an empty folder.&lt;br /&gt;
    Sometimes unable to delete folders, due to duplicate names and no user check.&lt;br /&gt;
&lt;br /&gt;
*New features in 3.8:&lt;br /&gt;
    Copy section dropdown in the block, due to some course formats preventing sharing cart from adding icons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--3.8 release from [https://github.com/donhinkelman/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136756</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136756"/>
		<updated>2020-03-14T15:36:55Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Translations available (as of January 2015) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 has been released, 2020.03.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available ==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
* Chinese&lt;br /&gt;
* Japanese&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136755</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136755"/>
		<updated>2020-03-14T15:35:53Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 has been released, 2020.03.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1  2019.06.25 to release 11 2020.0310  (many changes, including section copy, copy with data)&lt;br /&gt;
*Block: Sharing Cart 3.8      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136235</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136235"/>
		<updated>2019-12-18T23:36:22Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 is being tested, SC for 3.7 available (ver 3.6 release 1 tested OK)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item): 1) Restore activities (moodle/restore:restoreactivity); 2) Restore courses (moodle/restore:restorecourse). Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136234</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136234"/>
		<updated>2019-12-18T23:35:30Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 is being tested, SC for 3.7 available (ver 3.6 release 1 tested OK)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* It seems that two capabilities are required by a user in order to use the plugin in the most basic scenario (copying an item):&lt;br /&gt;
Restore activities (moodle/restore:restoreactivity)&lt;br /&gt;
Restore courses (moodle/restore:restorecourse)&lt;br /&gt;
Therefore, programmers and administrators must be aware of this when granting permission to using the Sharing Cart. Currently there is an open issue of an exception thrown when a user does not have these two capabilities.&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136233</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136233"/>
		<updated>2019-12-18T23:31:41Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/donhinkelman/moodle-block_sharing_cart&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tue Korsgaard|Tue Korsgaard]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 is being tested, SC for 3.7 available (ver 3.6 release 1 tested OK)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* *Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* &lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
The designers of this block were Don Hinkelman and Andy Johnson of the Moodle Association of Japan. This block was originally programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL. Tue Korsgaard of Praxis became a maintainer from November 2019, assisting Don Hinkelman. Funding has been provided by Sapporo Gakuin University, the University of Ulm, the Japan Association of Language Teaching--CALL SIG, and the Moodle Association of Japan. We welcome other contributors and thank Praxis for donating their time.  For issues and suggestions, please contact Don and Tue on the Sharing Cart github here (https://github.com/donhinkelman/moodle-block_sharing_cart) or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[https://github.com/donhinkelman/moodle-block_sharing_cart Issues and Feature Requests]] &lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136232</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=136232"/>
		<updated>2019-12-18T23:11:16Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/VERSION2-Inc/moodle-block_sharing_cart/issues&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tomonori Maruyama|Tomonori Maruyama]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 3.8 is being tested, SC for 3.7 available (ver 3.6 release 1 tested OK)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)  ... +more changes over next four years&lt;br /&gt;
*Block: Sharing Cart 3.6      release 1 - 2019.06.25  (many changes, including section copy, copy with data)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119817</id>
		<title>How to minimize the question bank when doing backup/restore</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119817"/>
		<updated>2015-09-16T01:06:52Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When you back up and restore a course or a quiz, often a very large question bank is backed up which includes many questions not being used in the course or quiz.  This can be a problem when the question bank on a site gets very large (over 1000 questions or over 500mb). At this point, backup and restore may fail due to timeouts or other technical reasons. Sharing courses on the Hub is also difficult because large question banks of unrelated questions are included which make sharing backup files difficult and confusing to teachers receiving the question bank.&lt;br /&gt;
&lt;br /&gt;
Originally, the question bank in a course and the upper level categories of questions has always been included in a backup.  In 2007, a Tracker issue (MDL-12403) was made to allow teachers and administrators to limit the questions included in a backup to just the ones needed. Discussion on that this issue showed that a solution was difficult and in 2013, a checkbox was added to the Backup procedure to completely remove the question bank in a backup file. Thus from Moodle 2.7, it was possible to do an all-or-nothing inclusion or exclusion of the question bank. When the checkbox to exclude the question bank is checked, all quizzes are also removed from the backup.&lt;br /&gt;
&lt;br /&gt;
This did not solve the original issue so a separate Tracker issue was made concerning how to minimize or select the questions included in a backup (MDL-41924). As of Moodle 2.9, this issue is still open. As teachers and admins need to share questions and share courses which often include quizzes (one of the most popular activities in Moodle), it is still possible to minimize the questions, though doing it manually is complicated. The following workaround was successfully done in Moodle 2.9.1, and the resulting course backup file was restored on a Moodle 2.8.5 site. &lt;br /&gt;
&lt;br /&gt;
This workaround strategy is based on the design of the question bank which only includes questions in a backup that are in the same category or a higher level category.  Thus System Level questions are included in every backup on the site.  Note that Moodle uses the word &amp;quot;category&amp;quot; in two ways which can be confusing.  A &amp;quot;category&amp;quot; can refer to a group of courses (Course Category) or a group of questions (question bank category).  In this section, we usually use &amp;quot;category&amp;quot; to mean a group of questions in the question bank.  These categories are also called &amp;quot;contexts&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workaround to Minimize Questions in a Course Backup&#039;&#039;&#039;&lt;br /&gt;
#  Move all questions from System Level and other upper level Categories in your question bank to lower category levels--down to course level categories.  (this makes it difficult to view and share, but is necessary). &lt;br /&gt;
#  Move the course (or a copy of the course) to a temporary Course Category somewhere on your site where there are no other courses.&lt;br /&gt;
#  Make a backup of your course and restore this backup in the same Course Category.  (Moodle will automatically push all upper level category questions into course level categories--you will see this happen on the screen).&lt;br /&gt;
#  Go into the newly restored course and open the Question Bank.  You will see all questions are at the course level.  &lt;br /&gt;
#  Prune (delete) all unneeded questions in your newly restored course.  Do not worry about deleting here, because you are only deleting course level copies of the questions.  The original questions on your site are not affected.  &lt;br /&gt;
#  As you delete groups of questions, Moodle will list and confirm the questions you wish to delete. If you mistakenly try to delete a question that is being used in your course, Moodle will mark that one with an asterisk.  Then cancel the deletion, and try selecting again.  Note those questions and cancel the deletion and choose only unneeded questions.  (in the case of thousands of questions, this deletion process can take a long time). &lt;br /&gt;
#  After you have minimized the questions manually by deletion at these course level categories, you can now make a another backup file and when you restore it, only the remaining questions you selected will be included.&lt;br /&gt;
&lt;br /&gt;
In addition, you can encourage Moodle HQ to tackle this issue by voting, watching, and commenting in these two tracker issues: MDL-41924 and MDL-12403.&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119816</id>
		<title>How to minimize the question bank when doing backup/restore</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119816"/>
		<updated>2015-09-16T01:04:59Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When you back up and restore a course or a quiz, often a very large question bank is backed up which includes many questions not being used in the course or quiz.  This can be a problem when the question bank on a site gets very large (over 1000 questions or over 500mb). At this point, backup and restore may fail due to timeouts or other technical reasons. Sharing courses on the Hub is also difficult because large question banks of unrelated questions are included which make sharing backup files difficult and confusing to teachers receiving the question bank.&lt;br /&gt;
&lt;br /&gt;
Originally, the question bank in a course and the upper level categories of questions has always been included in a backup.  In 2007, a Tracker issue (MDL-12403) was made to allow teachers and administrators to limit the questions included in a backup to just the ones needed. Discussion on that this issue showed that a solution was difficult and in 2013, a checkbox was added to the Backup procedure to completely remove the question bank in a backup file. Thus from Moodle 2.7, it was possible to do an all-or-nothing inclusion or exclusion of the question bank. When the checkbox to exclude the question bank is checked, all quizzes are also removed from the backup.&lt;br /&gt;
&lt;br /&gt;
This did not solve the original issue so a separate Tracker issue was made concerning how to minimize or select the questions included in a backup (MDL-41924). As of Moodle 2.9, this issue is still open. As teachers and admins need to share questions and share courses which often include quizzes (one of the most popular activities in Moodle), it is still possible to minimize the questions, though doing it manually is complicated. The following workaround was successfully done in Moodle 2.9.1, and the resulting course backup file was restored on a Moodle 2.8.5 site. &lt;br /&gt;
&lt;br /&gt;
This workaround strategy is based on the design of the question bank which only includes questions in a backup that are in the same category or a higher level category.  Thus System Level questions are included in every backup on the site.  Note that Moodle uses the word &amp;quot;category&amp;quot; in two ways which can be confusing.  A &amp;quot;category&amp;quot; can refer to a group of courses (Course Category) or a group of questions (question bank category).  In this section, we usually use &amp;quot;category&amp;quot; to mean a group of questions in the question bank.  These categories are also called &amp;quot;contexts&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workaround to Minimize Questions in a Course Backup&#039;&#039;&#039;&lt;br /&gt;
#1.  Move all questions from System Level and other upper level Categories in your question bank to lower category levels--down to course level categories.  (this makes it difficult to view and share, but is necessary). &lt;br /&gt;
#2.  Move the course (or a copy of the course) to a temporary Course Category somewhere on your site where there are no other courses.&lt;br /&gt;
*3.  Make a backup of your course and restore this backup in the same Course Category.  (Moodle will automatically push all upper level category questions into course level categories--you will see this happen on the screen).&lt;br /&gt;
*4.  Go into the newly restored course and open the Question Bank.  You will see all questions are at the course level.  &lt;br /&gt;
5.  Prune (delete) all unneeded questions in your newly restored course.  Do not worry about deleting here, because you are only deleting course level copies of the questions.  The original questions on your site are not affected.  &lt;br /&gt;
6.  As you delete groups of questions, Moodle will list and confirm the questions you wish to delete. If you mistakenly try to delete a question that is being used in your course, Moodle will mark that one with an asterisk.  Then cancel the deletion, and try selecting again.  Note those questions and cancel the deletion and choose only unneeded questions.  (in the case of thousands of questions, this deletion process can take a long time). &lt;br /&gt;
7.  After you have minimized the questions manually by deletion at these course level categories, you can now make a backup and only the remaining questions you selected will be in the backup file.&lt;br /&gt;
&lt;br /&gt;
In addition, you can encourage Moodle HQ to tackle this issue by voting, watching, and commenting in these two tracker issues: MDL-41924 and MDL-12403.&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119815</id>
		<title>How to minimize the question bank when doing backup/restore</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=119815"/>
		<updated>2015-09-16T00:55:53Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: How to minimize the question bank when doing backup/restore&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When you back up and restore a course or a quiz, often a very large question bank is backed up which includes many questions not being used in the course or quiz.  This can be a problem when the question bank on a site gets very large (over 1000 questions or over 500mb). At this point, backup and restore may fail due to timeouts or other technical reasons. Sharing courses on the Hub is also difficult because large question banks of unrelated questions are included which make sharing backup files difficult and confusing to teachers receiving the question bank.&lt;br /&gt;
&lt;br /&gt;
Originally, the question bank in a course and the upper level categories of questions has always been included in a backup.  In 2007, a Tracker issue (MDL-12403) was made to allow teachers and administrators to limit the questions included in a backup to just the ones needed. Discussion on that this issue showed that a solution was difficult and in 2013, a checkbox was added to the Backup procedure to completely remove the question bank in a backup file. Thus from Moodle 2.7, it was possible to do an all-or-nothing inclusion or exclusion of the question bank. When the checkbox to exclude the question bank is checked, all quizzes are also removed from the backup.&lt;br /&gt;
&lt;br /&gt;
This did not solve the original issue so a separate Tracker issue was made concerning how to minimize or select the questions included in a backup (MDL-41924). As of Moodle 2.9, this issue is still open. As teachers and admins need to share questions and share courses which often include quizzes (one of the most popular activities in Moodle), it is still possible to minimize the questions, though doing it manually is complicated. The following workaround was successfully done in Moodle 2.9.1, and the resulting course backup file was restored on a Moodle 2.8.5 site. &lt;br /&gt;
&lt;br /&gt;
This workaround strategy is based on the design of the question bank which only includes questions in a backup that are in the same category or a higher level category.  Thus System Level questions are included in every backup on the site.  Note that Moodle uses the word &amp;quot;category&amp;quot; in two ways which can be confusing.  A &amp;quot;category&amp;quot; can refer to a group of courses (Course Category) or a group of questions (question bank category).  In this section, we usually use &amp;quot;category&amp;quot; to mean a group of questions in the question bank.  These categories are also called &amp;quot;contexts&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workaround to Minimize Questions in a Course Backup&#039;&#039;&#039;&lt;br /&gt;
1.  Move all questions from System Level and other upper level Categories in your question bank to lower category levels--down to course level categories.  (this makes it difficult to view and share, but is necessary). &lt;br /&gt;
2.  Move the course (or a copy of the course) to a temporary Course Category somewhere on your site where there are no other courses.&lt;br /&gt;
3.  Make a backup of your course and restore this backup in the same Course Category.  (Moodle will automatically push all upper level category questions into course level categories--you will see this happen on the screen).&lt;br /&gt;
4.  Go into the newly restored course and open the Question Bank.  You will see all questions are at the course level.  &lt;br /&gt;
5.  Prune (delete) all unneeded questions in your newly restored course.  Do not worry about deleting here, because you are only deleting course level copies of the questions.  The original questions on your site are not affected.  &lt;br /&gt;
6.  As you delete groups of questions, Moodle will list and confirm the questions you wish to delete. If you mistakenly try to delete a question that is being used in your course, Moodle will mark that one with an asterisk.  Then cancel the deletion, and try selecting again.  Note those questions and cancel the deletion and choose only unneeded questions.  (in the case of thousands of questions, this deletion process can take a long time). &lt;br /&gt;
7.  After you have minimized the questions manually by deletion at these course level categories, you can now make a backup and only the remaining questions you selected will be in the backup file.&lt;br /&gt;
&lt;br /&gt;
In addition, you can encourage Moodle HQ to tackle this issue by voting, watching, and commenting in these two tracker issues: MDL-41924 and MDL-12403.&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Question_bank&amp;diff=119814</id>
		<title>Question bank</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Question_bank&amp;diff=119814"/>
		<updated>2015-09-15T23:54:10Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing questions}}&lt;br /&gt;
This feature allows a teacher to create, preview, and edit questions in a database of question categories. The categories can be limited to being used on the site, course or quiz level.  The questions in a category can be added to a [[Quiz module|Quiz]] or to a [[Lesson module|lesson activity]] via an export process. The teacher enters the question bank by creating or editing a quiz activity or via &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Question bank&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Select a category==&lt;br /&gt;
Questions are organised into categories. Initially each course has only one category called &amp;quot;Default&amp;quot;. It is good practice to create more categories to organize your questions. This not only makes it easier to find questions, but makes the use of random questions and matching question easier. You can create a hierarchy of categories because you can create subcategories inside parent categories. To add or edit categories click on the &amp;quot;[[Question categories|Categories]]&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
The question editing screen shows the questions from the currently selected category. You choose this category from the &#039;&#039;&#039;Category:&#039;&#039;&#039; drop-down menu. Using the tick box below that menu you determine whether to also show the questions from all subcategories.&lt;br /&gt;
&lt;br /&gt;
===Categories are shared in contexts===&lt;br /&gt;
&lt;br /&gt;
There are separate question category trees in each different &#039;context&#039; in which questions are shared. The contexts available to you depend on whether you access the question bank from an activity or from a course and depend on the permissions assigned you for access to questions. See [[Question contexts]] for more information on these contexts.&lt;br /&gt;
&lt;br /&gt;
==Add a new question==&lt;br /&gt;
# Click the &#039;&#039;Questions&#039;&#039; tab to access the Question Bank page, if not there already.&lt;br /&gt;
# From the &#039;&#039;&#039;Category&#039;&#039;&#039; drop-down menu, select a category you want to add a question to.&lt;br /&gt;
# The page will change to show the questions already in that category&lt;br /&gt;
# Select the question type you want to create from the &#039;&#039;&#039;Create new question&#039;&#039;&#039; drop-down menu.&lt;br /&gt;
# Fill in the form for the question type you are creating. Each [[Question types|question type]] has its own form and has its own options.&lt;br /&gt;
# Click &#039;&#039;Save Changes&#039;&#039; at the bottom of the form.&lt;br /&gt;
&lt;br /&gt;
==Edit, duplicate, preview, delete and move==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:questionicons.png]]&lt;br /&gt;
&lt;br /&gt;
Each question in the question bank has four icons which allow you to edit, quickly duplicate, preview and delete the question. (The question may not be deleted if it is already in use elsewhere.)  To duplicate a question, click the duplicate icon (second from the left) and a copy of the question editing screen will appear. You can either edit this new copy or simply scroll down and click &amp;quot;Save changes.&amp;quot;To move a question into a different category or subcategory, click into the box on its left; scroll down to &amp;quot;With Selected...&amp;quot; and choose &amp;quot;Move to..&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Put the answer into the question name so you can quickly see the answers when students are asking for answers. This is especially useful if you&#039;re dealing with large sets of questions! (No option yet for viewing category or answer of question in the list of questions.)&lt;br /&gt;
*Export questions in GIFT or Moodle XML formats, then import them into a Lesson. (Future versions of Moodle will make Question bank available to both Lesson and Quiz activities.)&lt;br /&gt;
*Remember that while some of the same question types can be found in both the Quiz and Lesson modules, they can be very different.  Scoring and grading each student&#039;s choice is more robust in a Quiz.  On the other hand, each Lesson question answer also has a [[Jumps|jump]] associated it.&lt;br /&gt;
*Use GIFT or other export modes to print questions and answers in a category.  Hint, clever use of word processor macros, using search and replace, can tidy up a GIFT file for printing.&lt;br /&gt;
*The question title is useful in sorting and making notes. For example, &amp;quot;ZZ remove 2010-3 Why did the Moodler cross&amp;quot;, will put this question at the bottom of the list.  Or where you want a &#039;the&#039; questions in a category to appear in a specific order, use letters or numbers, knowing that AA will come first, AB will be second in the list.&lt;br /&gt;
*Do a copy and paste from a PDF file into the question content area.  Reduces &amp;quot;other&amp;quot; hidden code which Word, Open Office and other programs can insert.&lt;br /&gt;
&lt;br /&gt;
==Sharing and Managing Question banks==&lt;br /&gt;
&lt;br /&gt;
Be default, teachers can manage only the questions in the context of the courses they are in. You can set up a role to allow teachers to share and manager questions on a larger scale. &lt;br /&gt;
&lt;br /&gt;
You can also use this role to create a special system-wide &amp;quot;Question bank Manager&amp;quot; instead of giving admin level or site-wide Manager access to a person managing the Questions.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
*[[How to let teachers share questions between courses]]&lt;br /&gt;
*[[How to minimize the question bank when doing backup/restore]] &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://youtu.be/YQEx0PxRb4c Creating Quiz Questions (part 1)]  MoodleBites video on YouTube  &lt;br /&gt;
*[http://youtu.be/FGIh-5CYwzs Creating Quiz Questions (part 2)]  MoodleBites video on YouTube  &lt;br /&gt;
*[http://youtu.be/BRDbe7JcCBw Creating Quiz Questions (part 3)]  MoodleBites video on YouTube  &lt;br /&gt;
&lt;br /&gt;
[[de:Fragensammlung]]&lt;br /&gt;
[[es:Banco de Preguntas]]&lt;br /&gt;
[[eu:Galdera-bankua]]&lt;br /&gt;
[[fr:Questions]]&lt;br /&gt;
[[ja:問題バンク]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Question_bank&amp;diff=119813</id>
		<title>Question bank</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Question_bank&amp;diff=119813"/>
		<updated>2015-09-15T23:52:53Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing questions}}&lt;br /&gt;
This feature allows a teacher to create, preview, and edit questions in a database of question categories. The categories can be limited to being used on the site, course or quiz level.  The questions in a category can be added to a [[Quiz module|Quiz]] or to a [[Lesson module|lesson activity]] via an export process. The teacher enters the question bank by creating or editing a quiz activity or via &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Question bank&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Select a category==&lt;br /&gt;
Questions are organised into categories. Initially each course has only one category called &amp;quot;Default&amp;quot;. It is good practice to create more categories to organize your questions. This not only makes it easier to find questions, but makes the use of random questions and matching question easier. You can create a hierarchy of categories because you can create subcategories inside parent categories. To add or edit categories click on the &amp;quot;[[Question categories|Categories]]&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
The question editing screen shows the questions from the currently selected category. You choose this category from the &#039;&#039;&#039;Category:&#039;&#039;&#039; drop-down menu. Using the tick box below that menu you determine whether to also show the questions from all subcategories.&lt;br /&gt;
&lt;br /&gt;
===Categories are shared in contexts===&lt;br /&gt;
&lt;br /&gt;
There are separate question category trees in each different &#039;context&#039; in which questions are shared. The contexts available to you depend on whether you access the question bank from an activity or from a course and depend on the permissions assigned you for access to questions. See [[Question contexts]] for more information on these contexts.&lt;br /&gt;
&lt;br /&gt;
==Add a new question==&lt;br /&gt;
# Click the &#039;&#039;Questions&#039;&#039; tab to access the Question Bank page, if not there already.&lt;br /&gt;
# From the &#039;&#039;&#039;Category&#039;&#039;&#039; drop-down menu, select a category you want to add a question to.&lt;br /&gt;
# The page will change to show the questions already in that category&lt;br /&gt;
# Select the question type you want to create from the &#039;&#039;&#039;Create new question&#039;&#039;&#039; drop-down menu.&lt;br /&gt;
# Fill in the form for the question type you are creating. Each [[Question types|question type]] has its own form and has its own options.&lt;br /&gt;
# Click &#039;&#039;Save Changes&#039;&#039; at the bottom of the form.&lt;br /&gt;
&lt;br /&gt;
==Edit, duplicate, preview, delete and move==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:questionicons.png]]&lt;br /&gt;
&lt;br /&gt;
Each question in the question bank has four icons which allow you to edit, quickly duplicate, preview and delete the question. (The question may not be deleted if it is already in use elsewhere.)  To duplicate a question, click the duplicate icon (second from the left) and a copy of the question editing screen will appear. You can either edit this new copy or simply scroll down and click &amp;quot;Save changes.&amp;quot;To move a question into a different category or subcategory, click into the box on its left; scroll down to &amp;quot;With Selected...&amp;quot; and choose &amp;quot;Move to..&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Put the answer into the question name so you can quickly see the answers when students are asking for answers. This is especially useful if you&#039;re dealing with large sets of questions! (No option yet for viewing category or answer of question in the list of questions.)&lt;br /&gt;
*Export questions in GIFT or Moodle XML formats, then import them into a Lesson. (Future versions of Moodle will make Question bank available to both Lesson and Quiz activities.)&lt;br /&gt;
*Remember that while some of the same question types can be found in both the Quiz and Lesson modules, they can be very different.  Scoring and grading each student&#039;s choice is more robust in a Quiz.  On the other hand, each Lesson question answer also has a [[Jumps|jump]] associated it.&lt;br /&gt;
*Use GIFT or other export modes to print questions and answers in a category.  Hint, clever use of word processor macros, using search and replace, can tidy up a GIFT file for printing.&lt;br /&gt;
*The question title is useful in sorting and making notes. For example, &amp;quot;ZZ remove 2010-3 Why did the Moodler cross&amp;quot;, will put this question at the bottom of the list.  Or where you want a &#039;the&#039; questions in a category to appear in a specific order, use letters or numbers, knowing that AA will come first, AB will be second in the list.&lt;br /&gt;
*Do a copy and paste from a PDF file into the question content area.  Reduces &amp;quot;other&amp;quot; hidden code which Word, Open Office and other programs can insert.&lt;br /&gt;
&lt;br /&gt;
==Sharing and Managing Question banks==&lt;br /&gt;
&lt;br /&gt;
Be default, teachers can manage only the questions in the context of the courses they are in. You can set up a role to allow teachers to share and manager questions on a larger scale. &lt;br /&gt;
&lt;br /&gt;
You can also use this role to create a special system-wide &amp;quot;Question bank Manager&amp;quot; instead of giving admin level or site-wide Manager access to a person managing the Questions.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
*[[How to let teachers share questions between courses]]&lt;br /&gt;
*[[How to minimize the question back when doing backup/restore]] &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://youtu.be/YQEx0PxRb4c Creating Quiz Questions (part 1)]  MoodleBites video on YouTube  &lt;br /&gt;
*[http://youtu.be/FGIh-5CYwzs Creating Quiz Questions (part 2)]  MoodleBites video on YouTube  &lt;br /&gt;
*[http://youtu.be/BRDbe7JcCBw Creating Quiz Questions (part 3)]  MoodleBites video on YouTube  &lt;br /&gt;
&lt;br /&gt;
[[de:Fragensammlung]]&lt;br /&gt;
[[es:Banco de Preguntas]]&lt;br /&gt;
[[eu:Galdera-bankua]]&lt;br /&gt;
[[fr:Questions]]&lt;br /&gt;
[[ja:問題バンク]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119353</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119353"/>
		<updated>2015-07-23T07:36:09Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/VERSION2-Inc/moodle-block_sharing_cart/issues&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tomonori Maruyama|Tomonori Maruyama]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.9 is available (ver 2.9 release 1)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119091</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119091"/>
		<updated>2015-06-26T01:10:53Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/VERSION2-Inc/moodle-block_sharing_cart/issues&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tomonori Maruyama|Tomonori Maruyama]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.9 is available (ver 2.9 release 1)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119090</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=119090"/>
		<updated>2015-06-26T01:10:00Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/VERSION2-Inc/moodle-block_sharing_cart/issues&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tomonori Maruyama|Tomonori Maruyama]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.9 is available (ver 2.9 release 1)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
*Block: Sharing Cart 2.9      release 1 - 2015.06.25  (fixed function change to test_core)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=117636</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=117636"/>
		<updated>2015-03-23T01:42:27Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Block&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=block_sharing_cart&lt;br /&gt;
|tracker = https://github.com/VERSION2-Inc/moodle-block_sharing_cart/issues&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=87044&lt;br /&gt;
|maintainer = [[User:Tomonori Maruyama|Tomonori Maruyama]]; [[User:Don Hinkelman|Don Hinkelman]]&lt;br /&gt;
|float = right&lt;br /&gt;
}}[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.8 is available (ver 2.6 release 1, patch 6)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 6 - 2014.09.12  (later tested OK in Moodle 2.8.5+)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Translations available (as of January 2015)==&lt;br /&gt;
* German (de)&lt;br /&gt;
* Hebrew (he) &lt;br /&gt;
* Spanish - Mexico (es_mx)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;br /&gt;
&lt;br /&gt;
[[es:Carrito para Compartir]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112966</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112966"/>
		<updated>2014-06-06T06:49:29Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.7 is available (ver 2.6 release 1, patch 5)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.7 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112965</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112965"/>
		<updated>2014-06-06T06:48:38Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart for 2.7 is available (ver 2.6 release 1, patch 5)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 5 - 2014.06.06  (solved AJAX error message)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112964</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=112964"/>
		<updated>2014-06-06T06:46:08Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.7 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111793</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111793"/>
		<updated>2014-04-18T08:43:56Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with two minor bugs--only one folder can be created and the Essential theme hides the Sharing Cart icons. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111545</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111545"/>
		<updated>2014-04-01T15:26:37Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111543</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111543"/>
		<updated>2014-04-01T15:25:55Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|center]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111542</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111542"/>
		<updated>2014-04-01T15:25:10Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|330px|thumb|right]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111541</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111541"/>
		<updated>2014-04-01T15:24:02Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|300px|thumb|left]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111540</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111540"/>
		<updated>2014-04-01T15:23:13Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SharingCart-greycartplus.png|200px|thumb|left|Click to enlarge]]&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=File:SharingCart-greycartplus.png&amp;diff=111537</id>
		<title>File:SharingCart-greycartplus.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=File:SharingCart-greycartplus.png&amp;diff=111537"/>
		<updated>2014-04-01T15:20:35Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111533</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111533"/>
		<updated>2014-04-01T15:18:38Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
&lt;br /&gt;
[[File:SharingCart-greycartplus.png|200px|thumb|left|Click to enlarge]]&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111531</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111531"/>
		<updated>2014-04-01T15:17:18Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Community-hubs-flowchart.png|200px|thumb|left|Click to enlarge]]&lt;br /&gt;
&lt;br /&gt;
==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111337</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111337"/>
		<updated>2014-03-25T00:33:03Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from [https://moodle.org/plugins/view.php?plugin=block_sharing_cart moodle.org plugins directory]&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111336</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111336"/>
		<updated>2014-03-25T00:16:45Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 3 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fixed AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from moodle.org plugins directory&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111334</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111334"/>
		<updated>2014-03-24T21:44:02Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 2 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fix AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# now available for automatic download/upgrades from moodle.org plugins directory&lt;br /&gt;
# or download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111333</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=111333"/>
		<updated>2014-03-24T21:42:35Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 2 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 3 - 2014.02.24  (fix AMOS parsor error)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109951</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109951"/>
		<updated>2014-02-14T02:03:33Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Known Issues &amp;amp; Roadmap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 2 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2-2.6 is stable, with no reported bugs. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot. Sorry, this version is no longer updated.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* In SC 1.9, media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* For future versions, depending on funding, we wonder if there is interest to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109950</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109950"/>
		<updated>2014-02-14T01:55:56Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 release 1, patch 2 available&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (New backup format in Moodle 2.6 must be unchecked. Sharing Cart copies made with this new format should be deleted and recreated.)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1, patch 2 - 2014.02.14  (no need to uncheck new backup format)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109734</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109734"/>
		<updated>2014-02-06T22:34:31Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released--new backup format *must* be unchecked.&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6. New Backup Format in Moodle 2.6 *must* be unchecked.)&lt;br /&gt;
In Moodle 2.6 only, go to Site Administration&amp;gt;&amp;gt;Development&amp;gt;&amp;gt;Experimental settings and uncheck the new backup format option. Sharing Cart copies made with this new format should be deleted and recreated.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109733</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109733"/>
		<updated>2014-02-06T22:27:24Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released--new backup format *must* be unchecked.&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6. New Backup Format in Moodle 2.6 *must* be unchecked.)&lt;br /&gt;
Go to Site Administration&amp;gt;&amp;gt;Development&amp;gt;&amp;gt;Experimental settings and uncheck the new backup format option. Sharing Cart copies made with this new format should be deleted and recreated.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109732</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=109732"/>
		<updated>2014-02-06T22:25:06Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released--new backup format *must* be unchecked.&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6. New Backup Format in Moodle 2.6 *must* be unchecked.)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108851</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108851"/>
		<updated>2014-01-13T14:01:30Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      release 1 - 2014.01.07  (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6 with no problems, so he has renamed it 2.6 release 1)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108850</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108850"/>
		<updated>2014-01-13T13:59:39Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6 with no problem, so he has renamed it 2.6 release 1)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.3--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108849</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108849"/>
		<updated>2014-01-13T13:59:03Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6 with no problem, so he has renamed it 2.6 release 1)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.4--2.6 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108848</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108848"/>
		<updated>2014-01-13T13:57:41Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
New &amp;gt;&amp;gt; Sharing Cart 2.6 released&lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      (Tomonori Maruyama reports Sharing Cart 2.4 release 1, Patch 9 works in Moodle 2.6 with no problem, so he has renamed it 2.6 release 1)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.4 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108845</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108845"/>
		<updated>2014-01-13T13:53:54Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History== &lt;br /&gt;
*new* compatible with Moodle 2.6 &lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
*Block: Sharing Cart 2.6      (Tomonori Maruyama reports Sharing Cart 2.4 works in Moodle 2.6 with no problems)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.4 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108716</id>
		<title>Sharing Cart</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Sharing_Cart&amp;diff=108716"/>
		<updated>2014-01-04T14:04:51Z</updated>

		<summary type="html">&lt;p&gt;Hinkelman: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==  &lt;br /&gt;
*Block: Sharing Cart 1.9      release 1 - 2008.10.15&lt;br /&gt;
*Block: Sharing Cart 1.9      release 2 - 2009.02.19&lt;br /&gt;
*Block: Sharing Cart 1.9      release 3 - 2009.03.16&lt;br /&gt;
*Block: Sharing Cart 1.9      release 4 - 2009.04.14&lt;br /&gt;
*Block: Sharing Cart 1.9      release 5 - 2009.04.24&lt;br /&gt;
*Block: Sharing Cart 1.9      release 6 - 2009.06.22  (upload/download to the Moodlelang.org Repository)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 8 - 2009.09.18  (update for Moodle ver. 1.9.5+)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 9 - 2009.11.30  (adds a bulk delete/empty cart feature)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 10 - 2009.12.28 (update for Moodle ver. 1.9.7, help revised)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 11 - 2010.01.26 (common module settings are now retained, icons follow theme)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 12 - 2010.02.12 (fixes a missing file bug introduced in release 11, tested OK on Moodle 1.9.9)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 14 - 2010.09.30 (fixes a minor bug where the Sharing Cart would strip the Grade Category from a graded module)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 15 - 2012.05.29 (supports Postgres)&lt;br /&gt;
*Block: Sharing Cart 1.9      release 16 - 2012.12.05 (supports sticky blocks)&lt;br /&gt;
*Block: Sharing Cart 2.1      beta release - 2011.07.31&lt;br /&gt;
*Block: Sharing Cart 2.2      release 1 - 2012.04.26  (fixes a bug where multiple items copied into the SC, only the first item would copy out of the SC)&lt;br /&gt;
*Block: Sharing Cart 2.2      release 2 - 2012.09.04  (this version is now also compatible with Moodle 2.3)&lt;br /&gt;
*Block: Sharing Cart 2.3      release 1 - 2012.09.13  (new options: moving user data in glossary, forum, wiki and database activities) &lt;br /&gt;
*Block: Sharing Cart 2.4      release 1 - 2012.12.05  (recommended update because new API in Moodle 2.4 hides Sharing Cart 2.3 admin settings)&lt;br /&gt;
*Block: Sharing Cart 2.5      (Emma Richardson reports Sharing Cart 2.4 works in Moodle 2.5 with no problems)&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site.  With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data—similar to the “Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
#  Moodle version 2.3.1 or greater.  A previous version for 1.9 is also available. &lt;br /&gt;
#  PHP 5.3.3&lt;br /&gt;
#  Javascript/AJAX:  A browser with JavaScript and AJAX turned on in Moodle is required.&lt;br /&gt;
#  MySQL 5.1, PostgreSQL 8.4, SQL Server 2008 (= MSSQL10):   Postgres now supported in 1.9.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
# download latest 2.4 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart Github]&lt;br /&gt;
# download latest 1.9 release from [https://github.com/VERSION2-Inc/moodle-block_sharing_cart/tree/MOODLE_19_STABLE Github] &lt;br /&gt;
# download older 1.9 release from [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip CVS Contrib]&lt;br /&gt;
# unzip the package&lt;br /&gt;
# using FTP, open your blocks folder in your moodle program folder on your site&lt;br /&gt;
# place the folder &amp;quot;sharing_cart&amp;quot; into the blocks folder&lt;br /&gt;
# go to &amp;quot;Notifications&amp;quot; in your site admin area, by clicking the button, you will enable the repository plugin, and automatically generate database tables&lt;br /&gt;
# inside any course, &amp;quot;Turn editing on&amp;quot;, go to Blocks &amp;quot;Add...&amp;quot;, and you should see &amp;quot;sharing cart&amp;quot; in the list of blocks in the menu.&lt;br /&gt;
# if you are going to share Quiz Questions, you may need to add a new system role called Question Creator (see note below in &#039;Roles&#039;)&lt;br /&gt;
&lt;br /&gt;
==Operation==&lt;br /&gt;
# &#039;&#039;&#039;Turning On and Off&#039;&#039;&#039;: With editing on, add the Sharing Cart block from the block menu. After adding the Sharing Cart block, you will notice the block stays &amp;quot;on&amp;quot; the next time you enter that course. When you go to another course, add the Sharing Cart block to that new course.  Then you can see your Sharing Cart as you roam courses across a site.  Click the &amp;quot;X&amp;quot; icon to turn &amp;quot;off&amp;quot; the Sharing Cart, although the contents of the Sharing Cart will remain there when you turn it on again.&lt;br /&gt;
# &#039;&#039;&#039;Copying to the Sharing Cart&#039;&#039;&#039;: You will notice a small &amp;quot;Copy to Sharing Cart&amp;quot; icon which appears after each resource or activity in the center column of a Moodle course.  Click on that icon to send a copy of that resource/activity into the Sharing Cart.  User data will be removed, only the activity itself will be cloned.&lt;br /&gt;
#  &#039;&#039;&#039;Copying from the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;Copy to course&amp;quot; icon in Sharing Cart, then you will see many dotted boxes appear in the center column. Choose the location you wish to place your item, and it will be copied there directly.  &lt;br /&gt;
#  &#039;&#039;&#039;Making folders inside the Sharing Cart&#039;&#039;&#039;: Click the &amp;quot;move&amp;quot; icon on a course content item and an input box will appear.  Input the name of the target folder there.  To move an item into a folder, click the &amp;quot;Move to folder&amp;quot; icon in the Sharing Cart, then a drop-down list appears, and select the target folder. If you click the “Edit” button, you will replace the drop-down list with an input box.&lt;br /&gt;
&lt;br /&gt;
==Roles==&lt;br /&gt;
Generally, the Sharing Cart will duplicate any activity in any course that a teacher has access to.  However, quiz questions have another set of permissions independent of site roles.  Therefore, if you experience difficulty sharing questions in Moodle 1.9 (i.e. students cannot view embedded audio or images), we recommend making a new role within your site:&lt;br /&gt;
#  &#039;&#039;&#039;Add a new role--Question Creator:&#039;&#039;&#039; Make this role in Site Admin &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Permissions &amp;gt;&amp;gt; Define roles, and assign all teachers to this role (in addition to other roles they already have).  This role should be given at least the following rights (set permissions to &amp;quot;Allow&amp;quot;) under &amp;quot;Course&amp;quot;: Manage Activities, Manage Files,Add new questions, Edit all questions, Edit question categories, Move all questions, Use all questions, View all questions. &lt;br /&gt;
#  &#039;&#039;&#039;Set questions to System Question Category:&#039;&#039;&#039;  If you set questions to course or activity level categories, you may not be able to share them. &lt;br /&gt;
&#039;&#039;TIP 1:&#039;&#039; ...&#039;&#039;&#039;Possibly add another role--Question User:&#039;&#039;&#039;  If students are unable to view questions, make this role and assign all students to this role.  Set to &amp;quot;Allow&amp;quot; the following permissions:  Use all questions, View all questions.&lt;br /&gt;
&lt;br /&gt;
These additional roles are likely not needed in Moodle 2.x, because of more robust ways to save media files.&lt;br /&gt;
&lt;br /&gt;
==Known Issues &amp;amp; Roadmap==&lt;br /&gt;
* Sharing Cart 2.2 is stable, with no reported bugs. With Sharing Cart 2.2, release 2 (from Sept 4, 2012), you can install it on a new Moodle 2.3 site. Please send feedback directly to Don Hinkelman:  hinkel at sgu.ac.jp.&lt;br /&gt;
* Sharing Cart 1.9 works well with Moodle standard modules (activities and resources) including Hotpot.  Tested OK with the Feedback Module. Please test it and tell us if your third party module does or does not work.&lt;br /&gt;
* Some third party modules with incomplete backup/restore will not work with the Sharing Cart and may produce fatal errors. Here is what to do.[[Sharing Cart/Project Format Errors]]&lt;br /&gt;
* If you make an administrator setting to enable &amp;quot;split restore&amp;quot; (Admin block&amp;gt;&amp;gt;Miscellaneous&amp;gt;&amp;gt;experimental&amp;gt;&amp;gt;split restore), the Sharing Cart will not work properly. To make it work, turn off split restore.&lt;br /&gt;
* Media files are copied (not moved) to each instance of a new duplicate file.  This solves many troublesome issues of permissions to access the files.  However, for sites with restricted hard disk space, it may fill up space quickly.&lt;br /&gt;
* When AJAX course editing is enabled on your site, dragging the Sharing Cart block to a new location in the blocks area may cause trouble temporarily—all blocks may freeze or all the folders freeze (this is a bug in Moodle core).  To unfreeze the folders, reload the page.&lt;br /&gt;
* From June 2009, release 6 of the Sharing Cart is able to move content to and from the Moodle for Language Teaching Repository.  In the future it will be able to move items across any cooperating sites.  To test with http://moodlelang.org, download the latest Sharing Cart version from CVS. Or contact Don Hinkelman  hinkel at sgu.ac.jp&lt;br /&gt;
* For future versions, depending on funding, we plan to build a locking mechanism to prevent the Sharing Cart from copying commercial works or items that the author does not want copied.&lt;br /&gt;
&lt;br /&gt;
==Issues to Consider==&lt;br /&gt;
* Moodle 1.9 has a sophisticated system of permissions for the Question Bank.  Question categories can be limited to certain teachers.  The Sharing Cart operates on the assumption that sharing of questions is desirable and little control is needed.  We do not know all possible results that may happen if questions are copied and duplicated.  For example, if the question was originally limited to a &amp;quot;Course&amp;quot; category, will it share perfectly to other courses and students?  Please report to us any problems you find concerning this question. At the moment, we are recommending sharing questions with the &amp;quot;System&amp;quot; level question category. &lt;br /&gt;
* Finally, if your administration wishes to have a high degree of control of questions and activities, the Sharing Cart may be too easy-to-use. In terms of site user policies, we believe sharing permissions should be broadly applied not just to administrators, but to all teachers. Your policy on sharing depends on your institutional culture and values.&lt;br /&gt;
&lt;br /&gt;
==Legacy Repository Connection in Moodle 1.9== &lt;br /&gt;
[[Setup Repository Connection]] &lt;br /&gt;
A custom repository for Moodle 1.9 was created in 2009 and connected with Sharing Cart 1.9, release 6--this was only set up for one repository--Moodle for Language Teaching. With the advent of the Moodle Hub in version 2.x, the custom repository of 1.9 was no longer needed. The link shows legacy instructions for connecting the Repository with Sharing Cart in 1.9&lt;br /&gt;
&lt;br /&gt;
==Maintainers==&lt;br /&gt;
This block was programmed by Akio Ohnishi and Tomonori Maruyama at [http://www.ver2.jp/ Version2] Educational Web Development and released under GPL.  The designers and maintainers of this block are Don Hinkelman and Andy Johnson.  Funding is provided by Sapporo Gakuin University and the Japan Association of Language Teaching--CALL SIG. We welcome other contributors.  For issues and suggestions, please contact Don on the Sharing Cart forums or directly (hinkel at sgu.ac.jp).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Project Course Format|Project Course Format: a format for moving sections of a course]]&lt;br /&gt;
* [http://tracker.moodle.org/browse/CONTRIB-907/ Moodle Tracker CONTRIB-907]&lt;br /&gt;
* [http://download.moodle.org/download.php/plugins/blocks/sharing_cart.zip Download from CVS Contrib]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=87044 Forum discussions]&lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=2150 Modules and Plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category: Contributed code]]&lt;br /&gt;
[[Category: Block]]&lt;/div&gt;</summary>
		<author><name>Hinkelman</name></author>
	</entry>
</feed>