';
+ $coursetagdivs .= '"f_commtags", ';
+ }
+ // Tidy up the end of a javascript array and add javascript
+ $coursetagdivs = rtrim($coursetagdivs, ', ');
+ $this->content->text .= coursetag_get_jscript($coursetagdivs);
+
+ // Add the divs (containing the tags) to the block's content
+ if ($alltags) { $this->content->text .= $alltagscontent; }
+ if ($mytags) { $this->content->text .= $mytagscontent; }
+ if ($officialtags) { $this->content->text .= $officialtagscontent; }
+ if ($coursetags) { $this->content->text .= $coursetagscontent; }
+ if ($commtags) { $this->content->text .= $commtagscontent; }
+
+ // add the input form section (allowing a user to tag the current course) and navigation, or loggin message
+ if ($loggedin) {
+ // only show the input form on course pages for those allowed (or not barred)
+ if ($coursepage && $canedit) {
+ //$this->content->footer .= coursetag_get_jscript();
+ $tagthisunit = get_string('tagthisunit', $tagslang);
+ $buttonadd = get_string('add', $tagslang);
+ $arrowtitle = get_string('arrowtitle', $tagslang);
+ $coursetaghelpbutton = helpbutton('addtags', 'adding tags', $tagslang, TRUE, FALSE, '', TRUE);
+ $this->content->footer .= <<
+
+EOT;
+ // add the edit link
+ $this->content->footer .= '
+
'."\n";
+
+ if ($return) {
+ return $output;
+ } else {
+ echo $output;
+ }
+}
+
+/**
+ * Returns javascript for use in tags block and supporting pages
+ * @param string $coursetagdivs comma separated divs ids
+ * @uses $CFG
+ */
+function coursetag_get_jscript($coursetagdivs = '') {
+
+ global $CFG, $DB;
+
+ $tabscript = '';
+ if ($coursetagdivs) {
+ $tabscript = 'var coursetagdivs = new Array('.$coursetagdivs.');';
+ }
+
+ $coursetags = $DB->get_records('tag', null, 'name ASC', 'name, id');
+ $a = 0;
+ $coursetagscript = '';
+ if (!empty($coursetags)) {
+ foreach ($coursetags as $key => $value) {
+ $coursetagscript .= "coursetag_tags[$a] = \"".addslashes_js($key)."\"; ";
+ $a++;
+ }
+ }
+
+ $jserror1 = get_string('jserror1', 'block_tags');
+ $jserror2 = get_string('jserror2', 'block_tags');
+
+ $inputscript = << 50) {
+ alert("$jserror1");
+ return false;
+ //can't check this - unterminated string error } else if (val.indexOf("\\") > 0) {
+ } else if (val.indexOf("<") > 0) {
+ alert("$jserror2");
+ return false;
+ } else if (val.indexOf(">") > 0) {
+ alert("$jserror2");
+ return false;
+ } else {
+ return true;
+ }
+ }
+EOT;
+
+ $str = '
+
+ ';
+
+ return $str;
+}
+
+/**
+ * Returns javascript to create the links in the tag block footer.
+ */
+function coursetag_get_jscript_links($coursetagslinks) {
+
+ $links = '';
+ if (!empty($coursetagslinks)) {
+ $links .= '';
+ foreach ($coursetagslinks as $a) {
+ $links .= ''.$a['text'].' |';
+ }
+ $links = addslashes_js(rtrim($links, '|'));
+ }
+
+ $str = '
+ ';
+
+ return $str;
+}
+
+/**
+ * Returns all tags created by a user for a course
+ *
+ * @uses $CFG
+ * @param int $courseid
+ * @param int $userid
+ */
+function coursetag_get_records($courseid, $userid) {
+
+ global $CFG, $DB;
+
+ $sql = "SELECT t.id, name, rawname
+ FROM {tag} t, {tag_instance} ti
+ WHERE t.id = ti.tagid
+ AND ti.tiuserid = :userid
+ AND ti.itemid = :courseid
+ ORDER BY name ASC";
+
+ return $DB->get_records_sql($sql, array('userid'=>$userid, 'courseid'=>$courseid));
+}
+
+/**
+ * Stores a tag for a course for a user
+ *
+ * @uses $CFG
+ * @param array $tags simple array of keywords to be stored
+ * @param integer $courseid
+ * @param integer $userid
+ * @param string $tagtype official or default only
+ * @param string $myurl optional for logging creation of course tags
+ */
+function coursetag_store_keywords($tags, $courseid, $userid=0, $tagtype='official', $myurl='') {
+
+ global $CFG;
+
+ if (is_array($tags) and !empty($tags)) {
+
+ //tag_set_add('course', $courseid, $tags, $userid);
+ //if ($tagtype == 'official') {
+ // $tags_ids = tag_get_id($tags);
+ //}
+
+ foreach($tags as $tag) {
+ $tag = trim($tag);
+ if (strlen($tag) > 0) {
+ tag_set_add('course', $courseid, $tag, $userid);
+ if ($myurl) {
+ $url = $myurl.'?query='.urlencode($tag);
+ }
+ if ($tagtype == 'default' and $myurl != '') {
+ // log the tagging request - note only for user added tags
+ add_to_log($courseid, 'coursetags', 'add', $url, 'Course tagged');
+ }
+ if ($tagtype == 'official') {
+ tag_type_set(tag_get_id($tag), $tagtype);
+ }
+ }
+ }
+ }
+
+}
+
+/**
+ * Deletes a personal tag for a user for a course.
+ *
+ * @uses $CFG
+ * @param int $tagid
+ * @param int $userid
+ * @param int $courseid
+ */
+function coursetag_delete_keyword($tagid, $userid, $courseid) {
+
+ global $CFG, $DB;
+
+ $sql = "SELECT COUNT(*)
+ FROM {tag_instance}
+ WHERE tagid = $tagid
+ AND tiuserid = $userid
+ AND itemtype = 'course'
+ AND itemid = $courseid";
+ if ($DB->count_records_sql($sql) == 1) {
+ $sql = "tagid = $tagid
+ AND tiuserid = $userid
+ AND itemtype = 'course'
+ AND itemid = $courseid";
+ $DB->delete_records_select('tag_instance', $sql);
+ // if there are no other instances of the tag then consider deleting the tag as well
+ if (!$DB->record_exists('tag_instance', array('tagid' => $tagid))) {
+ // if the tag is a personal tag then delete it - don't do official tags
+ if ($DB->record_exists('tag', array('id' => $tagid, 'tagtype' => 'default'))) {
+ $DB->delete_records('tag', array('id' => $tagid, 'tagtype' => 'default'));
+ }
+ }
+ } else {
+ print_error("errordeleting", 'tag', '', $tagid);
+ }
+
+}
+
+/**
+ * Get courses tagged with a tag
+ *
+ * @param int $tagid
+ * @return array of course objects
+ */
+function coursetag_get_tagged_courses($tagid) {
+
+ global $DB;
+
+ $courses = array();
+ if ($crs = $DB->get_records_select('tag_instance', "tagid=:tagid AND itemtype='course'", array('tagid'=>$tagid))) {
+ foreach ($crs as $c) {
+ //this capability check was introduced to stop display of courses that a student could not
+ //view, but arguably it is best that when clicking on a tag, the tagged course summary should
+ //be seen and then if the student clicks on that they will be given the opportunity to join
+ //note courses not visible should not have their tagid sent to this function
+ //if (has_capability('moodle/course:view', get_context_instance(CONTEXT_COURSE, $c->itemid))) {
+ $course = $DB->get_record('course', array('id'=>$c->itemid));
+ $courses[$c->itemid] = $course;
+ //}
+ }
+ }
+ return $courses;
+
+}
+
+/**
+ * Course tagging function used only during the deletion of a
+ * course (called by lib/moodlelib.php) to clean up associated tags
+ *
+ * @param $courseid
+ * @param $showfeedback
+ */
+function coursetag_delete_course_tags($courseid, $showfeedback=false) {
+
+ global $DB;
+
+ if ($tags = $DB->get_records_select('tag_instance', "itemtype='course' AND itemid=:courseid", array('courseid'=>$courseid))) {
+ foreach ($tags as $tag) {
+ //delete the course tag instance record
+ $DB->delete_records('tag_instance', array('tagid'=>$tag->tagid, 'itemtype'=>'course', 'itemid'=> $courseid));
+ // delete tag if there are no other tag_instance entries now
+ if (!($DB->record_exists('tag_instance', array('tagid'=>$tag->tagid)))) {
+ $DB->delete_records('tag', array('id'=>$tag->tagid));
+ }
+ }
+ }
+
+ if ($showfeedback) {
+ notify(get_string('deletedcoursetags', 'tag'));
+ }
+}
+
+/**
+ * Function called by cron to create/update users rss feeds
+ *
+ * @uses $CFG
+ * @return true
+ *
+ * Function removed.
+ * rsslib.php needs updating to accept Dublin Core tags (dc/cc) input before this can work.
+ */
+/*
+function coursetag_rss_feeds() {
+
+ global $CFG, $DB;
+ require_once($CFG->dirroot.'/lib/dmllib.php');
+ require_once($CFG->dirroot.'/lib/rsslib.php');
+
+ $status = true;
+ mtrace(' Preparing to update all user unit tags RSS feeds');
+ if (empty($CFG->enablerssfeeds)) {
+ mtrace(' RSS DISABLED (admin variables - enablerssfeeds)');
+ } else {
+
+ // Load all the categories for use later on
+ $categories = $DB->get_records('course_categories');
+
+ // get list of users who have tagged a unit
+ $sql = "
+ SELECT DISTINCT u.id as userid, u.username, u.firstname, u.lastname, u.email
+ FROM {user} u, {course} c, {tag_instance} cti, {tag} t
+ WHERE c.id = cti.itemid
+ AND u.id = cti.tiuserid
+ AND t.id = cti.tagid
+ AND t.tagtype = 'personal'
+ AND u.confirmed = 1
+ AND u.deleted = 0
+ ORDER BY userid";
+ if ($users = $DB->get_records_sql($sql)) {
+
+ $items = array(); //contains rss data items for each user
+ foreach ($users as $user) {
+
+ // loop through each user, getting the data (tags for courses)
+ $sql = "
+ SELECT cti.id, c.id as courseid, c.fullname, c.shortname, c.category, t.rawname, cti.timemodified
+ FROM {course} c, {tag_instance} cti, {tag} t
+ WHERE c.id = cti.itemid
+ AND cti.tiuserid = :userid{$user->userid}
+ AND cti.tagid = t.id
+ AND t.tagtype = 'personal'
+ ORDER BY courseid";
+ if ($usertags = $DB->get_records_sql($sql, array('userid' => $user->userid))) {
+ $latest_date = 0; //latest date any tag was created by a user
+ $c = 0; //course identifier
+
+ foreach ($usertags as $usertag) {
+ if ($usertag->courseid != $c) {
+ $c = $usertag->courseid;
+ $items[$c] = new stdClass();
+ $items[$c]->title = $usertag->fullname . '(' . $usertag->shortname . ')';
+ $items[$c]->link = $CFG->wwwroot . '/course/view.php?name=' . $usertag->shortname;
+ $items[$c]->description = ''; //needs to be blank
+ $items[$c]->category = $categories[$usertag->category]->name;
+ $items[$c]->subject[] = $usertag->rawname;
+ $items[$c]->pubdate = $usertag->timemodified;
+ $items[$c]->tag = true;
+ } else {
+ $items[$c]->subject[] .= $usertag->rawname;
+ }
+ // Check and set the latest modified date.
+ $latest_date = $usertag->timemodified > $latest_date ? $usertag->timemodified : $latest_date;
+ }
+
+ // Setup some vars for use while creating the file
+ $path = $CFG->dataroot.'/1/usertagsrss/'.$user->userid;
+ $file_name = 'user_unit_tags_rss.xml';
+ $title = get_string('rsstitle', 'tag', ucwords(strtolower($user->firstname.' '.$user->lastname)));
+ $desc = get_string('rssdesc', 'tag');
+ // check that the path exists
+ if (!file_exists($path)) {
+ mtrace(' Creating folder '.$path);
+ check_dir_exists($path, TRUE, TRUE);
+ }
+
+ // create or update the feed for the user
+ // this functionality can be copied into seperate lib as in next two lines
+ //require_once($CFG->dirroot.'/local/ocilib.php');
+ //oci_create_rss_feed( $path, $file_name, $latest_date, $items, $title, $desc, $dc=true, $cc=false);
+
+ // Set path to RSS file
+ $full_path = "$save_path/$file_name";
+
+ mtrace(" Preparing to update RSS feed for $file_name");
+
+ // First let's make sure there is work to do by checking the time the file was last modified,
+ // if a course was update after the file was mofified
+ if (file_exists($full_path)) {
+ if ($lastmodified = filemtime($full_path)) {
+ mtrace(" XML File $file_name Created on ".date( "D, j M Y G:i:s T", $lastmodified ));
+ mtrace(' Lastest course modification on '.date( "D, j M Y G:i:s T", $latest_date ));
+ if ($latest_date > $lastmodified) {
+ mtrace(" XML File $file_name needs updating");
+ $changes = true;
+ } else {
+ mtrace(" XML File $file_name doesn't need updating");
+ $changes = false;
+ }
+ }
+ } else {
+ mtrace(" XML File $file_name needs updating");
+ $changes = true;
+ }
+
+ if ($changes) {
+ // Now we know something has changed, write the new file
+
+ if (!empty($items)) {
+ // First set rss feeds common headers
+ $header = rss_standard_header(strip_tags(format_string($title,true)),
+ $CFG->wwwroot,
+ $desc,
+ true, true);
+ // Now all the rss items
+ if (!empty($header)) {
+ $articles = rss_add_items($items,$dc,$cc);
+ }
+ // Now all rss feeds common footers
+ if (!empty($header) && !empty($articles)) {
+ $footer = rss_standard_footer();
+ }
+ // Now, if everything is ok, concatenate it
+ if (!empty($header) && !empty($articles) && !empty($footer)) {
+ $result = $header.$articles.$footer;
+ } else {
+ $result = false;
+ }
+ } else {
+ $result = false;
+ }
+
+ // Save the XML contents to file
+ if (!empty($result)) {
+ $rss_file = fopen($full_path, "w");
+ if ($rss_file) {
+ $status = fwrite ($rss_file, $result);
+ fclose($rss_file);
+ } else {
+ $status = false;
+ }
+ }
+
+ // Output result
+ if (empty($result)) {
+ // There was nothing to put into the XML file. Delete it!
+ if( is_file($full_path) ) {
+ mtrace(" There were no items for XML File $file_name. Deleting XML File");
+ unlink($full_path);
+ mtrace(" $full_path -> (deleted)");
+ } else {
+ mtrace(" There were no items for the XML File $file_name and no file to delete. Ignore.");
+ }
+ } else {
+ if (!empty($status)) {
+ mtrace(" $full_path -> OK");
+ } else {
+ mtrace(" $full_path -> FAILED");
+ }
+ }
+ }
+ //end of oci_create_rss_feed()
+ }
+ }
+ }
+ }
+
+ return $status;
+}
+ */
+
+/**
+ * Get official keywords for the in header.html
+ * use: echo '';
+ * @uses $CFG
+ * @param int $courseid
+ * @return string
+ *
+ * Function removed but fully working
+ * This function is potentially useful to anyone wanting to improve search results for course pages.
+ * The idea is to add official tags (not personal tags to prevent their deletion) to all
+ * courses (facility not added yet) which will be automatically added to the page header to boost
+ * search engine specificity/ratings.
+ */
+/*
+function coursetag_get_official_keywords($courseid, $asarray=false) {
+ global $CFG;
+ $returnstr = '';
+ $sql = "SELECT t.id, name, rawname
+ FROM {tag} t, {tag_instance} ti
+ WHERE ti.itemid = :courseid
+ AND ti.itemtype = 'course'
+ AND t.tagtype = 'official'
+ AND ti.tagid = t.id
+ ORDER BY name ASC";
+ if ($tags = $DB->get_records_sql($sql, array('courseid' => $courseid))) {
+ if ($asarray) {
+ return $tags;
+ }
+ foreach ($tags as $tag) {
+ if( empty($CFG->keeptagnamecase) ) {
+ $textlib = textlib_get_instance();
+ $name = $textlib->strtotitle($tag->name);
+ } else {
+ $name = $tag->rawname;
+ }
+ $returnstr .= $name.', ';
+ }
+ $returnstr = rtrim($returnstr, ', ');
+ }
+ return $returnstr;
+}
+*/
+
+?>
diff --git a/tag/edit.php b/tag/edit.php
index 4c2696719e5..c17c2907664 100644
--- a/tag/edit.php
+++ b/tag/edit.php
@@ -90,7 +90,7 @@ if ($tagnew = $tagform->get_data()) {
if (has_capability('moodle/tag:manage', $systemcontext)) {
// rename tag
if(!tag_rename($tag->id, $tagnew->rawname)) {
- error('Error updating tag record');
+ print_error('errorupdatingrecord', 'tag');
}
}
diff --git a/tag/index.php b/tag/index.php
index 11d941b04bf..2e9747d19d1 100644
--- a/tag/index.php
+++ b/tag/index.php
@@ -14,7 +14,7 @@ if (empty($CFG->usetags)) {
}
$tagid = optional_param('id', 0, PARAM_INT); // tag id
-$tagname = optional_param('tag', '', PARAM_TAG); // tag
+$tagname = optional_param('tag', '', PARAM_TAG); // tag
$edit = optional_param('edit', -1, PARAM_BOOL);
$userpage = optional_param('userpage', 0, PARAM_INT); // which page to show
@@ -78,8 +78,64 @@ print_heading($tagname, '', 2, 'headingblock header tag-heading');
tag_print_management_box($tag);
tag_print_description_box($tag);
-$usercount = tag_record_count('user', $tag->id);
+// Display courses tagged with the tag
+require_once($CFG->dirroot.'/tag/coursetagslib.php');
+if ($courses = coursetag_get_tagged_courses($tag->id)) {
+ $totalcount = count( $courses );
+ print_box_start('generalbox', 'tag-blogs'); //could use an id separate from tag-blogs, but would have to copy the css style to make it look the same
+
+ $heading = get_string('tagindex_coursetitle', 'tag', $tagname) .': '. $totalcount;
+ print_heading($heading, '', 3);
+
+ foreach ($courses as $course) {
+ print_course($course);
+ }
+
+ print_box_end();
+}
+
+// Print up to 10 previous blogs entries
+
+// I was not able to use get_items_tagged_with() because it automatically
+// tries to join on 'blog' table, since the itemtype is 'blog'. However blogs
+// uses the post table so this would not really work. - Yu 29/8/07
+if (has_capability('moodle/blog:view', $systemcontext)) { // You have to see blogs obviously
+
+ $count = 10;
+ if ($blogs = blog_fetch_entries('', $count, 0, 'site', '', $tag->id)) {
+
+ print_box_start('generalbox', 'tag-blogs');
+ $heading = get_string('relatedblogs', 'tag', $tagname);
+ print_heading($heading, '', 3);
+
+ echo '
';
+
+ print_box_end();
+ }
+}
+
+$usercount = tag_record_count('user', $tag->id);
if ($usercount > 0) {
//user table box
@@ -95,49 +151,8 @@ if ($usercount > 0) {
print_box_end();
}
-// Print last 10 blogs
-
-// I was not able to use get_items_tagged_with() because it automatically
-// tries to join on 'blog' table, since the itemtype is 'blog'. However blogs
-// uses the post table so this would not really work. - Yu 29/8/07
-if (has_capability('moodle/blog:view', $systemcontext)) { // You have to see blogs obviously
-
- if ($blogs = blog_fetch_entries('', 10, 0, 'site', '', $tag->id)) {
-
- print_box_start('generalbox', 'tag-blogs');
-
- print_heading(get_string('relatedblogs', 'tag'), '', 3);
-
- echo '
';
-
-
$PAGE->print_footer();
-
?>
diff --git a/tag/lib.php b/tag/lib.php
index 14c9a26efc7..4e2b1e27fa0 100644
--- a/tag/lib.php
+++ b/tag/lib.php
@@ -63,9 +63,10 @@ define('TAG_RELATED_CORRELATED', 2);
* @param int $record_id the id of the record to tag
* @param array $tags the array of tags to set on the record. If
* given an empty array, all tags will be removed.
+ * @param int $userid optional only required for course tagging
* @return void
*/
-function tag_set($record_type, $record_id, $tags) {
+function tag_set($record_type, $record_id, $tags, $userid = 0) {
static $in_recursion_semaphore = false; // this is to prevent loops when tagging a tag
if ( $record_type == 'tag' && !$in_recursion_semaphore) {
@@ -108,7 +109,7 @@ function tag_set($record_type, $record_id, $tags) {
$tag_current_id = $new_tag[$clean_tag];
}
- tag_assign($record_type, $record_id, $tag_current_id, $ordering);
+ tag_assign($record_type, $record_id, $tag_current_id, $ordering, $userid);
// if we are tagging a tag (adding a manually-assigned related tag), we
// need to create the opposite relationship as well.
@@ -127,17 +128,18 @@ function tag_set($record_type, $record_id, $tags) {
* 'user' for users, etc.
* @param int $record_id the id of the record to tag
* @param string $tag the tag to add
+ * @param int $userid optional only required for course tagging
* @return void
*/
-function tag_set_add($record_type, $record_id, $tag) {
+function tag_set_add($record_type, $record_id, $tag, $userid = 0) {
$new_tags = array();
- foreach( tag_get_tags($record_type, $record_id) as $current_tag ) {
+ foreach( tag_get_tags($record_type, $record_id, NULL, $userid) as $current_tag ) {
$new_tags[] = $current_tag->rawname;
}
$new_tags[] = $tag;
- return tag_set($record_type, $record_id, $new_tags);
+ return tag_set($record_type, $record_id, $new_tags, $userid);
}
/**
@@ -236,9 +238,10 @@ function tag_get($field, $value, $returnfields='id, name, rawname') {
* @param int $record_id the record id for which we want to get the tags
* @param string $type the tag type (either 'default' or 'official'). By default,
* all tags are returned.
+ * @param int $userid optional only required for course tagging
* @return array the array of tags
*/
-function tag_get_tags($record_type, $record_id, $type=null) {
+function tag_get_tags($record_type, $record_id, $type=null, $userid=0) {
global $CFG, $DB;
$params = array();
@@ -250,9 +253,15 @@ function tag_get_tags($record_type, $record_id, $type=null) {
$sql_type = '';
}
+ $u = null;
+ if ($userid) {
+ $u = "AND ti.tiuserid = :userid ";
+ $params['userid'] = $userid;
+ }
+
$sql = "SELECT tg.id, tg.tagtype, tg.name, tg.rawname, tg.flag, ti.ordering
FROM {tag_instance} ti JOIN {tag} tg ON tg.id = ti.tagid
- WHERE ti.itemtype = :recordtype AND ti.itemid = :recordid $sql_type
+ WHERE ti.itemtype = :recordtype AND ti.itemid = :recordid $u $sql_type
ORDER BY ti.ordering ASC";
$params['recordtype'] = $record_type;
$params['recordid'] = $record_id;
@@ -662,12 +671,13 @@ function tag_add($tags, $type="default") {
* @param int $record_id the id of the record that will be tagged
* @param string $tagid the tag id to set on the record.
* @param int $ordering the order of the instance for this record
+ * @param int $userid optional only required for course tagging
* @return bool true on success, false otherwise
*/
-function tag_assign($record_type, $record_id, $tagid, $ordering) {
+function tag_assign($record_type, $record_id, $tagid, $ordering, $userid = 0) {
global $DB;
- if ( $tag_instance_object = $DB->get_record('tag_instance', array('tagid'=>$tagid, 'itemtype'=>$record_type, 'itemid'=>$record_id), 'id')) {
+ if ( $tag_instance_object = $DB->get_record('tag_instance', array('tagid'=>$tagid, 'itemtype'=>$record_type, 'itemid'=>$record_id, 'tiuserid'=>$userid), 'id')) {
$tag_instance_object->ordering = $ordering;
$tag_instance_object->timemodified = time();
return $DB->update_record('tag_instance', $tag_instance_object);
@@ -678,6 +688,7 @@ function tag_assign($record_type, $record_id, $tagid, $ordering) {
$tag_instance_object->itemtype = $record_type;
$tag_instance_object->ordering = $ordering;
$tag_instance_object->timemodified = time();
+ $tag_instance_object->tiuserid = $userid;
return $DB->insert_record('tag_instance', $tag_instance_object);
}
}
diff --git a/version.php b/version.php
index 7f6a528c15d..829a6299713 100644
--- a/version.php
+++ b/version.php
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2008051203; // YYYYMMDD = date of the last version bump
+ $version = 2008063001; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 dev (Build: 20080630)'; // Human-friendly version name