[open-ils-commits] r117 - in servres/trunk/conifer: syrup templates

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 25 16:25:53 EST 2009


Author: artunit
Date: 2009-01-25 16:25:49 -0500 (Sun, 25 Jan 2009)
New Revision: 117

Modified:
   servres/trunk/conifer/syrup/models.py
   servres/trunk/conifer/templates/browse_courses.xhtml
   servres/trunk/conifer/templates/master.xhtml
   servres/trunk/conifer/templates/tabbar.xhtml
Log:


Modified: servres/trunk/conifer/syrup/models.py
===================================================================
--- servres/trunk/conifer/syrup/models.py	2009-01-22 17:19:26 UTC (rev 116)
+++ servres/trunk/conifer/syrup/models.py	2009-01-25 21:25:49 UTC (rev 117)
@@ -243,6 +243,7 @@
     volume_edition = m.CharField(max_length=255, blank=True, null=True) 
     pages_times = m.CharField(max_length=255, blank=True, null=True) 
     performer = m.CharField(max_length=255,db_index=True, blank=True, null=True) 
+    year = m.CharField(max_length=10,db_index=True, blank=True, null=True) 
 
     local_control_key = m.CharField(max_length=30, blank=True, null=True) 
 

Modified: servres/trunk/conifer/templates/browse_courses.xhtml
===================================================================
--- servres/trunk/conifer/templates/browse_courses.xhtml	2009-01-22 17:19:26 UTC (rev 116)
+++ servres/trunk/conifer/templates/browse_courses.xhtml	2009-01-25 21:25:49 UTC (rev 117)
@@ -1,5 +1,5 @@
 <?python
-title = 'Browse Courses'
+title = 'Welcome to Syrup E-Reserves!'
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
@@ -9,20 +9,14 @@
   <title>${title}</title>
 </head>
 <body>
-  <h1>${title}</h1>
-  <p class="todo">What does the RD browse interface look like? Drill down by dept?</p>
-  <h2>All courses</h2>
-  <table class="pagetable">
-    <thead>
-      <tr><th py:for="h in ['Code','Title','Term']">${h}</th></tr>
-    </thead>
-    <tbody>
-      <tr py:for="c in models.Course.objects.all().order_by('code')">
-	<td>${c.code}</td>
-	<td><a href="${course_url(c)}">${c.title}</a></td>
-	<td>${c.term}</td>
-      </tr>
-    </tbody>
-  </table>
+  <h2>Browse</h2> (Note: some course materials may require you
+    to <a href="/accounts/login/?next=/syrup/">log in</a>)
+    <h3>Choose from one of the options below:</h3>
+    <ul>
+        <li><a href="instructors">Browse by Instructor</a></li>
+        <li><a href="departments">Browse by Department</a></li>
+        <li><a href="courses">Browse by Course Name</a></li>
+    </ul>
+  <div class="gap"/>
 </body>
 </html>

Modified: servres/trunk/conifer/templates/master.xhtml
===================================================================
--- servres/trunk/conifer/templates/master.xhtml	2009-01-22 17:19:26 UTC (rev 116)
+++ servres/trunk/conifer/templates/master.xhtml	2009-01-25 21:25:49 UTC (rev 117)
@@ -64,7 +64,7 @@
     <span py:if="not user.is_authenticated() and not request.META.PATH_INFO == '/syrup/'">
         <a href="/syrup">Start Over</a>  -
     </span>
-    Syrup is a subproject of <a href="http://conifer.mcmaster.ca/">Project Conifer</a> &copy; 2008
+    Syrup is a subproject of <a href="http://conifer.mcmaster.ca/">Project Conifer</a> &copy; 2009
     </div>
       </div>
     </body>

Modified: servres/trunk/conifer/templates/tabbar.xhtml
===================================================================
--- servres/trunk/conifer/templates/tabbar.xhtml	2009-01-22 17:19:26 UTC (rev 116)
+++ servres/trunk/conifer/templates/tabbar.xhtml	2009-01-25 21:25:49 UTC (rev 117)
@@ -10,7 +10,14 @@
   <li><a href="/syrup/">Home</a></li>
   <li><a href="/syrup/browse/">Browse</a></li>
   <li class="active"><a href="/syrup/course/">My Courses</a></li>
-  <li><a href="/syrup/join/">Join a Course</a></li>
+    <!--
+        RD had a concept of "joining" which i am
+        suppressing for now, our staff is definitely
+        not keen on the idea and my small focus group
+        think it's way too much too expect for this
+        library function.
+    -->
+  <!-- <li><a href="/syrup/join/">Join a Course</a></li> -->
   <!-- <li><a href="/syrup">Add a Reserve</a></li> -->
   <!-- <li><a href="/syrup">Manage Users</a></li> -->
 </ul>



More information about the open-ils-commits mailing list