<?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=Using_Database</id>
	<title>Using Database - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Using_Database"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Database&amp;action=history"/>
	<updated>2026-05-06T16:41:14Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Using_Database&amp;diff=6173&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Database&amp;diff=6173&amp;oldid=prev"/>
		<updated>2024-10-18T06:47:18Z</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;Версия от 06:47, 18 октября 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=Using_Database&amp;diff=6172&amp;oldid=prev</id>
		<title>1&gt;Tsala: Text replacement - &quot;Remote RSS feeds&quot; to &quot;RSS feeds&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Using_Database&amp;diff=6172&amp;oldid=prev"/>
		<updated>2024-07-31T10:56:40Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;Remote RSS feeds&amp;quot; to &amp;quot;RSS feeds&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Database}}&lt;br /&gt;
This page explores ways the [[Database activity]] may be used in your Moodle course.&lt;br /&gt;
==Views==&lt;br /&gt;
===View list===&lt;br /&gt;
The list view shows multiple entries, possibly in a more abbreviated form to ensure all the information fits. You may use the controls at the bottom of the screen to search and sort the contents.&lt;br /&gt;
* &amp;#039;&amp;#039;View single&amp;#039;&amp;#039;: one item at a time&lt;br /&gt;
* &amp;#039;&amp;#039;View list&amp;#039;&amp;#039; : several items at a time (number is user defined)&lt;br /&gt;
* &amp;#039;&amp;#039;Add entry&amp;#039;&amp;#039; : add an item to the database&lt;br /&gt;
* &amp;#039;&amp;#039;Search&amp;#039;&amp;#039; : search the entries&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:26databaseview.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Deleting multiple entries===&lt;br /&gt;
In List view, a checkbox will appear next to each entry. Select the entries you wish to delete and click the &amp;#039;Delete selected&amp;#039; button. Alternatively, click the &amp;#039;Select all&amp;#039; and the &amp;#039;Delete all&amp;#039; buttons to delete all entries. A warning message will appear asking you to verify what you wish to delete.&lt;br /&gt;
==Automatically linking database entries==&lt;br /&gt;
If the [[Database auto-linking filter]] is enabled, any entries in a database will be automatically linked to where the concept words and/or phrases appear within the same course. This includes forum postings, internal resources, week summaries etc.&lt;br /&gt;
&lt;br /&gt;
Note: If you do not want particular text to be linked (in a forum posting, say) then you should add &amp;lt;nolink&amp;gt; and &amp;lt;/nolink&amp;gt; tags around the text. Alternatively the filter can be disabled for a particular activity.&lt;br /&gt;
==Approving and undoing approval of entries==&lt;br /&gt;
&lt;br /&gt;
If, during database set up, &amp;#039;Approval required&amp;#039; was set to &amp;#039;Yes&amp;#039; then a teacher can view entries pending approval and click the three dots to the right in order to approve them.&lt;br /&gt;
[[File:docsentryapproval.png|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==Importing many entries==&lt;br /&gt;
You can import entries via a CSV file if you click the &amp;quot;Import entries&amp;quot; link from the Actions menu when clicking on a Database activity.&lt;br /&gt;
&lt;br /&gt;
[[image:DatabaseExportImport.png|center]]&lt;br /&gt;
&lt;br /&gt;
The easiest way to determine the format of the text file is to manually add an entry to the database and then export it. The resulting export text file may then be edited and used for importing entries. &lt;br /&gt;
&lt;br /&gt;
The expected file format is a plain text file with a list of field names as the first record. The data then follows, one record per line.&lt;br /&gt;
&lt;br /&gt;
The field delimiter defaults to a comma character and the field enclosure is not set by default (field enclosures are characters that surround each field in each record).&lt;br /&gt;
&lt;br /&gt;
Records should be delimited by new lines (usually generated by pressing RETURN or ENTER in your text editor). Tabs can be specified using \t and newlines by \n.&lt;br /&gt;
&lt;br /&gt;
Sample file:&lt;br /&gt;
  name,height,weight&lt;br /&gt;
  Kai,180cm,80kg&lt;br /&gt;
  Kim,170cm,60kg&lt;br /&gt;
  Koo,190cm,20kg&lt;br /&gt;
Note: Certain field types may not be supported.&lt;br /&gt;
&lt;br /&gt;
Do not put spaces after your commas or upload will fail!&lt;br /&gt;
&lt;br /&gt;
After upload page import.php comes back blank if it failed.&lt;br /&gt;
If successful you&amp;#039;ll read a message like, &amp;quot;1 entries saved&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Exporting entries==&lt;br /&gt;
You can export entries either in CSV (comma separated values) or ODS (OpenOffice Calc) formats by clicking the &amp;quot;Export entries&amp;quot; link from the Actions menu when clicking on the &amp;#039;Database activity.&lt;br /&gt;
&lt;br /&gt;
[[File:DatabaseExportImport.png|DatabaseExportImport.png]]&lt;br /&gt;
&lt;br /&gt;
When exporting entries, it is possible to include files.&lt;br /&gt;
&lt;br /&gt;
When using the CSV format, the user can select either the comma, semicolon, or tab to separate the fields. The selection of the proper character is important. If users select to use a comma to separate the fields and some of the fields contain data with commas then the number of columns is going to be misaligned and likely cause confusion.&lt;br /&gt;
&lt;br /&gt;
Users can select which fields from the database they wish to have exported. By default, all fields are checked to be included. Choose the fields that you wish to have included in the export.&lt;br /&gt;
&lt;br /&gt;
Once the export type and the fields to be exported have been selected, clicking on the Export entries pushbutton will generate the file. The user will usually have the option of either opening or saving the file.&lt;br /&gt;
&lt;br /&gt;
For information on converting the date export (and import) format, see the discussion [https://moodle.org/mod/forum/discuss.php?d=220505 Standard Database Module - Dates].&lt;br /&gt;
&lt;br /&gt;
==Enabling an RSS feed of recently added entries==&lt;br /&gt;
To enable an RSS feed from a database activity, an administrator must first enable RSS feeds for database activities across the whole site as described in [[RSS feeds settings]]. A section called &amp;#039;RSS&amp;#039; will then appear on the edit settings page of the database activity. &lt;br /&gt;
# Edit the database activity settings and set the number of entries in the RSS feed e.g. 5.&lt;br /&gt;
# Check that the RSS template includes the required fields.&lt;br /&gt;
# Log out and then access the database activity as a guest.&lt;br /&gt;
# Copy the &amp;#039;RSS feed for this activity&amp;#039; link in the administration block.&lt;br /&gt;
The RSS feed may then be displayed in an [[RSS feeds block]] or elsewhere.&lt;br /&gt;
==Exporting to an external portfolio==&lt;br /&gt;
If an external [[Portfolios|portfolio]] such as [[Mahara_portfolio|Mahara]] has been enabled by the administrator then users have the option to export individual entries to that portfolio if the ##export## tag is added to list and/or single templates. From the three dots to the right of their entry in single view, they will see the option Export to portfolio. Clicking there will present them with whichever portfolio export options are available.&lt;br /&gt;
&lt;br /&gt;
[[File:44databaseportfolioexport.png|alt=database portfolio export]]&lt;br /&gt;
&lt;br /&gt;
== Creative uses ==&lt;br /&gt;
You could use the database module to:&lt;br /&gt;
* allow collaboration on building a collection of web links/books/journal references related to a particular subject&lt;br /&gt;
* display student created photos/posters/websites/poems for peer comment and review&lt;br /&gt;
* gather comments and votes on a shortlist of potential logos/mascot names/project ideas&lt;br /&gt;
* provide a [http://moodle.org/mod/forum/discuss.php?d=52699 student file storage area]&lt;br /&gt;
* maintain a log of what was done in a face-to-face class each day, so that absent students can get caught up themselves. [http://moodle.org/mod/forum/discuss.php?d=115047 Example]&lt;br /&gt;
*add, track, and award points for CPD (or other external activity). [https://www.youtube.com/watch?v=LocVdShyErU Video demo.] [https://moodle.org/mod/forum/discuss.php?d=457599 Details].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[https://school.moodledemo.net/course/view.php?id=57&amp;amp;section=1 Examples of databases in the School demo site] (available for download)&lt;br /&gt;
*[[Glossary module]], which performs a similar though more specialised, text-based role&lt;br /&gt;
*Moodle in English [https://school.moodledemo.net/course/view.php?id=57&amp;amp;section=1 Database activity module forum]&lt;br /&gt;
*[https://moodle.org/mod/data/view.php?d=54 Moodle.org jobs database] - example of a database activity on Moodle.org.&lt;br /&gt;
[[de:Datenbank nutzen]]&lt;br /&gt;
[[es:Usando BasedeDatos]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tsala</name></author>
	</entry>
</feed>