Bug 23903: Replace OPAC icons with Font Awesome

This patch replaces CSS-based background image icons with Font Awesome
icons. This will eliminate the use of sprite.png altogether.

To test, apply the patch and regenerate the OPAC CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

Because JavaScript events are often triggered by class, the changes made
in this patch require testing of JavaScript-driven behavior as well as
visual confirmation of the changes.

Enable OPAC features to expose them for testing: Login, Holds, Article
requests, Tags, Cart, Search term highlighting.

 - Perform a search in the OPAC
   - In the header at the top of the search results, check the
     'Unhighlight/Highlight' link.
   - Select some search results and verify that the multi-item controls
     are enabled: Add to cart/Lists; Place hold; Tag. Check that these
     controls work correctly.
   - Verify that the following links look correct and work correctly:
     'Place hold,' 'Request article,' 'Log in to add tags,' 'Add to
     cart.'
   - Log in to the OPAC and return to the search results page. Check the
     'Add tag' and 'Save to lists' links.

 - View the lists page
   - Test the 'Edit' and 'Delete' controls.
   - View the contents of a list. Test the following:
      - Controls at the top of the table of results ('New list,'
        'Download list,' 'Send list,' 'Print list,' 'Edit list,' and
        'Delete list').
      - Multi-selection operations: 'Place hold,' 'Tag,' and 'Remove
        from list.'
      - Controls for each item on the list: 'Place hold,' 'Add tag,'
        'Save to another list,' 'Remove from this list,' and 'Add to
        cart.'

   - View the bibliographic detail page for any search result
     - In the right-hand sidebar menu, verify that these controls look
       correct and work correctly: 'Place hold,' 'Print,' 'Request
       article,' 'Save to your lists,' 'Add to your cart,'
      'Unhighlight,' 'Send to device,' 'Save record,' and 'More
      searches.'
     - Test the shelf browser by clicking 'Browse shelf' under the call
       number for any of the holdings.
       - Test the 'Next' and 'Previous' controls.
     - Check the tabs for switching between 'Normal,' 'MARC,' and 'ISBD'
       views and verify that they look correct on each of those pages.

 - Add some items to the Cart and open the Cart
   - Test the cart controls at the top: 'More details/Brief display,'
     'Send,' 'Download,' 'Empty and close,' 'Hide window,' 'Print.'
   - Test the multiple-selection controls: 'Remove,' 'Add to list,'
     'Place hold,' and 'Tag.'

 - Log in to the OPAC as a user who has items checked out which can be
   renewed. On the 'Your summary' page, on the 'Checked out' tab, test
   the 'Renew selected' and 'Renew all' links.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2019-10-25 18:41:34 +00:00 committed by Martin Renvoize
parent de75e9a91c
commit a6117a187d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
14 changed files with 278 additions and 546 deletions

View File

@ -71,15 +71,10 @@ a {
font-weight: bold;
}
&.btn {
&:visited {
color: #333;
}
}
&.btn-primary {
&:visited {
color: #FFF;
&.btn-link {
&:focus,
&:hover {
text-decoration: none;
}
}
@ -92,20 +87,6 @@ a {
}
}
&.listmenulink {
&:link,
&:visited {
color: #0076B2;
font-weight: bold;
}
&:hover,
&:active {
color: #FFF;
font-weight: bold;
}
}
.idreambooksrating {
color: #29ADE4;
font-size: 30px;
@ -125,149 +106,45 @@ a {
vertical-align: middle;
}
&.addtocart {
@extend %initial_icon;
background-position: -5px -262px; /* Cart */
padding-left: 35px;
}
&.addtoshelf {
@extend %initial_icon;
background-position: -5px -222px; /* Virtual shelf */
padding-left: 35px;
}
&.brief {
@extend %initial_icon;
background-position: -2px -868px; /* Zoom out */
padding-left: 27px;
}
&.detail {
@extend %initial_icon;
background-position: -2px -898px; /* Zoom in */
padding-left: 27px;
&.addtocart {
padding-right: 0;
}
&.download {
@extend %initial_icon;
background-position: -5px -348px; /* Download */
padding-left: 20px;
&.cartRemove {
color: #900;
font-size: 90%;
padding-left: 0;
&:hover {
color: #c60000;
}
}
&.editshelf {
@extend %initial_icon;
background-position: 2px -348px; /* List edit */
padding-left: 26px;
}
&.empty {
@extend %initial_icon;
background-position: 2px -598px; /* Trash */
padding-left: 30px;
}
&.hide {
@extend %initial_icon;
background-position: -3px -814px; /* Close */
padding-left: 26px;
}
&.highlight_toggle {
@extend %initial_icon;
background-position: -5px -836px; /* Highlight */
display: none;
padding-left: 35px;
}
&.hold {
@extend %initial_icon;
background-position: -2px -453px; /* Toolbar place hold */
padding-left: 23px;
&.disabled {
@extend %initial_icon;
background-position: -5px -621px; /* Place hold disabled */
}
}
&.incart {
@extend %initial_icon;
background-position: -5px -265px; /* Cart */
color: #666;
padding-left: 35px;
}
&.new {
@extend %initial_icon;
background-position: -4px -922px;
padding-left: 23px;
}
&.remove {
&:hover {
color: #900;
&.print-small {
@extend %initial_icon;
background-position: 0 -423px; /* Toolbar print */
padding-left: 30px;
}
&.print-large {
@extend %initial_icon;
background-position: 0 -187px; /* Toolbar print */
padding-left: 35px;
}
&.removeitems {
@extend %initial_icon;
background-position: 2px -690px; /* Delete */
padding-left: 25px;
&.disabled {
@extend %initial_icon;
background-position: 2px -712px; /* Delete disabled */
i {
.fa {
color: #c60000
}
}
}
}
&.reserve {
@extend %initial_icon;
background-position: -6px -141px; /* Place hold */
padding-left: 35px;
}
&.article_request {
@extend %initial_icon;
background-position: 0 -24px; /* Place article request */
padding-left: 35px;
}
&.send {
@extend %initial_icon;
background-position: 2px -386px; /* Email */
padding-left: 28px;
}
&.sharelist {
@extend %initial_icon;
background-position: 2px -1148px; /* List share */
padding-left: 26px;
}
&.tag_add {
@extend %initial_icon;
background-position: 3px -1111px; /* Tag results */
padding-left: 27px;
}
&.removefromlist {
@extend %initial_icon;
}
&.show_qrcode {
@extend %initial_icon;
background-position: 0 -1164px; /* QR Code */
padding-left: 35px;
}
}
h1 {
@ -373,10 +250,6 @@ td {
.btn {
white-space: nowrap;
}
.btn-link {
padding: 0;
}
}
th {
@ -639,51 +512,64 @@ th {
background: #e2e8e8 none;
}
.actions-menu {
padding-top: 5px;
}
.view,
.actions,
.toolbar,
#action {
a,
button {
&:hover {
i {
&.fa {
color: #44AE89;
}
}
}
i {
&.fa {
color: #4466AE;
}
}
&.remove {
&:hover {
color: #900;
i {
&.fa {
color: #c60000;
}
}
}
}
&.disabled,
&[disabled] {
color: #333;
&:hover {
i {
&.fa {
color: #333;
filter: alpha(opacity=65);
opacity: 0.65;
}
}
}
}
}
}
.actions {
a {
background-repeat: no-repeat;
margin-right: 1em;
text-decoration: none;
white-space: nowrap;
&.hold {
background-image: url( "../images/sprite.png" ); /* Place hold small */
background-position: -5px -539px;
padding-left: 21px;
}
&.article_request {
background-image: url( "../images/sprite.png" ); /* Place hold small */
background-position: -2px -26px;
padding-left: 21px;
}
&.addtocart {
background-image: url( "../images/sprite.png" ); /* Cart small */
background-position: -5px -570px;
padding-left: 20px;
}
&.addtoshelf {
background-image: url( "../images/sprite.png" ); /* MARC view */
background-position: -5px -24px;
padding-left: 20px;
}
&.addtolist {
background-position: -5px -27px;
padding-left: 20px;
}
&.tag_add {
background-position: -5px -1110px;
padding-left: 20px;
}
/* List contents remove from list link */
&.removefromlist {
background-position: -8px -690px; /* Delete */
padding-left: 15px;
&:first-child {
.btn-link {
padding-left: 0;
}
}
}
@ -729,13 +615,31 @@ th {
}
.buttons-print {
@extend %initial_icon;
background-color: transparent;
background-position: 0 -184px; /* Toolbar print */
border: 0;
color: #0076B2;
font-size: 100%;
padding-left: 35px;
color: #0088cc;
display: inline-block;
font-size: 14px;
line-height: 20px;
padding: 4px 12px;
text-align: center;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
vertical-align: middle;
&:hover {
color: #005580;
&::before {
color: #44AE89;
}
}
&::before {
color: #4466AE;
content: "\f02f";
font-family: FontAwesome;
display: inline-block;
padding-right: .5em;
}
}
.form-inline {
@ -1436,13 +1340,6 @@ div {
width: auto;
}
.hold,
#tagsel_tag {
font-size: 97%;
font-weight: bold;
padding-left: 28px;
}
#tagsel_form {
margin-top: .5em;
}
@ -1485,96 +1382,6 @@ div {
display: inline;
}
%tag_button_default {
background-color: transparent;
background-image: url( "../images/sprite.png" );
background-position: 1px -643px;
background-repeat: no-repeat;
border: 0;
color: #0076B2;
cursor: pointer;
font-size: 100%;
padding-left: 25px;
text-decoration: none;
}
%tag_button_hover {
color: #005580;
text-decoration: underline;
}
%tag_button_disabled {
color: #888888;
padding-left: 23px;
text-decoration: none;
}
#tagsel_tag {
@extend %tag_button_default;
&.disabled {
background-position: -1px -667px;
}
}
#selections-toolbar {
input.hold {
&:hover {
@extend %tag_button_hover;
}
&.disabled {
@extend %tag_button_disabled;
&:hover {
@extend %tag_button_disabled;
}
}
}
a.disabled {
@extend %tag_button_disabled;
&:hover {
@extend %tag_button_disabled;
}
}
}
#tagsel_span input {
&.submit {
@extend %tag_button_default;
}
&:hover {
@extend %tag_button_hover;
}
&.disabled {
@extend %tag_button_disabled;
&:hover {
@extend %tag_button_disabled;
}
}
&.hold.disabled {
@extend %tag_button_disabled;
&:hover {
@extend %tag_button_disabled;
}
}
}
.selections-toolbar a.disabled {
@extend %tag_button_disabled;
&:hover {
@extend %tag_button_disabled;
}
}
.results_summary {
color: #707070;
display: block;
@ -1613,17 +1420,19 @@ div {
border-radius: 4px;
color: #727272;
display: inline-block;
padding: .2em .5em;
white-space: nowrap;
margin-right: .4em;
a,
span {
background-image: url( "../images/sprite.png" );
background-repeat: no-repeat;
font-size: 87%;
font-weight: normal;
padding-left: 15px;
text-decoration: none;
display: inline-block;
padding: 4px 12px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
text-align: center;
vertical-align: middle;
}
}
@ -1638,18 +1447,6 @@ div {
font-weight: bold;
}
#MARCview {
background-position: -9px -28px;
}
#ISBDview {
background-position: -10px -56px;
}
#Normalview {
background-position: -8px 1px;
}
#Fullhistory,
#Briefhistory {
background: transparent none;
@ -1852,12 +1649,12 @@ div {
background-color: #F0F3F3;
border: 1px solid #E8E8E8;
margin: .5em 0 0 0;
padding-bottom: 3px;
padding: .5em;
li {
list-style: none;
margin: .2em;
padding: .3em 0;
padding: .2em 0;
}
a {
@ -1882,94 +1679,30 @@ div {
}
}
#format,
#furthersearches {
padding-left: 35px;
}
.highlight_controls {
float: left;
}
%initial_icon {
background-image: url( "../images/sprite.png" );
background-repeat: no-repeat;
text-decoration: none;
margin-top: 3px;
}
input {
&.hold {
@extend %initial_icon;
background-color: transparent;
background-position: -2px -453px; /* Toolbar place hold */
border: 0;
color: #0076B2;
font-weight: bold;
padding-left: 23px;
text-decoration: none;
&.disabled {
@extend %initial_icon;
background-position: -5px -621px; /* Place hold disabled */
}
}
&.editshelf {
@extend %initial_icon;
background-color: transparent;
background-position: 2px -734px; /* List edit */
border: 0;
color: #006699;
cursor: pointer;
filter: none;
font-size: 100%;
padding-left: 29px;
text-decoration: none;
&:active {
border: 0;
}
}
}
.newshelf {
@extend %initial_icon;
background-position: 2px -761px; /* List new */
border: 0;
color: #006699;
cursor: pointer;
filter: none;
font-size: 100%;
padding-left: 28px;
&.disabled {
@extend %initial_icon;
background-position: -4px -791px; /* List new disabled */
}
}
.deleteshelf {
@extend %initial_icon;
background-color: transparent;
background-position: 2px -687px; /* Delete */
border: 0;
color: #006699;
cursor: pointer;
filter: none;
font-size: 100%;
padding-left: 25px;
text-decoration: none;
&:active {
border: 0;
}
&:hover {
color: #990033;
}
&.disabled {
background-position: 0 -712px; /* Delete */
}
}
@ -1981,14 +1714,6 @@ input {
display: inline;
}
#login4tags {
background-image: url( "../images/sprite.png" ); /* Tag results disabled */
background-position: -6px -1130px;
background-repeat: no-repeat;
padding-left: 20px;
text-decoration: none;
}
.tag_results_input {
font-size: 12px;
margin-left: 1em;
@ -2150,25 +1875,12 @@ input {
#renewcontrols {
float: right;
font-size: 66%;
a {
background-repeat: no-repeat;
padding: .1em .4em;
padding-left: 18px;
text-decoration: none;
}
}
#renewselected_link {
background-image: url( "../images/sprite.png" );
background-position: -5px -986px;
background-repeat: no-repeat;
}
#renewall_link {
background-image: url( "../images/sprite.png" );
background-position: -8px -967px;
background-repeat: no-repeat;
i:first-child {
left: 5px;
}
}
.authref {
@ -2391,15 +2103,6 @@ input {
}
/* Search results add to cart (lists disabled) */
.addto {
.addtocart {
background-image: url( "../images/sprite.png" ); /* Cart */
background-position: -5px -266px;
background-repeat: no-repeat;
padding-left: 33px;
text-decoration: none;
}
}
.searchresults {
p {
@ -2411,17 +2114,6 @@ input {
}
}
a {
&.highlight_toggle {
background-image: url( "../images/sprite.png" ); /* Highlight */
background-position: -11px -837px;
background-repeat: no-repeat;
display: none;
font-weight: normal;
padding: 0 10px 0 21px;
}
}
.commentline {
@include border-radius-all( 3px );
@include shadowed;
@ -2566,7 +2258,7 @@ input {
}
.close:hover {
color: #538200;
color: #005580;
filter: inherit;
font-size: inherit;
opacity: inherit;
@ -2596,11 +2288,55 @@ input {
}
}
button.closebtn {
background: transparent;
border: 0;
cursor: pointer;
padding: 0;
button {
&.btn-link {
&:focus,
&:hover {
text-decoration: none;
}
}
&.closebtn {
background: transparent;
border: 0;
cursor: pointer;
padding: 0;
}
&.remove {
&:hover {
color: #900;
i {
&.fa {
color: #c60000;
}
}
}
}
}
.btn-link {
&.btn-lg {
font-size: 100%;
}
}
.btn.disabled,
.btn[disabled] {
&:hover {
color: #333;
filter: alpha(opacity=65);
opacity: 0.65;
}
i {
&.fa,
&.fa:hover {
color: #333;
filter: alpha(opacity=65);
opacity: 0.65;
}
}
}
.modal {
@ -2772,6 +2508,7 @@ button.closebtn {
.floating {
box-shadow: 0 3px 2px 0 rgba( 0, 0, 0, .4 );
margin-top: 0;
z-index: 5;
}
.tdlabel {
@ -2919,6 +2656,12 @@ button.closebtn {
th {
padding: 3px 5px;
width: 20%;
&.nav-cell {
padding: 0;
vertical-align: middle;
width: 1em;
}
}
a {
@ -2928,30 +2671,26 @@ button.closebtn {
text-decoration: none;
}
#browser_next,
#browser_previous {
background-image: url( "../images/sprite.png" );
background-repeat: no-repeat;
width: 16px;
a {
cursor: pointer;
display: block;
height: 0 !important;
margin: 0;
overflow: hidden;
padding: 50px 0 0;
text-decoration: none;
width: 16px;
transform: rotate(-90deg);
white-space: nowrap;
i {
padding: 0 .5em;
}
}
}
#browser_previous {
background-position: -9px -1007px;
}
#browser_next {
background-position: -9px -1057px;
a {
transform: rotate(90deg);
white-space: nowrap;
i {
padding: 0 .5em;
}
}
}
}

View File

@ -159,7 +159,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
var MSG_ITEM_IN_CART = _("In your cart");
var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
var MSG_ITEM_NOT_IN_CART = _("Add to cart");
[% END %]
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");

View File

@ -5,45 +5,45 @@
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
[% IF ( ReservableItems ) %]
<li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblio.biblionumber | html %]">Place hold</a></li>
<li><a class="reserve btn btn-link btn-lg" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-bookmark"></i> Place hold</a></li>
[% END %]
[% END %]
[% END %]
[% END %]
<li><a class="print-large" href="#">Print</a></li>
<li><a class="print-large btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-print"></i> Print</a></li>
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% IF artreqpossible %]
<li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber | html %]">Request article</a></li>
<li><a class="article_request btn btn-link btn-lg" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-file-text"></i> Request article</a></li>
[% END %]
[% END %]
[% IF Koha.Preference( 'virtualshelves' ) == 1 %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
<li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber | html %]">Save to your lists</a></li>
<li><a class="addtoshelf btn btn-link btn-lg" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-list"></i> Save to your lists</a></li>
[% END %]
[% END %]
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
[% IF ( incart ) %]
<li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart incart cart[% biblio.biblionumber | html %] addrecord" href="#">In your cart</a> <a data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
<li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart incart cart[% biblio.biblionumber | html %] addrecord btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-shopping-cart"></i> In your cart</a> <a data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
[% ELSE %]
<li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart cart[% biblio.biblionumber | html %] addrecord" href="#">Add to your cart</a> <a style="display:none;" data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
<li><a data-biblionumber="[% biblio.biblionumber | html %]" class="addtocart cart[% biblio.biblionumber | html %] addrecord btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-shopping-cart"></i> Add to your cart</a> <a style="display:none;" data-biblionumber="[% biblio.biblionumber | html %]" class="cartRemove cartR[% biblio.biblionumber | html %]" href="#">(remove)</a></li>
[% END %]
[% END %]
[% IF ( OpacHighlightedWords && query_desc ) %]
<li>
<a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
<a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil"></i> Unhighlight</a>
<a href="#" class="highlight_toggle btn btn-link btn-lg" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil"></i> Highlight</a>
</li>
[% END %]
[% IF ( Koha.Preference('OPACDetailQRCode' ) ) %]
<li>
<a class="show_qrcode" href="#">Send to device</a>
<a class="show_qrcode btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-qrcode"></i> Send to device</a>
<div id="qrcode" class="hidden"></div>
</li>
[% END %]
@ -53,8 +53,8 @@
<li>
<div id="export">
<div class="dropdown">
<a id="format" class="dropdown-toggle" data-toggle="dropdown" href="#">Save record <b class="caret"></b></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="format">
<a id="format" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download"></i> Save record <b class="caret"></b></a>
<ul class="dropdown-menu pull-left" role="menu" aria-labelledby="format">
[% FOREACH option IN export_options %]
[% IF option == 'dc' %]
<li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
@ -86,8 +86,8 @@
<li>
<div id="moresearches_menu">
<div class="dropdown">
<a id="furthersearches" class="dropdown-toggle" data-toggle="dropdown" href="#">More searches <b class="caret"></b></a>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="furthersearches">
<a id="furthersearches" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-search"></i> More searches <b class="caret"></b></a>
<ul class="dropdown-menu pull-left" role="menu" aria-labelledby="furthersearches">
<li><a href="#" class="menu-inactive">Search for this title in:</a></li>
[% OPACSearchForTitleIn | $raw %]
</ul>
@ -121,7 +121,7 @@
</div>
<div class="modal-footer">
<button type="submit" class="btn">Export</button>
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button class="btn btn-link btn-lg" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
</form>
</div>

View File

@ -10,10 +10,10 @@
<table class="table">
<tr>
<td rowspan="2">
<td class="nav-cell" rowspan="2">
[% IF shelfbrowser_prev_item %]
<div id="browser_previous">
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% shelfbrowser_prev_item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% shelfbrowser_prev_item.itemnumber | uri %]#shelfbrowser" data-prev-itemnumber="[% shelfbrowser_prev_item.itemnumber | html %]">Previous</a>
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% shelfbrowser_prev_item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% shelfbrowser_prev_item.itemnumber | uri %]#shelfbrowser" data-prev-itemnumber="[% shelfbrowser_prev_item.itemnumber | html %]"><i class="fa fa-caret-up"></i> Previous</a>
</div>
[% END %]
</td>
@ -70,10 +70,10 @@
</a>
</td>
[% END %]
<td rowspan="2">
<td class="nav-cell" rowspan="2">
[% IF shelfbrowser_next_item %]
<div id="browser_next">
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% shelfbrowser_next_item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% shelfbrowser_next_item.itemnumber | uri %]#shelfbrowser" data-next-itemnumber="[% shelfbrowser_next_item.itemnumber | html %]">Next</a>
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% shelfbrowser_next_item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% shelfbrowser_next_item.itemnumber | uri %]#shelfbrowser" data-next-itemnumber="[% shelfbrowser_next_item.itemnumber | html %]">Next <i class="fa fa-caret-up"></i></a>
</div>
[% END %]
</td>

View File

@ -20,7 +20,9 @@
<div id="usermarcdetail">
<div id="catalogue_detail_biblio">
<div id="views">
<span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]">Normal view</a></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]">MARC view</a></span> <span class="view current-view"><span id="ISBDview">ISBD view</span></span></div>
<span class="view"><a id="Normalview" class="btn btn-link" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-file-text-o"></i> Normal view</a></span>
<span class="view"><a id="MARCview" class="btn btn-link" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-alt"></i> MARC view</a></span>
<span class="view current-view"><span id="ISBDview"><i class="fa fa-list-ul"></i> ISBD view</span></span></div>
<div id="isbdcontents">[% ISBD | $raw %]</div>

View File

@ -21,9 +21,9 @@
<div id="catalogue_detail_biblio">
<div id="views">
<span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]">Normal view</a></span>
<span class="view current-view"><span id="MARCview">MARC view</span></span>
[% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]">ISBD view</a></span>[% END %]
<span class="view"><a id="Normalview" class="btn btn-link" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-file-text-o"></i> Normal view</a></span>
<span class="view current-view"><span id="MARCview"><i class="fa fa-list-alt"></i> MARC view</span></span>
[% IF ( ISBD ) %]<span class="view"><a id="ISBDview" class="btn btn-link" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-ul"></i> ISBD view</a></span>[% END %]
</div>
<h1 class="title">[% bibliotitle | html %] (Record no. [% biblio.biblionumber | html %])</h1>
@ -171,7 +171,6 @@
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
<script>
//<![CDATA[
[% IF ( OPACXSLTDetailsDisplay ) %]
$(document).ready(function(){
$.ajaxSetup({
@ -210,6 +209,5 @@ $(document).ready(function(){
});
});
[% END %]
//]]>
</script>
[% END %]

View File

@ -2,6 +2,7 @@
[% USE Koha %]
[% USE KohaDates %]
[% USE Asset %]
[% SET is_popup = 1 %]
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
[% INCLUDE 'doc-head-open.inc' %]
@ -18,18 +19,18 @@
<h2>Your cart</h2>
<div id="toolbar" class="toolbar noprint">
[% IF ( verbose ) %]
<a href="opac-basket.pl" class="brief">Brief display</a>
<a href="opac-basket.pl" class="btn btn-link brief"><i class="fa fa-fw fa-search-minus"></i> Brief display</a>
[% ELSE %]
<a href="opac-basket.pl" class="detail">More details</a>
<a href="opac-basket.pl" class="btn btn-link detail"><i class="fa fa-fw fa-search-plus"></i> More details</a>
[% END %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
<a class="send" href="opac-basket.pl">Send</a>
<a class="btn btn-link send" href="opac-basket.pl"><i class="fa fa-fw fa-envelope"></i> Send</a>
[% END %]
<a class="download" href="opac-basket.pl">Download</a>
<a class="empty" href="opac-basket.pl">Empty and close</a>
<a class="hide close" href="opac-basket.pl">Hide window</a>
<a class="btn btn-link download" href="opac-basket.pl"><i class="fa fa-fw fa-download"></i> Download</a>
<a class="btn btn-link remove empty" href="opac-basket.pl"><i class="fa fa-fw fa-trash"></i> Empty and close</a>
<a class="btn btn-link close" href="opac-basket.pl"><i class="fa fa-fw fa-times-circle"></i> Hide window</a>
[% IF ( verbose ) %]
<a class="print-large" href="#">Print</a>
<a class="btn btn-link print-large" href="#"><i class="fa fa-fw fa-print"></i> Print</a>
[% END %]
</div>
@ -39,16 +40,16 @@
<span class="sep">|</span>
<span class="links" id="tag_hides">
<span id="selections">Select titles to: </span>
<a href="#" class="deleteshelf disabled">Remove</a>
<a href="#" class="btn btn-link remove deleteshelf disabled"><i class="fa fa-remove"></i> Remove</a>
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
[% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
<a href="#" class="newshelf disabled">Add to a list</a>
<a href="#" class="btn btn-link newshelf disabled"><i class="fa fa-fw fa-list"></i> Add to a list</a>
[% END %]
[% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
<a href="#" class="hold disabled">Place hold</a>
<a href="#" class="btn btn-link hold disabled"><i class="fa fa-fw fa-bookmark"></i> Place hold</a>
[% END %]
[% IF ( TagsInputEnabled && loggedinusername ) %]
<a href="#" id="tagsel_tag" class="disabled">Tag</a>
<a href="#" id="tagsel_tag" class="btn btn-link disabled"><i class="fa fa-fw fa-tag"></i> Tag</a>
[% END %]
[% END # / IF opacuserlogin %]
</span>
@ -305,8 +306,6 @@
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
<script>
//<![CDATA[
[% IF ( TagsInputEnabled && loggedinusername ) %]
function tagSelected() {
var bibs = document.getElementById('records').value;
@ -469,6 +468,5 @@
$("#selections-toolbar .links a").addClass("disabled");
}
}
//]]>
</script>
[% END # / BLOCK jsinclude %]

View File

@ -112,9 +112,11 @@
[% END %]
<div id="views">
<span class="view current-view"><span id="Normalview">Normal view</span></span>
<span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]">MARC view</a></span>
[% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]">ISBD view</a></span>[% END %]
<span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o"></i> Normal view</span></span>
<span class="view">
<a id="MARCview" class="btn btn-link" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-alt"></i> MARC view</a>
</span>
[% IF ( ISBD ) %]<span class="view"><a id="ISBDview" class="btn btn-link" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-ul"></i> ISBD view</a></span>[% END %]
</div>
[% IF ( OPACXSLTDetailsDisplay ) %]
[% XSLTBloc | $raw %]
@ -1762,7 +1764,6 @@
[% IF OPACPopupAuthorsSearch %]
<script>
//<![CDATA[
function showAuthors(element){
var authornumber = $(element).attr("data-count");
@ -1838,8 +1839,6 @@
showAuthors(this);
});
});
//]]>
</script>
[% END # / IF OPACPopupAuthorsSearch %]
[% END %]

View File

@ -61,7 +61,7 @@
<p>
[% IF ( searchdesc ) %]
No results found for that in [% LibraryName | html %] catalog.
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;format=rss" class="rsssearchlink noprint">
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;format=rss" class="btn btn-link rsssearchlink noprint">
<i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i>
</a>
[% ELSE %]
@ -107,7 +107,7 @@
[% END %]
).
[% END %]
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;format=rss" class="rsssearchlink noprint">
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;format=rss" class="btn btn-link rsssearchlink noprint">
<i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i>
</a>
[% END # / IF total %]
@ -171,8 +171,8 @@
<div id="selections-toolbar" class="toolbar noprint">
[% IF ( OpacHighlightedWords ) %]
<div class="highlight_controls noprint">
<a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
<a href="#" class="btn btn-link highlight_toggle" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil"></i> Unhighlight</a>
<a href="#" class="btn btn-link highlight_toggle" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil"></i> Highlight</a>
</div>
<span class="sep">|</span>
[% END %]
@ -184,11 +184,11 @@
[% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
<span class="addto"></span>
[% END %]
<span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
<span id="placehold"></span>
[% IF ( TagsInputEnabled && loggedinusername ) %]
<span id="tagsel_span">
<input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
<button id="tagsel_tag" class="btn btn-link disabled" type="submit" style="display:none"><i class="fa fa-fw fa-tag"></i> Tag</button>
</span>
<div id="tagsel_form" style="display:none">
<label for="tagsel_new">New tag:</label>
@ -540,20 +540,20 @@
[% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
[% UNLESS ( SEARCH_RESULT.norequests ) %]
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
<span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Place hold</a></span><!-- add back when available 0 holds in queue-->
<span class="actions"><a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" class="btn btn-link"><i class="fa fa-bookmark"></i> Place hold</a></span><!-- add back when available 0 holds in queue-->
[% END # / IF opacuserlogin && holdable %]
[% END # UNLESS SEARCH_RESULT.norequests %]
[% END # IF RequestOnOpac %]
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
[% IF SEARCH_RESULT.artreqpossible %]
<span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
<span class="actions"><a href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" class="btn btn-link"><i class="fa fa-file-text"></i> Request article</a></span>
[% END %]
[% END %]
[% IF ( TagsInputEnabled ) %]
[% IF ( loggedinusername ) %]
<span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
<span class="actions"><a id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#" class="tag_add btn btn-link"><i class="fa fa-tag"></i> Add tag</a></span>
<div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
<label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
<input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
@ -564,19 +564,19 @@
Tag status here.
</span>
[% ELSE %]
<span class="actions"><span id="login4tags"><a class="loginModal-trigger" href="/cgi-bin/koha/opac-user.pl">Log in to add tags</a></span></span>
<span class="actions"><span id="login4tags"><a class="btn btn-link loginModal-trigger" href="/cgi-bin/koha/opac-user.pl"><i class="fa fa-tag"></i> Log in to add tags</a></span></span>
[% END # IF loggedinusername %]
[% END # if TagsInputEnabled %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
<span class="actions"><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]'); return false;">Save to lists</a></span>
<span class="actions"><a href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]'); return false;" class="btn btn-link"><i class="fa fa-list"></i> Save to lists</a></span>
[% END %]
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
[% IF ( SEARCH_RESULT.incart ) %]
<span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
<span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="btn btn-link cart cart[% SEARCH_RESULT.biblionumber | html %]" href="#"><i class="fa fa-shopping-cart"></i> In your cart</a> <a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="btn btn-link remove cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
[% ELSE %]
<span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to your cart</a> <a style="display:none;" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
<span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="btn btn-link addtocart cart cart[% SEARCH_RESULT.biblionumber | html %]" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a> <a style="display:none;" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="btn btn-link remove cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
[% END %]
[% END # / IF opacbookbag %]
</div>
@ -634,7 +634,6 @@
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
[% END %]<script>
//<![CDATA[
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
function holdMultiple() {
var checkedBiblioNums = ""; // Separated by "/"
@ -708,7 +707,7 @@ function tagAdded() {
function enableCheckboxActions(){
// Enable/disable controls if checkboxes are checked
var checkedBoxes = $(".checkboxed input:checkbox:checked");
var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label")
var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button");
if ($(checkedBoxes).size()) {
$("#selections").html(_("With selected titles: "));
$(controls).removeClass("disabled");
@ -915,8 +914,8 @@ $(document).ready(function(){
});
[% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
$("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
$("#placehold").find("input:submit").click(function(){
$("#placehold").html("<button class=\"btn btn-link hold disabled\" type=\"submit\"><i class=\"fa fa-fw fa-bookmark\"></i>" + _("Place hold") + "</button>");
$("#placehold").find("button.hold").click(function(){
holdMultiple();
return false;
});
@ -991,7 +990,7 @@ $(document).ready(function(){
[% END %]
[% IF ( TagsInputEnabled && loggedinusername ) %]
$("#tagsel_tag").click(function(){
$("#tagsel_tag").show().click(function(){
tagSelected();
return false;
});
@ -1059,6 +1058,5 @@ $("input.newtag").on('keydown', function(e){
});
});
//]]>
</script>
[% END %]

View File

@ -154,7 +154,7 @@
<h3>
[% shelf.shelfname | html %]
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&amp;op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint">
<i class="fa fa-rss rsssearchicon" title="Subscribe to this list"></i>
<i class="fa fa-fw fa-rss rsssearchicon" title="Subscribe to this list"></i>
</a>
</h3>
@ -162,14 +162,14 @@
<div id="floating">
<div id="toolbar" class="toolbar clearfix">
<div class="list-actions">
<a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form">New list</a> <span class="sep">|</span>
<a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | uri %]" class="download" data-toggle="modal" data-target="#modalWin">Download list</a>
<a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus"></i> New list</a> <span class="sep">|</span>
<a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link download" data-toggle="modal" data-target="#modalWin"><i class="fa fa-fw fa-download"></i> Download list</a>
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span>
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; "><i class="fa fa-fw fa-envelope"></i> Send list</a></span>
[% END %]
<a class="print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | html %]&sortfield=[% sortfield | html %]&direction=[% direction |uri %]&print=1">Print list</a>
<a class="btn btn-link print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | html %]&sortfield=[% sortfield | html %]&direction=[% direction |uri %]&print=1"><i class="fa fa-fw fa-print"></i> Print list</a>
[% IF can_manage_shelf %]
<span class="sep">|</span>
@ -178,7 +178,7 @@
<input type="hidden" name="referer" value="view" />
<input type='hidden' name='category' value='[% category | html %]' />
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
<input type="submit" class="editshelf" value="Edit list" />
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button>
</form>
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
@ -186,10 +186,10 @@
<input type="hidden" name="referer" value="list" />
<input type='hidden' name='category' value='[% category | html %]' />
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
<input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button>
</form>
[% IF category == PRIVATE && Koha.Preference('OpacAllowSharingPrivateLists') %]
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelf.shelfnumber | uri %]" class="sharelist">Share list</a>
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link sharelist"><i class="fa fa-fw fa-share"></i> Share list</a>
[% END %]
[% ELSIF category == PRIVATE # not manageshelf and private means shared %]
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" class="form-inline">
@ -197,7 +197,7 @@
<input type="hidden" name="referer" value="list" />
<input type='hidden' name='category' value='[% category | html %]' />
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" />
<button type="submit" class="btn btn-link deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);"><i class="fa fa-fw fa-remove"></i> Remove share</button>
</form>
[% END %]
</div>
@ -269,7 +269,7 @@
[% END %]
[% IF ( TagsInputEnabled && loggedinusername ) %]
<span id="addtags">
<a id="tagsel_tag" href="#" class="disabled">Tag</a>
<a id="tagsel_tag" href="#" class="btn btn-link btn-disabled"><i class="fa fa-fw fa-tag"></i> Tag</a>
</span>
<span id="tagsel_form" style="display:none">
<label for="tagsel_new">New tag(s), separated by a comma:</label>
@ -453,10 +453,10 @@
[% UNLESS ( itemsloo.norequests ) %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% IF ( itemsloo.allow_onshelf_holds ) %]
<span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber | html %]">Place hold</a><!-- add back when available 0 holds in queue--></span>
<span class="actions"><a class="btn btn-link hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber | html %]"><i class="fa fa-fw fa-bookmark"></i> Place hold</a><!-- add back when available 0 holds in queue--></span>
[% ELSE %]
[% IF ( itemsloo.itemsissued ) %]
<span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber | html %]">Place hold</a><!-- add back when available 0 holds in queue--></span>
<span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber | html %]"><i class="fa fa-fw fa-bookmark"></i> Place hold</a><!-- add back when available 0 holds in queue--></span>
[% END %]
[% END %]
[% END # / IF opacuserlogin %]
@ -465,7 +465,7 @@
[% IF ( TagsInputEnabled ) %]
[% IF ( loggedinusername ) %]
<span class="actions"><a class="tag_add hidden" id="tag_add[% itemsloo.biblionumber | html %]" href="#">Add tag</a></span>
<span class="actions"><a class="btn btn-link tag_add hidden" id="tag_add[% itemsloo.biblionumber | html %]" href="#"><i class="fa fa-fw fa-tag"></i> Add tag</a></span>
<div id="tagform[% itemsloo.biblionumber | html %]" class="tag_results_input" style="display:none;">
<label for="newtag[% itemsloo.biblionumber | html %]">New tag(s), separated by a comma:</label>
<input type="text" name="newtag[% itemsloo.biblionumber | html %]" id="newtag[% itemsloo.biblionumber | html %]" maxlength="100" />
@ -481,18 +481,18 @@
[% END # / IF TagsInputEnabled %]
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
<span class="actions"><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber | html %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber | html %]'); return false;">Save to another list</a></span>
<span class="actions"><a class="btn btn-link addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber | html %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber | html %]'); return false;"><i class="fa fa-fw fa-list"></i> Save to another list</a></span>
[% END %]
[% IF can_remove_biblios %]
<span class="actions"><a class="removefromlist" href="/cgi-bin/koha/opac-shelves.pl?op=remove_biblios&amp;shelfnumber=[% shelf.shelfnumber | html %]&amp;biblionumber=[% itemsloo.biblionumber | html %]">Remove from this list</a></span>
<span class="actions"><a class="btn btn-link btn-disabled remove removefromlist" href="/cgi-bin/koha/opac-shelves.pl?op=remove_biblios&amp;shelfnumber=[% shelf.shelfnumber | html %]&amp;biblionumber=[% itemsloo.biblionumber | html %]"><i class="fa fa-fw fa-remove"></i> Remove from this list</a></span>
[% END %]
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
[% IF ( itemsloo.incart ) %]
<span class="actions"><a data-biblionumber="[% itemsloo.biblionumber | html %]" class="addtocart cart[% itemsloo.biblionumber | html %] hidden" href="#">In your cart</a> <a data-biblionumber="[% itemsloo.biblionumber | html %]" class="cartRemove cartR[% itemsloo.biblionumber | html %] hidden" href="#">(remove)</a></span>
<span class="actions"><a data-biblionumber="[% itemsloo.biblionumber | html %]" class="btn btn-link addtocart cart[% itemsloo.biblionumber | html %] hidden" href="#"><i class="fa fa-fw fa-shopping-cart"></i> In your cart</a> <a data-biblionumber="[% itemsloo.biblionumber | html %]" class="btn btn-link cartRemove cartR[% itemsloo.biblionumber | html %] hidden" href="#">(remove)</a></span>
[% ELSE %]
<span class="actions"><a data-biblionumber="[% itemsloo.biblionumber | html %]" class="addtocart cart[% itemsloo.biblionumber | html %] hidden" href="#">Add to cart</a> <a style="display:none;" data-biblionumber="[% itemsloo.biblionumber | html %]" class="cartRemove cartR[% itemsloo.biblionumber | html %] hidden" href="#">(remove)</a></span>
<span class="actions"><a data-biblionumber="[% itemsloo.biblionumber | html %]" class="btn btn-link addtocart cart[% itemsloo.biblionumber | html %] hidden" href="#"><i class="fa fa-fw fa-shopping-cart"></i> Add to cart</a> <a style="display:none;" data-biblionumber="[% itemsloo.biblionumber | html %]" class="btn btn-link cartRemove cartR[% itemsloo.biblionumber | html %] hidden" href="#">(remove)</a></span>
[% END %]
[% END # / IF opacbookbag %]
</span> <!-- / .results_summary .actions -->
@ -668,7 +668,7 @@
[% END %]
[% IF loggedinusername %]
<div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form">New list</a></div>
<div id="toolbar" class="toolbar"><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus"></i> New list</a></div>
[% ELSE %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
<div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
@ -705,7 +705,7 @@
<input type="hidden" name="category" value="[% s.category | html %]" />
<input type="hidden" name="op" value="edit_form" />
<input type="hidden" name="referer" value="list" />
<input type="submit" class="editshelf" value="Edit" />
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-pencil-square-o"></i> Edit</button>
</form>
[% END %]
[% IF s.can_be_deleted( loggedinusernumber ) %]
@ -714,7 +714,7 @@
<input type="hidden" name="referer" value="list" />
<input type='hidden' name='category' value='[% category | html %]' />
<input type="hidden" name="shelfnumber" value="[% s.shelfnumber | html %]" />
<input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-remove"></i> Delete</button>
</form>
[% END %]
[% IF s.is_private AND s.can_be_managed( loggedinusernumber ) AND Koha.Preference('OpacAllowSharingPrivateLists') %]
@ -774,7 +774,6 @@
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
<script>
//<![CDATA[
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
@ -857,7 +856,7 @@ $(function() {
$("a.print").show();
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
$("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
$("#placehold").html("<a href=\"#\" class=\"btn btn-link hold tag_hides btn-disabled\"><i class=\"fa fa-fw fa-bookmark\"></i> "+_("Place hold")+"<\/a>");
$("#selections-toolbar a.hold").click(function(){
holdSelections();
return false;
@ -950,7 +949,7 @@ $(function() {
return false;
}
});
$("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
$("#removeitems").html("<a href=\"#\" class=\"btn btn-link disabled removeitems tag_hides\"><i class=\"fa fa-fw fa-remove\"></i> "+_("Remove from list")+"</a>")
.click(function(){
$("#myform").submit();
return false;
@ -1003,6 +1002,5 @@ function AdjustRemark() {
$("#anyone_remark").hide();
}
}
//]]>
</script>
[% END %]

View File

@ -830,7 +830,7 @@
$("#renewall").submit();
});
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
$("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");
$("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" class=\"btn btn-link\" href=\"#\"><i class=\"fa fa-check\"></i> "+_("Renew selected")+"</a> <a id=\"renewall_link\" class=\"btn btn-link\" href=\"#\"><span class=\"fa-stack\"><i class=\"fa fa-check fa-stack-1x\"></i><i class=\"fa fa-check fa-stack-1x\"></i></span> "+_("Renew all")+"</a></div>");
[% END %]
[% END %]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -476,18 +476,18 @@ function hideCart(){
function updateLink(val,op,target){
if(target){
if(op == "add"){
target.$("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart");
target.$("a.cart"+val).html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_IN_CART ).addClass("incart");
target.$("a.cartR"+val).show();
} else {
target.$("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val);
target.$("a.cart"+val).html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_NOT_IN_CART ).removeClass("incart").addClass("addtocart cart"+val);
target.$("a.cartR"+val).hide();
}
} else {
if(op == "add"){
$("a.cart"+val).html(MSG_ITEM_IN_CART).addClass("incart");
$("a.cart"+val).html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_IN_CART ).addClass("incart");
$("a.cartR"+val).show();
} else {
$("a.cart"+val).html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart cart"+val);
$("a.cart"+val).html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_NOT_IN_CART ).removeClass("incart").addClass("addtocart cart"+val);
$("a.cartR"+val).hide();
}
}
@ -495,10 +495,10 @@ function updateLink(val,op,target){
function updateAllLinks(target){
if(target){
target.$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart");
target.$("a.incart").html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_NOT_IN_CART ).removeClass("incart").addClass("addtocart");
target.$("a.cartRemove").hide();
} else {
$("a.incart").html(MSG_ITEM_NOT_IN_CART).removeClass("incart").addClass("addtocart");
$("a.incart").html( "<i class=\"fa fa-fw fa-shopping-cart\"></i> " + MSG_ITEM_NOT_IN_CART ).removeClass("incart").addClass("addtocart");
$("a.cartRemove").hide();
}
}