View | Details | Raw Unified | Return to bug 13642
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +129 lines)
Lines 297-302 function verify_images() { Link Here
297
297
298
        [% END %]
298
        [% END %]
299
    });
299
    });
300
301
    //JQuery for Dublin Core Exporter
302
    $(document).ready(function(){
303
        $("#input-simple").click(function(){
304
            $(".rdfoptions").removeAttr("disabled");
305
            $(".xmloptions").attr("disabled","disabled");
306
            $("#dc-rdf").toggle();
307
            $("#dc-xml").hide();
308
        });
309
    });
310
311
    $(document).ready(function(){
312
        $("#input-rdf").click(function(){
313
            $(".rdfoptions").removeAttr("disabled");
314
            $(".xmloptions").attr("disabled","disabled");
315
            $("#dc-rdf").toggle();
316
            $("#dc-xml").hide();
317
        });
318
    });
319
320
    $(document).ready(function(){
321
        $("#input-xml").click(function(){
322
            $(".xmloptions").removeAttr("disabled");
323
            $(".rdfoptions").attr("disabled","disabled");
324
                if($("#root_checked").is(':checked')){
325
                    $("#root_value").removeAttr("disabled");
326
                } else {
327
                    $("#root_value").attr("disabled","disabled");
328
                }
329
                if($("#schema_checked").is(':checked')){
330
                    $("#schema_value").removeAttr("disabled");
331
                } else {
332
                    $("#schema_value").attr("disabled","disabled");
333
                }
334
                $("#dc-xml").toggle();
335
                $("#dc-rdf").hide();
336
        });
337
    });
338
339
    $(document).ready(function(){
340
        $("#root_checked").click(function(){
341
            if($("#root_checked").is(':checked')){
342
                $("#root_value").removeAttr("disabled");
343
            } else {
344
                $("#root_value").attr("disabled","disabled");
345
            }
346
        });
347
    });
348
349
    $(document).ready(function(){
350
        $("#schema_checked").click(function(){
351
            if($("#schema_checked").is(':checked')){
352
                $("#schema_value").removeAttr("disabled");
353
            } else {
354
                $("#schema_value").attr("disabled","disabled");
355
            }
356
        });
357
    });
358
359
    $(document).ready(function(){
360
        $("#input-oai").click(function(){
361
            $(".rdfoptions").attr("disabled","disabled");
362
            $(".xmloptions").attr("disabled","disabled");
363
            $("#dc-rdf").hide();
364
            $("#dc-xml").hide();
365
        });
366
    });
367
300
//]]>
368
//]]>
301
</script>
369
</script>
302
</head>
370
</head>
Lines 1003-1009 function verify_images() { Link Here
1003
      <th>Save Record</th>   </tr>
1071
      <th>Save Record</th>   </tr>
1004
    <tr><td> Select download format:    <select name="format">
1072
    <tr><td> Select download format:    <select name="format">
1005
        <option value="mods">MODS (XML)</option>
1073
        <option value="mods">MODS (XML)</option>
1006
        <option value="dc">Dublin Core (XML)</option>
1074
        <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option> <!-- trigger modal -->
1007
        <option value="marcxml">MARCXML</option>
1075
        <option value="marcxml">MARCXML</option>
1008
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1076
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1009
        <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
1077
        <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
Lines 1036-1039 function verify_images() { Link Here
1036
</div>
1104
</div>
1037
[% END %]
1105
[% END %]
1038
</div>
1106
</div>
1107
    <!-- Modal for Dublin Core-->
1108
    <div class="modal hide" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_" aria-hidden="true">
1109
        <div class="modal-header">
1110
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
1111
            <h3 id="exportLabelexportModal_">Exporting to Dublin Core...</h3>
1112
        </div>
1113
        <!-- Form to recolect data for Dublin Core-->
1114
        <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
1115
        <div class="modal-body">
1116
            <fieldset>
1117
                <input id="input-simple" type="radio" name="recommendation" value="simple-dc-rdf">Simple DC-RDF
1118
                <br>
1119
                <input id="input-rdf" type="radio" name="recommendation" value="dc-rdf" checked>DC-RDF (Recommended)
1120
                <div id="dc-rdf" style="display:none;">
1121
                    <br>DC-RDF is downloadable in &quot;rdfxml&quot; by default (this is according with the
1122
                    <br>recommendation),  but you can download the file in other formats:
1123
                    <br>
1124
                    <input class="rdfoptions" type="radio" name="formats" value="rdfxml" checked>rdfxml
1125
                    <input class="rdfoptions" type="radio" name="formats" value="rdfjson">rdfjson
1126
                    <input class="rdfoptions" type="radio" name="formats" value="ntriples">ntriples
1127
                    <input class="rdfoptions" type="radio" name="formats" value="nquads">nquads
1128
                    <input class="rdfoptions" type="radio" name="formats" value="ntriples-canonical">ntriples-canonical
1129
                    <input class="rdfoptions" type="radio" name="formats" value="turtle">turtle
1130
                </div>
1131
                <br>
1132
                <input id="input-xml" type="radio" name="recommendation" value="dc-xml">DC-XML
1133
                <div id="dc-xml" style="display:none;">
1134
                    <p><b>Output options for DC-XML</b>
1135
                    <br>
1136
                    <b>Dublin Core level</b></p>
1137
                    <p><input class="xmloptions" type="radio" name="qualifier" value="0" checked disabled>Simple Dublin Core
1138
                    <input class="xmloptions" type="radio" name="qualifier" value="1" disabled>Qualified Dublin Core</p>
1139
                    <b>Other data (Optional)</b>
1140
                    <br>
1141
                    <input id="root_checked" class="xmloptions" type="checkbox" value="root">
1142
                    Root element: <input id="root_value" class="xmloptions" type="text" name="root_element" value="metadata" disabled>
1143
                    <br>The xsischemaLocation should be filled like:
1144
                    <br>http://example.org/myapp/ http://example.org/myapp/schema.xsd
1145
                    <br>
1146
                    <input id="schema_checked" class="xmloptions" type="checkbox" value="schema" disabled>
1147
                    xsischemaLocation: <input id="schema_value" class="xmloptions" type="url" name="xsischemalocation" disabled><br>
1148
                </div>
1149
                <br>
1150
                <input id="input-oai" type="radio" name="recommendation" value="oai-dc">OAI-DC
1151
                <br>
1152
                <div>
1153
                <br>Learn more about DCMI Specifications at: <a href="http://dublincore.org/specifications/">http://dublincore.org/specifications/</a>
1154
                <br>
1155
                </div>
1156
            </fieldset>
1157
        </div>
1158
        <div class="modal-footer">
1159
            <button type="submit" class="btn">Export</button>
1160
            <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
1161
        </div>
1162
        <input type="hidden" name="op" value="export" />
1163
        <input type="hidden" name="format" value="dc" />
1164
        <input type="hidden" name="bib" value="[% biblionumber %]" />
1165
        </form>
1166
    </div>
1039
[% INCLUDE 'intranet-bottom.inc' %]
1167
[% INCLUDE 'intranet-bottom.inc' %]
1040
- 

Return to bug 13642