"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt" (23 Feb 2021, 4455 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 [% SET footerjs = 1 %]
    2 [% INCLUDE 'doc-head-open.inc' %]
    3 <title>Koha &rsaquo; SRU search fields mapping for authorities</title>
    4 [% INCLUDE 'doc-head-close.inc' %]
    5 </head>
    6 
    7 <body id="admin_sru_modmapping" class="admin">
    8 
    9 <div class="main container-fluid">
   10 
   11     <main>
   12         <h1>Modify SRU search fields mapping for authorities</h1>
   13         <form id="form01" method="post">
   14             <fieldset class="rows">
   15                 <div class="row">
   16                     <div class="col-xs-6">
   17                         <ol>
   18                             <li>
   19                                 <label for="srchany">Keyword (any): </label>
   20                                 <input id="srchany" type="text" value="[% mapping.srchany | html %]" />
   21                             </li>
   22                             <li>
   23                                 <label for="nameany">Name (any): </label>
   24                                 <input id="nameany" type="text" value="[% mapping.nameany | html %]" />
   25                             </li>
   26                             <li>
   27                                 <label for="authorany">Author (any): </label>
   28                                 <input id="authorany" type="text" value="[% mapping.authorany | html %]" />
   29                             </li>
   30                             <li>
   31                                 <label for="authorpersonal">Author (personal): </label>
   32                                 <input id="authorpersonal" type="text" value="[% mapping.authorpersonal | html %]" />
   33                             </li>
   34                             <li>
   35                                 <label for="authorcorp">Author (corporate): </label>
   36                                 <input id="authorcorp" type="text" value="[% mapping.authorcorp | html %]" />
   37                             </li>
   38                             <li>
   39                                 <label for="authormeetingcon">Author (meeting/conference): </label>
   40                                 <input id="authormeetingcon" type="text" value="[% mapping.authormeetingcon | html %]" />
   41                             </li>
   42                         </ol>
   43                     </div>
   44                     <div class="col-xs-6">
   45                         <ol>
   46                             <li>
   47                                 <label for="subject">Subject heading: </label>
   48                                 <input id="subject" type="text" value="[% mapping.subject | html %]" />
   49                             </li>
   50                             <li>
   51                                 <label for="subjectsubdiv">Subject sub-division: </label>
   52                                 <input id="subjectsubdiv" type="text" value="[% mapping.subjectsubdiv | html %]" />
   53                             </li>
   54                             <li>
   55                                 <label for="title">Title (any): </label>
   56                                 <input id="title" type="text" value="[% mapping.title | html %]" />
   57                             </li>
   58                             <li>
   59                                 <label for="uniformtitle">Title (uniform): </label>
   60                                 <input id="uniformtitle" type="text" value="[% mapping.uniformtitle | html %]" />
   61                             </li>
   62                         </ol>
   63                     </div>
   64                 </div>
   65             </fieldset>
   66             <fieldset class="action">
   67                 <input type="submit" value="Save" class="submit" />
   68                 <a class="close cancel" href="#">Cancel</a>
   69             </fieldset>
   70         </form>
   71 
   72     </main>
   73 
   74 [% MACRO jsinclude BLOCK %]
   75     <script>
   76         $(document).ready(function() {
   77             $("#form01").submit(function(event) {
   78                 if(window.opener) {
   79                     var newmap=allInputs();
   80                     window.opener.$('#show_sru_fields').val(newmap);
   81                     window.close();
   82                 } else {
   83                     // In this case not called as a popup. Just do nothing.
   84                     event.preventDefault();
   85                 }
   86             });
   87         });
   88         function allInputs () {
   89             var aInput= new Array();
   90             $("form :input").each(function() {
   91                 if( this.id && $(this).val() ) {
   92                     aInput.push(this.id+'='+$(this).val());
   93                 }
   94             });
   95             return aInput.join(',');
   96         }
   97     </script>
   98 [% END %]
   99 
  100 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]