myopac primitive framework
authorsenator <lebbeous@esilibrary.com>
Wed, 26 Jan 2011 15:23:00 +0000 (10:23 -0500)
committersenator <lebbeous@esilibrary.com>
Wed, 26 Jan 2011 15:23:00 +0000 (10:23 -0500)
Open-ILS/src/perlmods/OpenILS/WWW/EGCatLoader.pm
Open-ILS/web/templates/default/opac/myopac/bookbags.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/opac/myopac/fines.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/opac/myopac/items_held.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/opac/myopac/items_out.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/opac/myopac/prefs.tt2 [new file with mode: 0644]

index 676781f..460e051 100644 (file)
@@ -386,6 +386,8 @@ sub load_record {
 # context additions: 
 #   user : au object, fleshed
 sub load_myopac {
+    # XXX This crashes on session timeout, so somewhere around here we need to
+    # add handling for that
     my $self = shift;
     $self->ctx->{page} = 'myopac';
 
diff --git a/Open-ILS/web/templates/default/opac/myopac/bookbags.tt2 b/Open-ILS/web/templates/default/opac/myopac/bookbags.tt2
new file mode 100644 (file)
index 0000000..6e359d4
--- /dev/null
@@ -0,0 +1,14 @@
+[% BLOCK html_head %]
+<style>
+    table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
+    table { border-collapse: collapse; }
+    table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
+    table tr:nth-child(odd) { background-color:#ded; }
+</style>
+[% END %]
+
+[% WRAPPER "default/opac/base.tt2" %]
+[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "bookbags" %]
+<p><em>XXX TODO</em></p>
+
+[% END %]
diff --git a/Open-ILS/web/templates/default/opac/myopac/fines.tt2 b/Open-ILS/web/templates/default/opac/myopac/fines.tt2
new file mode 100644 (file)
index 0000000..cf9d23c
--- /dev/null
@@ -0,0 +1,22 @@
+[% BLOCK html_head %]
+<style>
+    table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
+    table { border-collapse: collapse; }
+    table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
+    table tr:nth-child(odd) { background-color:#ded; }
+</style>
+[% END %]
+
+[% WRAPPER "default/opac/base.tt2" %]
+[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "fines" %]
+<table>
+    <thead>
+        <tr>
+            <th>Total Owed</th>
+            <th>Total Paid</th>
+            <th>Balance Owed</th>
+        </tr>
+    </thead>
+</table>
+
+[% END %]
diff --git a/Open-ILS/web/templates/default/opac/myopac/items_held.tt2 b/Open-ILS/web/templates/default/opac/myopac/items_held.tt2
new file mode 100644 (file)
index 0000000..3954298
--- /dev/null
@@ -0,0 +1,29 @@
+[% BLOCK html_head %]
+<style>
+    table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
+    table { border-collapse: collapse; }
+    table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
+    table tr:nth-child(odd) { background-color:#ded; }
+</style>
+[% END %]
+
+[% WRAPPER "default/opac/base.tt2" %]
+[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "items_held" %]
+<table>
+    <thead>
+        <tr>
+            <th>Title</th>
+            <th>Author</th>
+            <th>Formats</th>
+            <th>Pickup Location</th>
+            <th>Status</th>
+            <th>Active</th>
+            <th>Activate on...</th>
+            <th>Expiration Date</th>
+            <th>Select</th>
+            <th>Edit</th>
+        </tr>
+    </thead>
+</table>
+
+[% END %]
diff --git a/Open-ILS/web/templates/default/opac/myopac/items_out.tt2 b/Open-ILS/web/templates/default/opac/myopac/items_out.tt2
new file mode 100644 (file)
index 0000000..ca93991
--- /dev/null
@@ -0,0 +1,24 @@
+[% BLOCK html_head %]
+<style>
+    table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
+    table { border-collapse: collapse; }
+    table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
+    table tr:nth-child(odd) { background-color:#ded; }
+</style>
+[% END %]
+
+[% WRAPPER "default/opac/base.tt2" %]
+[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "items_out" %]
+<table>
+    <thead>
+        <tr>
+            <th>Title</th>
+            <th>Author</th>
+            <th>Due Date</th>
+            <th>Renewals Remaining</th>
+            <th>Renewals Remaining</th>
+        </tr>
+    </thead>
+</table>
+
+[% END %]
diff --git a/Open-ILS/web/templates/default/opac/myopac/prefs.tt2 b/Open-ILS/web/templates/default/opac/myopac/prefs.tt2
new file mode 100644 (file)
index 0000000..d9a60ba
--- /dev/null
@@ -0,0 +1,15 @@
+[% BLOCK html_head %]
+<style>
+    table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
+    table { border-collapse: collapse; }
+    table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
+    table tr:nth-child(odd) { background-color:#ded; }
+</style>
+[% END %]
+
+[% WRAPPER "default/opac/base.tt2" %]
+[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "prefs" %]
+<p><em>XXX TODO Need to find out whether the list of pref fields can/should be generated
+    from db entries or something.</em></p>
+
+[% END %]