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 --- .../intranet-tmpl/prog/en/css/staff-global.css | 2 +- .../intranet-tmpl/prog/en/includes/home-search.inc | 40 ++++ .../intranet-tmpl/prog/en/modules/intranet-main.tt | 265 +++++++++++---------- 3 files changed, 176 insertions(+), 131 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc rewrite koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (78%) 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 dissimilarity index 78% 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 @@ -1,130 +1,135 @@ -[% INCLUDE 'doc-head-open.inc' %] -Koha staff client -[% INCLUDE 'doc-head-close.inc' %] - - - -[% INCLUDE 'header.inc' %] -[% IF ( koha_news_count ) %]
[% ELSE %]
[% END %] -
-[% IF ( koha_news_count ) %]
-[% ELSE %]
[% END %] - -
- [% IF ( CAN_user_circulate ) %] -

Circulation

-
  • -
    - - - - - -
    -
  • -
  • -
    - - - -
  • - -
  • 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 %] -

[% koha_new.title %]

-

[% koha_new.new %]

-

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

- [% END %] -
-
-[% END %] - -
- -[% INCLUDE 'intranet-bottom.inc' %] +[% INCLUDE 'doc-head-open.inc' %] +Koha staff client +[% INCLUDE 'doc-head-close.inc' %] + + + +[% INCLUDE 'header.inc' %] +[% INCLUDE 'home-search.inc' %] + + + +
+
+
+ +

Welcome to Koha

+ +
+ + [% IF ( CAN_user_circulate ) %] +

Circulation

+ + [% END %] + + + + [% IF ( CAN_user_borrowers ) %] +

Patrons

+ [% END %] + + + + [% IF ( CAN_user_catalogue ) %] +

Advanced search

+ [% END %] + + + +

Lists

+ + + + [% IF ( CAN_user_catalogue || CAN_user_editcatalogue || CAN_user_editauthorities ) %] +

Cataloging

+
    + [% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %] +
  • Add MARC Record
  • + [% END %] + [% IF ( CAN_user_editauthorities ) %] +
  • Authorities
  • + [% END %] +
+ [% END %] + +
+ +
+ + [% IF ( CAN_user_serials ) %] +

Serials

+ [% END %] + [% IF ( CAN_user_acquisition ) %] +

Acquisitions

+ [% IF ( pendingsuggestions ) %] + + [% END %] + [% END %] + + + + [% IF ( CAN_user_reports ) %] +

Reports

+ [% END %] + + + + [% IF ( CAN_user_parameters ) %] +

Koha administration

+ + [% END %] + [% IF ( CAN_user_tools ) %] +

Tools

+ [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) %] + + [% END %] + [% END %] + + + +

About Koha

+ +
+
+ [% 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 %] + + +
+ +[% INCLUDE 'intranet-bottom.inc' %] -- 2.11.4.GIT