﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
111	"Sort ""Recording Schedule"" in priority order"	marc.aronson@…	xris	"I find the ability to review recording schedules in priority order in the myth frontend very useful and missed having this capability via mythweb, so I made a small change to sort by recording priority from mythweb. When you have made these changes the default sort order for ""Recording Schedules"" is by priority. Also, when you ""hover"" the mouse over the title the information box that appears now includes the recording priority. 

The changes I made are below. All of these diffs are relative to the Knoppmyth R5A16 release, which I believe is based on Myth 0.18.1.

diff -bu for ./mythweb/includes/recording_schedules.php
{{{
@@ -356,6 +356,9 @@
             }
             $str .= ""</dd>\n"";
         }
+    // Recording Priority
+	$str .= ""\t<dt>"" . t('Rec Priority') . "":</dt>\n""; 
+	$str .= ""\t<dd>"" . $this->recpriority . ""</dd>\n"";
     // Profile
         if (preg_match('/\\S/', $this->profile)) {
             $str .= ""\t<dt>"".t('Profile')."":</dt>\n""

}}}

diff -bu ./mythweb/includes/sorting.php

{{{
@@ -180,5 +180,9 @@
         return ($a->profile > $b->profile) ? 1 : -1;
     }
 
+    function by_recpriority(&$a, &$b) {
+	if ($a->recpriority == $b->recpriority) return 0;
+	return ($a->recpriority < $b->recpriority) ? 1 : -1;
+    }
 
 ?>

}}}

diff -bu for ./mythweb/languages/English.php

{{{
@@ -50,6 +50,7 @@
     'Original Airdate'                                   => '',
     'Previous recordings'                                => '',
     'Rating'                                             => '',
+    'Rec Priority'					 => '',
     'Record new and expire old'                          => '',
     'Recorded Programs'                                  => '',
     'Recording Group'                                    => '',

}}}

diff -bu for ./mythweb/themes/Default/theme.php

{{{
@@ -157,7 +157,7 @@
                 &nbsp; | &nbsp;
                 <a href=""schedule_manually.php""><?php echo t('Manually Schedule') ?></a>
                 &nbsp; | &nbsp;
-                <a href=""recording_schedules.php""><?php echo t('Recording Schedules') ?></a>
+                <a href=""recording_schedules.php?sortby=recpriority""><?php echo t('Recording Schedules') ?></a>
                 &nbsp; | &nbsp;
                 <a href=""scheduled_recordings.php""><?php echo t('Scheduled Recordings') ?></a>
                 &nbsp; | &nbsp;

}}}
"	patch	closed	minor	unknown	mythweb	head	low	fixed	sort priority order	lists@…	0
