From d2912f5e8909de732131cf232d9224af541924f4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Jan 2010 09:51:18 -0500 Subject: [PATCH] Fix for Bug 4024, Search history template problems, and other fixes. - Markup corrections - Removing TMPL EXPR - Converting delete link to FORM ("destructive" actions shouldn't be links) - Adding "search history" link to logged-in user's sidebar menu --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 5 +- .../opac-tmpl/prog/en/includes/masthead.inc | 14 +++--- .../opac-tmpl/prog/en/includes/usermenu.inc | 3 ++ .../prog/en/modules/opac-search-history.tmpl | 48 ++++++++++++------- opac/opac-search-history.pl | 3 ++ 5 files changed, 46 insertions(+), 27 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index cd3a11ab42..088f5ea1b4 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -708,15 +708,12 @@ body#advsearch #listsmenulink { text-decoration : none; } -#members li:first-child { - border-right : 1px solid black; -} - #members li:last-child { border-right : 0; } #members li { + border-right : 1px solid black; display : inline; list-style : none; margin : 0; diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 11c6f30196..f3916e6e10 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -1,16 +1,16 @@
diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc b/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc index 5d1c50f53a..26bf502b2a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/usermenu.inc @@ -12,6 +12,9 @@
  • change my password
  • + +
  • my search history
  • +
  • my reading history
  • diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl index 3323ac0fdd..90fc5698e2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl @@ -8,7 +8,8 @@ // We show table ordered by descending dates by default // (so that the more recent query is shown first) $.tablesorter.defaults.sortList = [[0,1]]; - $("#historyt").tablesorter({ + $(".historyt").tablesorter({ + widgets : ['zebra'], dateFormat: 'uk' }); }); @@ -17,21 +18,27 @@ -
    + +
    + +
    + +
    +
    -
    +

    Search history

    - - Delete your search history +
    + + -

    Current session

    + -
    Current session
    @@ -39,7 +46,7 @@ - + @@ -48,8 +55,8 @@ -

    Previous sessions

    -
    DateSearchResults
    ">">
    +
    + @@ -57,25 +64,34 @@ - +
    Previous sessions
    DateSearchResults
    ">">
    - -

    Your search history is now empty.

    - + +

    Your search history is empty.

    +
    - + +
    -
    +
    + +
    + + +
    + + +
    diff --git a/opac/opac-search-history.pl b/opac/opac-search-history.pl index fdf0701be3..97db2d5f9b 100755 --- a/opac/opac-search-history.pl +++ b/opac/opac-search-history.pl @@ -142,6 +142,9 @@ if ($loggedinuser == '') { } } + +$template->param(searchhistoryview => 1); + output_html_with_http_headers $cgi, $cookie, $template->output; -- 2.39.5