@@ -, +, @@ other actions --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 32 +++++++- .../opac-tmpl/prog/en/modules/opac-results.tt | 75 ++++++++++++------- .../opac-tmpl/prog/images/tag-small-disabled.png | Bin 0 -> 317 bytes koha-tmpl/opac-tmpl/prog/images/tag-small.png | Bin 0 -> 347 bytes 4 files changed, 75 insertions(+), 32 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/images/tag-small-disabled.png create mode 100644 koha-tmpl/opac-tmpl/prog/images/tag-small.png --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ a/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -722,6 +722,30 @@ input.deleteshelf:active { #tagslist li { display : inline; } +a.tag_results_add { + background-image: url(../../images/tag-small.png); + background-position : -1px center; + background-repeat : no-repeat; + padding-left : 13px; + text-decoration: none; +} + +#login4tags { + background-image: url(../../images/tag-small-disabled.png); + background-position : -1px center; + background-repeat : no-repeat; + padding-left : 13px; + text-decoration: none; + margin-left: 1em; +} + +.tag_results_input { + background-color: #EEE; + display: none; + margin-left: 1em; + padding: 0.3em; +} + #placehold input.submit:hover, #tagsel_span input.submit:hover { color: #990033; @@ -1407,6 +1431,10 @@ padding-left : .4em; font-size : 100%; } +.results_summary.actions { + margin-top : .5em; +} + .m880 { display:block; text-align:right; @@ -1420,10 +1448,6 @@ padding-left : .4em; color: #707070; } -#login4tags { - margin-top : .3em; -} - .results_summary .label { color: #202020; } --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -223,6 +223,24 @@ $(document).ready(function(){ tagAdded(); return false; }); + + $(".tag_results_add").click(function(){ + var thisid = $(this).attr("id"); + thisid = thisid.replace("tag_add",""); + $(this).hide(); + $("#tagform"+thisid).show(); + $("#newtag"+thisid).focus(); + return false; + }) + + $(".cancel_tag_add").click(function(){ + var thisid = $(this).attr("id"); + thisid = thisid.replace("cancel",""); + $(this).parent().hide(); + $("#tag_add"+thisid).show(); + return false; + }) + [% ELSE %] $("#tagsel_tag").click(function(){ window.location = "/cgi-bin/koha/opac-user.pl"; @@ -503,6 +521,23 @@ $(document).ready(function(){ [% END %] + [% IF ( LibraryThingForLibrariesID ) %]
[% END %] + [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %] + [% IF ( TagsShowOnList ) %] + [% IF ( SEARCH_RESULT.TagLoop.size ) %] +