[open-ils-commits] r8997 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 12 22:12:33 EDT 2008
Author: djfiander
Date: 2008-03-12 21:39:09 -0400 (Wed, 12 Mar 2008)
New Revision: 8997
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/picklist_summary.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_list.html
Log:
Display Owning library in lineitem_details and provide link from lineitem display back to owning picklist
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/picklist_summary.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/picklist_summary.html 2008-03-13 01:10:46 UTC (rev 8996)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/picklist_summary.html 2008-03-13 01:39:09 UTC (rev 8997)
@@ -1,14 +1,23 @@
-<div id='oils-acq-picklist-header'>
- ${_('Picklist')} <span id='oils-acq-picklist-name'>${c.oils.acq.picklist.value.name()}</span>
- <div class='oils-acq-picklist-attributes'>
- <%
- meta = _("Create date: %(date)s") % {"date":c.oils.acq.picklist.value.create_time()}
- meta2 = _("Last updated: %(date)s") % {"date":c.oils.acq.picklist.value.edit_time()}
- meta3 = _("Selector: %(owner)s") % {"owner":c.oils.acq.picklist.value.owner()}
- %>
- <div>${meta}</div>
- <div>${meta2}</div>
- <div>${meta3}</div>
+<%def name='summary(picklist, link=False)'>
+ <div id='oils-acq-picklist-header'>
+ ${_('Picklist')}
+ <span id='oils-acq-picklist-name'>
+ %if link:
+ <A href="${c.oils.acq.prefix.value}/picklist/view/${picklist.id()}">
+ %endif
+ ${picklist.name()}</span>
+ %if link:
+ </A>
+ %endif
+ <div class='oils-acq-picklist-attributes'>
+ <%
+ meta = _("Create date: %(date)s") % {"date":picklist.create_time()}
+ meta2 = _("Last updated: %(date)s") % {"date":picklist.edit_time()}
+ meta3 = _("Selector: %(owner)s") % {"owner":picklist.owner()}
+ %>
+ <div>${meta}</div>
+ <div>${meta2}</div>
+ <div>${meta3}</div>
+ </div>
</div>
-</div>
-
+</%def>
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html 2008-03-13 01:10:46 UTC (rev 8996)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html 2008-03-13 01:39:09 UTC (rev 8997)
@@ -4,17 +4,17 @@
-->
<%inherit file='../base.html'/>
<%namespace file='../../common/widgets.html' name='widget' />
-
+<%namespace file='picklist_summary.html' name='picklist' />
<%def name="page_title()">${_('Picklist')}</%def>
<%def name="block_content()">
-<%include file='picklist_summary.html'/>
-
<%
import oilsweb.lib.bib
from oilsweb.lib.acq.picklist import PicklistMgr
%>
+${picklist.summary(c.oils.acq.picklist.value)}
+
<div id='oils-acq-picklist-header-block'>
<div class='spacer'> </div>
<div id="oils-acq-picklist-paging-block">
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html 2008-03-13 01:10:46 UTC (rev 8996)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html 2008-03-13 01:39:09 UTC (rev 8997)
@@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
<%inherit file='../base.html'/>
+<%namespace file='picklist_summary.html' name='picklist' />
+
<%def name="page_title()">${_('Evergreen Picklist Entry')}</%def>
<%def name="block_content()">
-<%include file='picklist_summary.html'/>
+${picklist.summary(c.oils.acq.picklist.value, link=True)}
+
<%include file='lineitem_summary.html'/>
<%
@@ -43,7 +46,7 @@
<table id="oils-acq-lineitem-details-table">
<thead>
- <tr><td>Fund</td><td>Location</td><td>Selector</td><td> </td></tr>
+ <tr><td>Fund</td><td>Home Library</td></tr>
</thead>
<tbody>
% for detail in c.oils.acq.lineitem.value.lineitem_details():
@@ -59,8 +62,7 @@
${fund_selection(detail.fund())}
</form>
</td>
- <td>LOCATION</td>
- <td>SELECTOR</td>
+ <td>${detail.owning_lib() or ' '}</td>
</tr>
% endfor
</tbody>
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_list.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_list.html 2008-03-13 01:10:46 UTC (rev 8996)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_list.html 2008-03-13 01:39:09 UTC (rev 8997)
@@ -15,7 +15,7 @@
<thead>
<tr>
<td>${_('Name')}</td>
- <td>${_('Creation Date')}</td>
+ <td>${_('Selector')}</td>
<td>${_('Edit Date')}</td>
<td>${_('Number of Entries')}</td>
<td/>
@@ -26,7 +26,7 @@
% for picklist in c.oils.acq.picklist_list.value:
<tr>
<td><a href='${c.oils.acq.prefix.value}/picklist/view/${picklist.id()}'>${picklist.name()}</a></td>
- <td>${picklist.create_time()}</td>
+ <td>${picklist.owner()}</td>
<td>${picklist.edit_time()}</td>
<td>${picklist.entry_count()}</td>
<td><a href='${c.oils.acq.prefix.value}/picklist/delete/${picklist.id()}'>${_('Delete')}</a></td>
More information about the open-ils-commits
mailing list