Bug 27628: Fix minor HTML markup errors in OPAC search results templates
This patch makes a couple of minor corrections to templates related to
OPAC search results: An errant quote, and invalidly repeating ids.
The #login4tags id is changed to a class, and CSS related to this id
(which was not used) is removed. For consistency, the id is changed to a
class on the detail page as well.
To test, apply the patch and rebuild the OPAC CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).
- Perform a search in the OPAC. Confirm that the "Log in to add tags"
link still looks correct at various browser widths.
- Confirm that it works to trigger the login modal.
- Validate the source of the page. There should be no errors.
- View the detail page for a bibliographic record.
- The "Log in to add tags" link should look correct and work correctly.
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 15c3be55af)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
0045e89050
commit
cd4f4485d7
|
|
@ -120,8 +120,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
a,
|
||||
#login4tags {
|
||||
a {
|
||||
@include border-radius-all( 4px );
|
||||
background-color: #F2F2EF;
|
||||
border: 1px solid #DDD;
|
||||
|
|
@ -136,10 +135,6 @@
|
|||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#login4tags {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
#opac-main-search {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,11 @@
|
|||
Tag status here.
|
||||
</span>
|
||||
[% ELSE %]
|
||||
<span class="actions"><span id="login4tags"><a class="btn btn-link btn-sm loginModal-trigger" href="/cgi-bin/koha/opac-user.pl"><i class="fa fa-tag" aria-hidden="true"></i> Log in to add tags</a></span></span>
|
||||
<span class="actions">
|
||||
<span class="login4tags">
|
||||
<a class="btn btn-link btn-sm loginModal-trigger" href="/cgi-bin/koha/opac-user.pl"><i class="fa fa-tag" aria-hidden="true"></i> Log in to add tags</a>
|
||||
</span>
|
||||
</span>
|
||||
[% END # IF loggedinusername %]
|
||||
[% END # if TagsInputEnabled %]
|
||||
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@
|
|||
[% IF ( loggedinusername ) %]
|
||||
<a class="tag_add btn btn-sm btn-link" id="tag_add[% biblio.biblionumber | html %]" href="#"><i class="fa fa-tag" aria-hidden="true"></i> Add tag(s)</a>
|
||||
[% ELSE %]
|
||||
<span id="login4tags">
|
||||
<span class="login4tags">
|
||||
[% IF Koha.Preference('casAuthentication') %]
|
||||
[%# CAS authentication is too complicated for modal window %]
|
||||
<a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue