View | Details | Raw Unified | Return to bug 7980
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-4 / +28 lines)
Lines 689-694 input.deleteshelf:active { Link Here
689
689
690
#tagslist li { display : inline; }
690
#tagslist li { display : inline; }
691
691
692
a.tag_results_add {
693
	background-image: url(../../images/tag-small.png);
694
	background-position : -1px center;
695
	background-repeat : no-repeat;
696
	padding-left : 13px;
697
	text-decoration: none;
698
}
699
700
#login4tags {
701
	background-image: url(../../images/tag-small-disabled.png);
702
	background-position : -1px center;
703
	background-repeat : no-repeat;
704
	padding-left : 13px;
705
	text-decoration: none;
706
	margin-left: 1em;
707
}
708
709
.tag_results_input {
710
    background-color: #EEE;
711
    display: none;
712
    margin-left: 1em;
713
    padding: 0.3em;
714
}
715
692
#placehold input.submit:hover,
716
#placehold input.submit:hover,
693
#tagsel_span input.submit:hover {
717
#tagsel_span input.submit:hover {
694
	color: #990033;
718
	color: #990033;
Lines 1372-1377 padding-left : .4em; Link Here
1372
	font-size : 100%;
1396
	font-size : 100%;
1373
}
1397
}
1374
1398
1399
.results_summary.actions {
1400
    margin-top : .5em;
1401
}
1402
1375
.m880 {
1403
.m880 {
1376
    display:block; 
1404
    display:block; 
1377
    text-align:right; 
1405
    text-align:right; 
Lines 1385-1394 padding-left : .4em; Link Here
1385
	color: #707070;
1413
	color: #707070;
1386
}
1414
}
1387
1415
1388
#login4tags {
1389
	margin-top : .3em;
1390
}
1391
1392
.results_summary .label {
1416
.results_summary .label {
1393
	color: #202020;
1417
	color: #202020;
1394
}
1418
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-28 / +47 lines)
Lines 223-228 $(document).ready(function(){ Link Here
223
                tagAdded();
223
                tagAdded();
224
                return false;
224
                return false;
225
            });
225
            });
226
227
            $(".tag_results_add").click(function(){
228
                var thisid = $(this).attr("id");
229
                thisid = thisid.replace("tag_add","");
230
                $(this).hide();
231
                $("#tagform"+thisid).show();
232
                $("#newtag"+thisid).focus();
233
                return false;
234
            })
235
236
            $(".cancel_tag_add").click(function(){
237
                var thisid = $(this).attr("id");
238
                thisid = thisid.replace("cancel","");
239
                $(this).parent().hide();
240
                $("#tag_add"+thisid).show();
241
                return false;
242
            })
243
226
        [% ELSE %]
244
        [% ELSE %]
227
            $("#tagsel_tag").click(function(){
245
            $("#tagsel_tag").click(function(){
228
                window.location = "/cgi-bin/koha/opac-user.pl";
246
                window.location = "/cgi-bin/koha/opac-user.pl";
Lines 503-508 $(document).ready(function(){ Link Here
503
                    </span>
521
                    </span>
504
                [% END %]
522
                [% END %]
505
523
524
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
525
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
526
                                [% IF ( TagsShowOnList ) %]
527
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
528
                                        <div class="results_summary"><span class="label">Tags:</span>
529
                                        <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
530
                                            [% END %]
531
                                        </ul>
532
                                   [% END %]
533
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
534
                                    </div>[% END %]
535
                                [% END %]
536
                                [% END %][% END %]
537
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
538
539
540
506
541
507
                [% IF ( OpacStarRatings == 'all' ) %]
542
                [% IF ( OpacStarRatings == 'all' ) %]
508
                <div class="results_summary">
543
                <div class="results_summary">
Lines 528-562 $(document).ready(function(){ Link Here
528
                </div>
563
                </div>
529
                [% END %]
564
                [% END %]
530
565
531
532
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
533
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
534
                                [% IF ( TagsShowOnList ) %]
535
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
536
                                        <div class="results_summary"><span class="label">Tags:</span>
537
                                        <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
538
                                            [% END %]
539
                                        </ul>
540
                                   [% END %]
541
                                [% IF ( TagsInputOnList ) %]
542
                                    [% IF ( loggedinusername ) %]
543
                    <span class="label">New tag:</span>
544
                                        <input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
545
                                        <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
546
                                    <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
547
                                        Tag status here.
548
                                    </span>
549
                                       [% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
550
                                    [% END %]
551
                                [% END %]
552
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
553
                                    </div>[% END %]
554
                                [% END %]
555
                                [% END %][% END %]
556
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
557
558
<span class="results_summary actions"><span class="label">Actions:</span>
566
<span class="results_summary actions"><span class="label">Actions:</span>
559
                                [% IF ( RequestOnOpac ) %]
567
                [% IF ( RequestOnOpac ) %]
560
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
568
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
561
                        [% IF ( opacuserlogin ) %]
569
                        [% IF ( opacuserlogin ) %]
562
                            [% IF ( AllowOnShelfHolds ) %]
570
                            [% IF ( AllowOnShelfHolds ) %]
Lines 570-575 $(document).ready(function(){ Link Here
570
                    [% END %]
578
                    [% END %]
571
                [% END %]
579
                [% END %]
572
580
581
                [% IF ( TagsInputOnList ) %]
582
                    [% IF ( loggedinusername ) %]
583
                        <a class="tag_results_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a>
584
                        <span id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input"><label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s):</label><input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
585
                        <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" /> <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">Cancel</a>
586
                        <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
587
                        Tag status here.
588
                        </span></span>
589
                    [% ELSIF ( loop.first ) %]<span id="login4tags">Log in to add tags.</span>
590
                    [% END %]
591
                [% END %]
573
592
574
                [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a>
593
                [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a>
575
                [% END %][% END %][% END %]
594
                [% END %][% END %][% END %]

Return to bug 7980