From 28ddf31c940526beb66b224ed63188a1dab173c4 Mon Sep 17 00:00:00 2001
From: Hector Castro <hector.hecaxmmx@gmail.com>
Date: Fri, 30 Jan 2015 11:11:47 -0600
Subject: [PATCH 07/11] Bug 13642 [ENH] Adding new features for Dublin Core
 metadata Changes to masthead.inc

- Include the modal for Dublin Core options to export
---
 .../opac-tmpl/bootstrap/en/includes/masthead.inc   |   64 ++++++++++++++++++++
 1 file changed, 64 insertions(+)
 mode change 100644 => 100755 koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
old mode 100644
new mode 100755
index 94dec72..f435fef
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
@@ -316,3 +316,67 @@
             </div>
         </form> <!-- /#auth -->
     </div>  <!-- /#modalAuth  -->
+
+    <!-- Dublin Core Exporter modal form -->
+    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+        <div class="modal-dialog">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
+                    <h4 class="modal-title" id="myModalLabel">Exporting to Dublin Core...</h4>
+                </div>
+                <form method="get" action="/cgi-bin/koha/opac-export.pl">
+                    <div class="modal-body">
+                        <fieldset>
+                            <input id="input-simple" type="radio" name="recommendation" value="simple-dc-rdf">Simple DC-RDF
+                            <br>
+                            <input id="input-rdf" type="radio" name="recommendation" value="dc-rdf" checked>DC-RDF (Recommended)
+                            <div id="dc-rdf" style="display:none;">
+                                <br>DC-RDF is downloadable in &quot;rdfxml&quot; by default (this is according with the
+                                <br>recommendation),  but you can download the file in other formats:
+                                <br>
+                                <input class="rdfoptions" type="radio" name="formats" value="rdfxml" checked>rdfxml
+                                <input class="rdfoptions" type="radio" name="formats" value="rdfjson">rdfjson
+                                <input class="rdfoptions" type="radio" name="formats" value="ntriples">ntriples
+                                <input class="rdfoptions" type="radio" name="formats" value="nquads">nquads
+                                <input class="rdfoptions" type="radio" name="formats" value="ntriples-canonical">ntriples-canonical
+                                <input class="rdfoptions" type="radio" name="formats" value="turtle">turtle
+                            </div>
+                            <br>
+                            <input id="input-xml" type="radio" name="recommendation" value="dc-xml">DC-XML
+                            <div id="dc-xml" style="display:none;">
+                                <p><b>Output options for DC-XML</b>
+                                <br>
+                                <b>Dublin Core level</b></p>
+                                <p><input class="xmloptions" type="radio" name="qualifier" value="0" checked disabled>Simple Dublin Core
+                                <input class="xmloptions" type="radio" name="qualifier" value="1" disabled>Qualified Dublin Core</p>
+                                <b>Other data (Optional)</b>
+                                <br>
+                                <input id="root_checked" class="xmloptions" type="checkbox" value="root">
+                                Root element: <input id="root_value" class="xmloptions" type="text" name="root_element" value="metadata" disabled>
+                                <br>The xsischemaLocation should be filled like:
+                                <br>http://example.org/myapp/ http://example.org/myapp/schema.xsd
+                                <br>
+                                <input id="schema_checked" class="xmloptions" type="checkbox" value="schema" disabled>
+                                xsischemaLocation: <input id="schema_value" class="xmloptions" type="url" name="xsischemalocation" disabled><br>
+                            </div>
+                            <br>
+                            <input id="input-oai" type="radio" name="recommendation" value="oai-dc">OAI-DC
+                            <br>
+                            <div>
+                                <br>Learn more about DCMI Specifications at: <a href="http://dublincore.org/specifications/">http://dublincore.org/specifications/</a>
+                                <br>
+                            </div>
+                        </fieldset>
+                    </div>
+                    <div class="modal-footer">
+                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
+                        <button type="submit" class="btn btn-primary">Export</button>
+                    </div>
+                    <input type="hidden" name="op" value="export" />
+                    <input type="hidden" name="format" value="dc" />
+                    <input type="hidden" name="bib" value="[% biblionumber %]" />
+                </form>
+            </div>
+        </div>
+    </div><!-- End modal form -->
-- 
1.7.10.4