From 68a77380269223842feb38c45cdb3a6844211bd0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 28 Mar 2008 14:23:32 -0500 Subject: [PATCH] Improving comments style and markup, adding highlighting for comments made by logged-in user. Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 17 ++++++++++ .../prog/en/modules/opac-detail.tmpl | 29 ++++++++++++++---- .../prog/en/modules/opac-review.tmpl | 12 +++++--- .../opac-tmpl/prog/images/further-bullet.gif | Bin 0 -> 100 bytes opac/opac-detail.pl | 6 +++- 5 files changed, 52 insertions(+), 12 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/images/further-bullet.gif diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index ac4463b9a0..c1960db6cc 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1285,6 +1285,10 @@ div#menu li.active a:hover { padding : 3px 3px .5em 1em; } +#further ul li { + list-style-image : url("../../images/further-bullet.gif"); +} + #similars { background-color : #FFF; text-align : center; @@ -1602,4 +1606,17 @@ input.deleteshelf { input.editshelf:active,input.deleteshelf:active { border : 0; +} + +#comments .commentline { + border-bottom : 2px solid #eeeeeb; + margin : 0 -.5em 0 -.5em; + padding : 0 .5em .5em .5em; +} +#comments .yours { + background-color : #effed5; +} +#comments #addcomment { + margin : 0 -1em -1em -1em; + padding : .3em 1em; } \ No newline at end of file diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 7b63eca2b1..b53259e91d 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -312,7 +312,21 @@
-
+ + +
+
+ Your Comment +
+ + + +

+ ');">Edit +

+ +
+
Comment by @@ -323,18 +337,21 @@

-

+

+ +

There are no comments for this item.

- -

');"> + +

+ -

Log in to your account to post a comment.

+
Log in to your account to post a comment.
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl index 293aa7332c..9598082b71 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl @@ -9,14 +9,14 @@

- "> - "> + " /> + " />
Comments on by -
+

Note: Your comment must be approved by a librarian.

-
Cancel
+
Cancel
- + + + diff --git a/koha-tmpl/opac-tmpl/prog/images/further-bullet.gif b/koha-tmpl/opac-tmpl/prog/images/further-bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..f5e240f850f823e2392e02b110096db7c20d4b6c GIT binary patch literal 100 zcmZ?wbhEHbWMyDw*v!T7@y9=(hLu5W>uOeA{Q2i!(zJt~wafnhzdvXHz5igqfC?0U mvM@3*a53nBgh6I7um}e5wuE@HC=?oSxtnXW1!@Q~SOWkYjUgid literal 0 HcmV?d00001 diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 9b10d20db5..b3f6d65700 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -162,6 +162,7 @@ $template->param( ); my $reviews = getreviews( $biblionumber, 1 ); +my $loggedincommenter; foreach ( @$reviews ) { my $borrower_number_review = $_->{borrowernumber}; my $borrowerData = GetMember($borrower_number_review,'borrowernumber'); @@ -169,7 +170,9 @@ foreach ( @$reviews ) { $_->{title} = $borrowerData->{'title'}; $_->{surname} = $borrowerData->{'surname'}; $_->{firstname} = $borrowerData->{'firstname'}; + $_->{userid} = $borrowerData->{'userid'}; $_->{datereviewed} = format_date($_->{datereviewed}); + if($borrowerData->{'borrowernumber'} eq $borrowernumber){ $loggedincommenter = 1; } } @@ -183,7 +186,8 @@ $template->param( biblionumber => $biblionumber, subscriptions => \@subs, subscriptionsnumber => $subscriptionsnumber, - reviews => $reviews + reviews => $reviews, + loggedincommenter => $loggedincommenter ); # XISBN Stuff -- 2.39.5