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 224-229 $(document).ready(function(){ Link Here
224
                tagAdded();
224
                tagAdded();
225
                return false;
225
                return false;
226
            });
226
            });
227
228
            $(".tag_results_add").click(function(){
229
                var thisid = $(this).attr("id");
230
                thisid = thisid.replace("tag_add","");
231
                $(this).hide();
232
                $("#tagform"+thisid).show();
233
                $("#newtag"+thisid).focus();
234
                return false;
235
            })
236
237
            $(".cancel_tag_add").click(function(){
238
                var thisid = $(this).attr("id");
239
                thisid = thisid.replace("cancel","");
240
                $(this).parent().hide();
241
                $("#tag_add"+thisid).show();
242
                return false;
243
            })
244
227
        [% ELSE %]
245
        [% ELSE %]
228
            $("#tagsel_tag").click(function(){
246
            $("#tagsel_tag").click(function(){
229
                window.location = "/cgi-bin/koha/opac-user.pl";
247
                window.location = "/cgi-bin/koha/opac-user.pl";
Lines 504-509 $(document).ready(function(){ Link Here
504
                    </span>
522
                    </span>
505
                [% END %]
523
                [% END %]
506
524
525
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
526
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
527
                                [% IF ( TagsShowOnList ) %]
528
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
529
                                        <div class="results_summary"><span class="label">Tags:</span>
530
                                        <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>
531
                                            [% END %]
532
                                        </ul>
533
                                   [% END %]
534
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
535
                                    </div>[% END %]
536
                                [% END %]
537
                                [% END %][% END %]
538
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
539
540
541
507
542
508
                [% IF ( OpacStarRatings == 'all' ) %]
543
                [% IF ( OpacStarRatings == 'all' ) %]
509
                <div class="results_summary">
544
                <div class="results_summary">
Lines 529-563 $(document).ready(function(){ Link Here
529
                </div>
564
                </div>
530
                [% END %]
565
                [% END %]
531
566
532
533
                [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
534
                [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
535
                                [% IF ( TagsShowOnList ) %]
536
                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
537
                                        <div class="results_summary"><span class="label">Tags:</span>
538
                                        <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>
539
                                            [% END %]
540
                                        </ul>
541
                                   [% END %]
542
                                [% IF ( TagsInputOnList ) %]
543
                                    [% IF ( loggedinusername ) %]
544
                    <span class="label">New tag:</span>
545
                                        <input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
546
                                        <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
547
                                    <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
548
                                        Tag status here.
549
                                    </span>
550
                                       [% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
551
                                    [% END %]
552
                                [% END %]
553
                                    [% IF ( SEARCH_RESULT.TagLoop.size ) %]
554
                                    </div>[% END %]
555
                                [% END %]
556
                                [% END %][% END %]
557
                [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %]
558
559
<span class="results_summary actions"><span class="label">Actions:</span>
567
<span class="results_summary actions"><span class="label">Actions:</span>
560
                                [% IF ( RequestOnOpac ) %]
568
                [% IF ( RequestOnOpac ) %]
561
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
569
                    [% UNLESS ( SEARCH_RESULT.norequests ) %]
562
                        [% IF ( opacuserlogin ) %]
570
                        [% IF ( opacuserlogin ) %]
563
                            [% IF ( AllowOnShelfHolds ) %]
571
                            [% IF ( AllowOnShelfHolds ) %]
Lines 571-576 $(document).ready(function(){ Link Here
571
                    [% END %]
579
                    [% END %]
572
                [% END %]
580
                [% END %]
573
581
582
                [% IF ( TagsInputOnList ) %]
583
                    [% IF ( loggedinusername ) %]
584
                        <a class="tag_results_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a>
585
                        <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" />
586
                        <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>
587
                        <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
588
                        Tag status here.
589
                        </span></span>
590
                    [% ELSIF ( loop.first ) %]<span id="login4tags">Log in to add tags.</span>
591
                    [% END %]
592
                [% END %]
574
593
575
                [% 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>
594
                [% 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>
576
                [% END %][% END %][% END %]
595
                [% END %][% END %][% END %]

Return to bug 7980