"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt" (23 Feb 2021, 4927 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% USE raw %]
    2 [% USE Asset %]
    3 [% USE AuthorisedValues %]
    4 [% SET footerjs = 1 %]
    5 [% INCLUDE 'doc-head-open.inc' %]
    6 <title>Koha &rsaquo; Tools &rsaquo; Tags &rsaquo; [% IF ( do_it ) %]Review &rsaquo; [% ELSE %]Review tags[% END %]</title>
    7 [% INCLUDE 'doc-head-close.inc' %]
    8 <style>
    9 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }</style>
   10 </head>
   11 
   12 <body id="tags_list" class="tools">
   13 [% INCLUDE 'header.inc' %]
   14 [% INCLUDE 'cat-search.inc' %]
   15 
   16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tags/review.pl">Tags</a> &rsaquo; Results for tag <i>[% tag | html %]</i></div>
   17 
   18 <div class="main container-fluid">
   19     <div class="row">
   20         <div class="col-sm-10 col-sm-push-2">
   21             <main>
   22 
   23 [% IF ( titles ) %]
   24 <h3>Titles tagged with the term <i>[% tag | html %]</i></h3>
   25 <table id="itemst">
   26 	<thead><tr>
   27 	    <th>Title</th>
   28 	    <th>Location</th>
   29 	    <th>&nbsp;</th>
   30         </tr></thead>
   31 
   32         [% FOREACH title IN titles %]
   33             <tr>
   34             <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = title.biblionumber %][% INCLUDE 'biblio-title.inc' biblio=title %]</a>
   35             [% title.author | html %]
   36             <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
   37             [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
   38             [% IF ( title.pages ) %] - [% title.pages | html %][% IF ( title.size ) %] [% title.size | html %]
   39             [% END %]
   40             [% END %]</p>
   41             [% IF ( title.notes ) %]
   42             <p>[% title.notes | html %]</p>[% END %]
   43             [% IF ( title.TagLoop ) %]<p style="font-size:90%"><strong>Tagged with:</strong> [% FOREACH TagLoo IN title.TagLoop %]
   44             <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
   45             [% END %]</p>
   46             [% END %]
   47             </td>
   48             <td>[% IF ( title.items ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
   49                 <li>
   50                     [% item.branchname | html %]
   51                     <span class="shelvingloc">
   52                         [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
   53                     </span>
   54                     [% IF ( item.itemcallnumber ) %]
   55                         ([% item.itemcallnumber | html %])
   56                     [% END %]
   57                 </li>
   58                 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
   59              </td>
   60              <td><form method="post" action="/cgi-bin/koha/tags/list.pl"><input type="hidden" name="op" value="del" /><input type="hidden" name="tag" value="[% tag | html %]" /><input type="hidden" name="tag_id" value="[% title.tag_id | html %]" /><button type="submit" class="delete btn btn-default btn-sm"><i class="fa fa-trash"></i> Remove tag</button></form></td>
   61             </tr>
   62         [% END %]
   63     </table>
   64 [% ELSE %]
   65 	<div class="dialog message">There are no titles tagged with the term <i>[% tag | html %]</i></div>
   66 [% END %]
   67 </form>
   68 
   69             </main>
   70         </div> <!-- /.col-sm-10.col-sm-push-2 -->
   71 
   72         <div class="col-sm-2 col-sm-pull-10">
   73             <aside>
   74                 <ul>
   75                     <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved tags</a></li>
   76                     <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected tags</a></li>
   77                     <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending tags</a></li>
   78                     <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">All tags</a></li>
   79                 </ul>
   80                 [% INCLUDE 'tools-menu.inc' %]
   81             </aside>
   82         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
   83      </div> <!-- /.row -->
   84 
   85 [% MACRO jsinclude BLOCK %]
   86     [% INCLUDE 'datatables.inc' %]
   87     <script>
   88         $(document).ready(function() {
   89             $(".delete").click(function (event) {
   90                 $(this).parent().parent().parent().addClass("selected");
   91                 var answer = confirm(_("Are you sure you want to remove the tag from this title?"));
   92                     if (!answer){
   93                         $("tr").removeClass("selected");
   94                         event.preventDefault();
   95                     }
   96             });
   97             $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
   98                 "aoColumnDefs": [
   99                     { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
  100                 ],
  101                 "aaSorting": [[ 0, "asc" ]],
  102                 "sPaginationType": "full"
  103             }));
  104         });
  105     </script>
  106 [% END %]
  107 
  108 [% INCLUDE 'intranet-bottom.inc' %]