Author: david
Date: Tue Sep 27 15:29:52 2011
New Revision: 9856
Log:
Add 'part-of' div to archival descriptions for context when printing
Modified:
trunk/css/main.css
trunk/css/print.css
trunk/plugins/sfCaribouPlugin/css/print.css
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Modified: trunk/css/main.css
==============================================================================
--- trunk/css/main.css Tue Sep 27 14:58:08 2011 (r9855)
+++ trunk/css/main.css Tue Sep 27 15:29:52 2011 (r9856)
@@ -255,8 +255,15 @@
margin-bottom: 10px;
}
-/* Hide print-date div */
+/* Hide printables */
#print-date
{
display: none;
}
+
+h1.part-of
+{
+ display: none;
+}
+
+
Modified: trunk/css/print.css
==============================================================================
--- trunk/css/print.css Tue Sep 27 14:58:08 2011 (r9855)
+++ trunk/css/print.css Tue Sep 27 15:29:52 2011 (r9856)
@@ -107,3 +107,11 @@
{
display: none;
}
+
+/* Show 'Part of' for context in archival descriptions */
+h1.part-of
+{
+ display: block;
+ font: inherit;
+}
+
Modified: trunk/plugins/sfCaribouPlugin/css/print.css
==============================================================================
--- trunk/plugins/sfCaribouPlugin/css/print.css Tue Sep 27 14:58:08 2011
(r9855)
+++ trunk/plugins/sfCaribouPlugin/css/print.css Tue Sep 27 15:29:52 2011
(r9856)
@@ -116,26 +116,22 @@
}
/* Print formatting for "view" templates */
-h1.label
-{
- margin-bottom: 1em;
-}
-
#content .section .section
{
margin: auto;
}
/* Hide description "areas" */
-#content .section .section > a
+#content .section .section > a, /* logged in */
+#content .section .section > span /* logged out */
{
display: none;
}
.field
{
+ margin-top: 1em;
border: none;
- margin-bottom: 1em;
}
.field h3
@@ -155,7 +151,6 @@
.field .field
{
- margin-top: 1em;
margin-bottom: 0;
}
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Tue Sep 27 14:58:08 2011 (r9855)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Tue Sep 27 15:29:52 2011 (r9856)
@@ -2,6 +2,10 @@
<?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h1
class="label">'.render_title($isad).'</h1>', array($resource, 'module' =>
'informationobject', 'action' => 'edit'), array('title' => __('Edit archival
description'))) ?>
+<?php if (QubitInformationObject::ROOT_ID != $resource->parentId): ?>
+<h1 class="part-of"><?php echo __('Part of %1%', array('%1%' =>
$resource->getCollectionRoot()->__toString())) ?></h1>
+<?php endif; ?>
+
<?php if (isset($errorSchema)): ?>
<div class="messages error">
<ul>
Modified:
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Tue Sep 27 14:58:08 2011 (r9855)
+++ trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Tue Sep 27 15:29:52 2011 (r9856)
@@ -2,6 +2,10 @@
<?php echo link_to_if(QubitAcl::check($resource, 'update'), '<h1
class="label">'.render_title($rad).'</h1>', array($resource, 'module' =>
'informationobject', 'action' => 'edit'), array('title' => __('Edit archival
description'))) ?>
+<?php if (QubitInformationObject::ROOT_ID != $resource->parentId): ?>
+<h1 class="part-of"><?php echo __('Part of %1%', array('%1%' =>
$resource->getCollectionRoot()->__toString())) ?></h1>
+<?php endif; ?>
+
<?php if (isset($errorSchema)): ?>
<div class="messages error">
<ul>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.