|
Lines 37-44
Link Here
|
| 37 |
[% ELSE %] |
37 |
[% ELSE %] |
| 38 |
<div class="span9"> |
38 |
<div class="span9"> |
| 39 |
[% END %] |
39 |
[% END %] |
|
|
40 |
[% IF Koha.Preference( 'OpacNewsBranchSelect' ) == 1 %] |
| 41 |
<form id="news-branch-select" class="form-inline" method="get" action="/cgi-bin/koha/opac-main.pl"> |
| 42 |
<label for="news-branch">See news for </label> |
| 43 |
<select id="news-branch" name="branch"> |
| 44 |
<option selected="selected">Select a library</option> |
| 45 |
[% FOREACH BranchesLoo IN Branches.all %] |
| 46 |
<option value="[% BranchesLoo.branchcode %]">[% BranchesLoo.branchname %]</option> |
| 47 |
[% END %] |
| 48 |
<option value="">System-wide only</option> |
| 49 |
</select> |
| 50 |
</form> |
| 51 |
[% END %] |
| 40 |
|
52 |
|
| 41 |
[% IF ( koha_news_count ) %] |
53 |
[% IF ( koha_news_count ) %] |
|
|
54 |
|
| 42 |
<div id="news" class="newscontainer"> |
55 |
<div id="news" class="newscontainer"> |
| 43 |
[% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] |
56 |
[% SET newsdisp = ( Koha.Preference('NewsAuthorDisplay') ) %] |
| 44 |
[% FOREACH koha_new IN koha_news %] |
57 |
[% FOREACH koha_new IN koha_news %] |
|
Lines 54-60
Link Here
|
| 54 |
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a> |
67 |
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode %]"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a> |
| 55 |
RSS feed for [% IF ( branchcode ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news. |
68 |
RSS feed for [% IF ( branchcode ) %][% Branches.GetName( branchcode ) %] <i>and</i> [% END %] system-wide library news. |
| 56 |
</div> |
69 |
</div> |
| 57 |
[% END %] |
70 |
[% ELSE %] |
|
|
71 |
[% IF Koha.Preference( 'OpacNewsBranchSelect' ) == 1 %] |
| 72 |
<div id="news" class="newscontainer"> |
| 73 |
<div class="newsitem"> |
| 74 |
<div class="newsbody">No news to display.</div> |
| 75 |
<div class="newsfooter"></div> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
[% END %] |
| 79 |
[% END %] |
| 58 |
|
80 |
|
| 59 |
[% IF ( display_daily_quote && daily_quote ) %] |
81 |
[% IF ( display_daily_quote && daily_quote ) %] |
| 60 |
<div id="daily-quote"> |
82 |
<div id="daily-quote"> |
| 61 |
- |
|
|