From 3583eee50feee252e332707828874b34c8e51a37 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Thu, 22 Mar 2012 12:07:16 +0100 Subject: [PATCH] Bug 7781 : enhancements on main page - moves the different search boxes on top of page - displays the Koha logo - displays the breadcrumb bar - displays a general title "Welcome to Koha" - reorganises the links to modules - centers the main menu even if no news are displayed - fixes the Submit button when CircAutocompl is on Signed-off-by: mveron Signed-off-by: Paul Poulain --- .../prog/en/css/staff-global.css | 2 +- .../prog/en/includes/home-search.inc | 40 ++++ .../prog/en/modules/intranet-main.tt | 215 +++++++++--------- 3 files changed, 151 insertions(+), 106 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index fa66dbfe2b..ef016480fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1848,7 +1848,7 @@ span.permissiondesc { } /* borrower autocomplete */ -#borrowerautocomplete { width: 450px; text-align:left;} /* z-index needed on top instances for ie & sf absolute inside relative issue */ +#borrowerautocomplete { width: 500px; text-align:left;} /* z-index needed on top instances for ie & sf absolute inside relative issue */ .autocomplete .yui-ac-highlight , .autocomplete .yui-ac-highlight .sample-result, .autocomplete .yui-ac-highlight .sample-query { color:#FFF; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc new file mode 100644 index 0000000000..bf046361fa --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc @@ -0,0 +1,40 @@ + +

[% LibraryName %]

+ + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index 1afa5b08fd..56618c7499 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -5,125 +5,130 @@ [% INCLUDE 'header.inc' %] -[% IF ( koha_news_count ) %]
[% ELSE %]
[% END %] +[% INCLUDE 'home-search.inc' %] + + + +
-[% IF ( koha_news_count ) %]
-[% ELSE %]
[% END %] +
-
- [% IF ( CAN_user_circulate ) %] -

Circulation

-
  • -
    - - - - - -
    -
  • -
  • -
    - - - -
  • +

    Welcome to Koha

    -
  • Transfers
- [% END %] - [% IF ( CAN_user_borrowers ) %] -

Patrons

-
    -
  • - - - -
    -
  • -
- [% END %] - [% IF ( CAN_user_catalogue ) %] -

Search

-
    -
  • -
    - - - -
    -
  • -
- [% END %] -

Lists

-
- -
- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] -

Cataloging

-
- [% IF ( IntranetmainUserblock ) %]
- [% IntranetmainUserblock %] -
[% ELSE %]  - [% END %] -[% IF ( koha_news_count ) %] -
-
-
-
-

News

- [% FOREACH koha_new IN koha_news %] + +
+
+ [% IF ( IntranetmainUserblock ) %] +
+ [% IntranetmainUserblock %] +
[% ELSE %]  + [% END %] +
+
+ [% IF ( koha_news_count ) %] +
+
+

News

+ [% FOREACH koha_new IN koha_news %]

[% koha_new.title %]

-

[% koha_new.new %]

-

Posted on [% koha_new.newdate %] [% IF ( CAN_user_tools ) %] - Edit | Delete | New[% END %]

- [% END %] -
-
-[% END %] +

[% koha_new.new %]

+

Posted on [% koha_new.newdate %] + [% IF ( CAN_user_tools ) %] + Edit | Delete | New + [% END %] +

+
+ [% END %] +
+
+ [% END %] +