From 0dd1eade8f4f74dc58905f641c74deb53a1085d1 Mon Sep 17 00:00:00 2001 From: Hector Castro 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(); + }); + }); + //]]> @@ -1003,7 +1071,7 @@ function verify_images() { Save Record Select download format: @@ -1036,4 +1104,64 @@ function verify_images() { [% END %] + + [% INCLUDE 'intranet-bottom.inc' %] -- 1.7.10.4