Issue383

Title License is a resource, not literal
Priority bug Status chatting
Project PDF License Manager Milestone
Superseder "cc:attributionName" and the "cc:attributionURL" properties are not included in the link to CC license
View: 353
Nosy List BARTHIBAN, ahmadkomari, nyergler
Assigned To Keywords neonoietrtuiagdr

Created on 2009-06-09.15:44:12 by nyergler, last changed 2011-10-29.16:42:33 by ahmadkomari.

Messages
msg3656 (view) Author: ahmadkomari Date: 2011-10-29.16:42:33
good
msg1214 (view) Author: nyergler Date: 2009-07-03.16:01:22
Reseting fields after spam by BARTHIBAN.  What a dick.
msg1138 (view) Author: nyergler Date: 2009-06-09.15:44:12
Index: pdflicense/XmpManager.java
===================================================================
--- pdflicense/XmpManager.java  (revisión: 12728)
+++ pdflicense/XmpManager.java  (copia de trabajo)
@@ -87,11 +87,11 @@

               nl = doc.getElementsByTagName("cc:license");
               if (nl!=null) {
-                       Node cclicense = nl.item(0);
+                       Element cclicense = (Element)nl.item(0);
                       if (cclicense != null) {
-                               Node text = cclicense.getFirstChild();
+                               Attr text =
cclicense.getAttributeNode("rdf:resource");
                               if (text != null) {
-                                       lic.setCCLicense( text.getNodeValue() );
+                                       lic.setCCLicense( text.getValue() );
                               }
                       }
               }
@@ -175,7 +175,7 @@
                       Element cclicense = doc.createElement("cc:license");
                       descr.setAttribute("rdf:about", "");
                       descr.setAttribute("xmlns:cc",
"http://creativecommons.org/ns#");
-                       cclicense.appendChild(doc.createTextNode(lic.getUrl()) );
+                       cclicense.setAttribute("rdf:resource", lic.getUrl() );
                       //cclicense.setAttribute("rdf:", lic.getUrl() );
                       descr.appendChild(cclicense);
                       rdf.appendChild(descr);
@@ -313,7 +313,7 @@
               s.append(" </rdf:Description>\n");

               s.append(" <rdf:Description rdf:about=''
xmlns:cc='http://creativecommons.org/ns#'>\n");
-               s.append("  <cc:license>"+lic.getUrl()+"</cc:license>\n");
+               s.append("  <cc:license rdf:resource="+lic.getUrl()+"/>\n");
               s.append(" </rdf:Description>\n");

               s.append("</rdf:RDF>\n");
History
Date User Action Args
2011-10-29 16:42:33ahmadkomarisetnosy: + ahmadkomari
superseder: + "cc:attributionName" and the "cc:attributionURL" properties are not included in the link to CC license
messages: + msg3656
keyword: + neonoietrtuiagdr
2009-09-14 22:08:00nyerglersetstatus: unread -> chatting
messages: - msg1213
2009-09-14 22:07:53nyerglersetfiles: - barthbancallingcards.pushline[1]
2009-07-03 16:01:22nyerglersetstatus: in-progress -> unread
title: http://barthbancallingcards.pushline.com/ -> License is a resource, not literal
nosy: - admin
messages: + msg1214
assignedto: admin ->
milestone: Herder 2008.09.12 ->
2009-07-03 09:37:00BARTHIBANsetstatus: unread -> in-progress
files: + barthbancallingcards.pushline[1]
title: License is a resource, not literal -> http://barthbancallingcards.pushline.com/
nosy: + admin, BARTHIBAN
messages: + msg1213
assignedto: admin
milestone: Herder 2008.09.12
2009-06-09 15:44:12nyerglercreate