Bugzilla – Attachment 35643 Details for
Bug 13642
Adding new features for Dublin Core metadata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13642 [ENH] Adding new features for Dublin Core metadata #7/9
0009-Bug-13642-ENH-Adding-new-features-for-Dublin-Core-me.patch (text/plain), 7.68 KB, created by
Héctor Eduardo Castro Avalos
on 2015-01-30 19:53:57 UTC
(
hide
)
Description:
Bug 13642 [ENH] Adding new features for Dublin Core metadata #7/9
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-01-30 19:53:57 UTC
Size:
7.68 KB
patch
obsolete
>From 0dd1eade8f4f74dc58905f641c74deb53a1085d1 Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Fri, 30 Jan 2015 11:17:22 -0600 >Subject: [PATCH 09/11] Bug 13642 [ENH] Adding new features for Dublin Core > metadata Include modal DC for staff in detail.tt > >- Inlude jquery for the modal >--- > .../prog/en/modules/catalogue/detail.tt | 130 +++++++++++++++++++- > 1 file changed, 129 insertions(+), 1 deletion(-) > mode change 100644 => 100755 koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >old mode 100644 >new mode 100755 >index ee5915e..d4da64c >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -297,6 +297,74 @@ function verify_images() { > > [% END %] > }); >+ >+ //JQuery for Dublin Core Exporter >+ $(document).ready(function(){ >+ $("#input-simple").click(function(){ >+ $(".rdfoptions").removeAttr("disabled"); >+ $(".xmloptions").attr("disabled","disabled"); >+ $("#dc-rdf").toggle(); >+ $("#dc-xml").hide(); >+ }); >+ }); >+ >+ $(document).ready(function(){ >+ $("#input-rdf").click(function(){ >+ $(".rdfoptions").removeAttr("disabled"); >+ $(".xmloptions").attr("disabled","disabled"); >+ $("#dc-rdf").toggle(); >+ $("#dc-xml").hide(); >+ }); >+ }); >+ >+ $(document).ready(function(){ >+ $("#input-xml").click(function(){ >+ $(".xmloptions").removeAttr("disabled"); >+ $(".rdfoptions").attr("disabled","disabled"); >+ if($("#root_checked").is(':checked')){ >+ $("#root_value").removeAttr("disabled"); >+ } else { >+ $("#root_value").attr("disabled","disabled"); >+ } >+ if($("#schema_checked").is(':checked')){ >+ $("#schema_value").removeAttr("disabled"); >+ } else { >+ $("#schema_value").attr("disabled","disabled"); >+ } >+ $("#dc-xml").toggle(); >+ $("#dc-rdf").hide(); >+ }); >+ }); >+ >+ $(document).ready(function(){ >+ $("#root_checked").click(function(){ >+ if($("#root_checked").is(':checked')){ >+ $("#root_value").removeAttr("disabled"); >+ } else { >+ $("#root_value").attr("disabled","disabled"); >+ } >+ }); >+ }); >+ >+ $(document).ready(function(){ >+ $("#schema_checked").click(function(){ >+ if($("#schema_checked").is(':checked')){ >+ $("#schema_value").removeAttr("disabled"); >+ } else { >+ $("#schema_value").attr("disabled","disabled"); >+ } >+ }); >+ }); >+ >+ $(document).ready(function(){ >+ $("#input-oai").click(function(){ >+ $(".rdfoptions").attr("disabled","disabled"); >+ $(".xmloptions").attr("disabled","disabled"); >+ $("#dc-rdf").hide(); >+ $("#dc-xml").hide(); >+ }); >+ }); >+ > //]]> > </script> > </head> >@@ -1003,7 +1071,7 @@ function verify_images() { > <th>Save Record</th> </tr> > <tr><td> Select download format: <select name="format"> > <option value="mods">MODS (XML)</option> >- <option value="dc">Dublin Core (XML)</option> >+ <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option> <!-- trigger modal --> > <option value="marcxml">MARCXML</option> > <option value="marc8">MARC (non-Unicode/MARC-8)</option> > <option value="utf8">MARC (Unicode/UTF-8)</option> </select> >@@ -1036,4 +1104,64 @@ function verify_images() { > </div> > [% END %] > </div> >+ <!-- Modal for Dublin Core--> >+ <div class="modal hide" id="exportModal_" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_" aria-hidden="true"> >+ <div class="modal-header"> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> >+ <h3 id="exportLabelexportModal_">Exporting to Dublin Core...</h3> >+ </div> >+ <!-- Form to recolect data for Dublin Core--> >+ <form method="get" action="/cgi-bin/koha/catalogue/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 "rdfxml" 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="submit" class="btn">Export</button> >+ <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</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> > [% INCLUDE 'intranet-bottom.inc' %] >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13642
:
35637
|
35638
|
35639
|
35640
|
35641
|
35642
|
35643
|
35644
|
35645
|
35663
|
35957
|
35981
|
35982
|
35983
|
35999
|
36000
|
36005
|
36006
|
36147
|
36154
|
36631
|
36632
|
36633
|
36636
|
36714
|
38220
|
38819
|
39623
|
39654
|
40786
|
40787
|
42168
|
43311
|
43313
|
43545
|
43548
|
43549
|
43586
|
43612
|
44627
|
44629
|
44658
|
44659
|
44660
|
44661
|
44662
|
44669
|
44672
|
44677
|
44727
|
44728
|
44729
|
44815
|
44816
|
44819
|
45970
|
45971
|
46514
|
46584
|
46585
|
46586
|
46587
|
46588