<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Metacourse_Link_Block</id>
	<title>Metacourse Link Block - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Metacourse_Link_Block"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Metacourse_Link_Block&amp;action=history"/>
	<updated>2026-05-07T03:27:44Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Metacourse_Link_Block&amp;diff=707&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Metacourse_Link_Block&amp;diff=707&amp;oldid=prev"/>
		<updated>2024-10-14T16:47:35Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 16:47, 14 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Metacourse_Link_Block&amp;diff=706&amp;oldid=prev</id>
		<title>1&gt;Tim@horizoneducationnetwork.org: clean up, typos fixed: dont → don&#039;t</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Metacourse_Link_Block&amp;diff=706&amp;oldid=prev"/>
		<updated>2022-05-19T16:14:13Z</updated>

		<summary type="html">&lt;p&gt;clean up, typos fixed: dont → don&amp;#039;t&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This block allows Metacourse/Child course links to be created/kept up to date via CSV files. It is very similar in both appearance and programming to the [[Tutor Link Block]].&lt;br /&gt;
&lt;br /&gt;
It can be operated in two modes:&lt;br /&gt;
&lt;br /&gt;
Manual Upload - any user with the block/metalink:use capability (by default, only admins) can upload a file to process on demand.&lt;br /&gt;
&lt;br /&gt;
Automatic - a file location is configured, then the block automatically checks this location. If a file is found, it is processed and results emailed to the administrator.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The block has several configuration options, found in Site Administration/Plugins/Blocks/Upload Tutor Relationships.&lt;br /&gt;
*&amp;#039;&amp;#039;Location of File for Automatic Processing&amp;#039;&amp;#039; is the location of the file on the server&amp;#039;s local file system to be processed by the block&amp;#039;s cron job, allowing periodic updates of role assignments.  Leaving this blank will disable the cron job.&lt;br /&gt;
*&amp;#039;&amp;#039;Keep processed files&amp;#039;&amp;#039; allows files processed by cron jobs to be kept for future reference.&lt;br /&gt;
*&amp;#039;&amp;#039;Processed file location&amp;#039;&amp;#039; is the folder that processed files will be placed in, if &amp;#039;&amp;#039;Keep processed files&amp;#039;&amp;#039; is ticked.&lt;br /&gt;
*&amp;#039;&amp;#039;Days to keep processed files for&amp;#039;&amp;#039; is self-explanatory. After this many days, processed files will be deleted.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Correct File Format ===&lt;br /&gt;
The files to be processed should be in CSV format (hopefully no surprises there). &lt;br /&gt;
&lt;br /&gt;
They may consist of any number of rows, each with three fields: tutor idnumber,tutee idnumber, action; it is important to note that the idnumbers are expected to be populated from an external database, they are not the id field in the user table. Action can be add or del, with add creating relationships and del deleting relationships. None of the fields should be delimited.&lt;br /&gt;
&lt;br /&gt;
As of Moodle 2.0, the order of the fields changed slightly to make them more consistent with the Flatfile Enrolements plugin.&lt;br /&gt;
The format for each row is now: action, parent course idnumber, child course idnumber. For example, a file with this contents:&lt;br /&gt;
 add, 1234, 4321&lt;br /&gt;
 add, 1234, 4322&lt;br /&gt;
 del, 2232, 3223&lt;br /&gt;
Will assign the courses with idnumbers 4321 and 4321 as children of the course with idnumber 1234, then remove the course with idnumber 3223 from the course with idnumber 2232.&lt;br /&gt;
Note than unlike 1.9, each row &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; contain three columns.&lt;br /&gt;
&lt;br /&gt;
Trying to add relationships that already exist in Moodle or remove those that don&amp;#039;t will not cause problems, as this block will skip over those records.&lt;br /&gt;
&lt;br /&gt;
=== Manual upload ===&lt;br /&gt;
After the CSV file is created, navigate to the page containing the block, and upload the file. It will be processed and a report will appear showing you the operations that were successful, along with any errors.&lt;br /&gt;
&lt;br /&gt;
=== Automatic processing ===&lt;br /&gt;
A file placed at the path specified in &amp;#039;&amp;#039;Location of file for automatic processing&amp;#039;&amp;#039; will be processed automatically when the block&amp;#039;s cron job runs.  A report will then be emailed to the Moodle Administrator.&lt;br /&gt;
&lt;br /&gt;
[[Category:Block]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tim@horizoneducationnetwork.org</name></author>
	</entry>
</feed>