Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GlossarySheet.xml #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<?xml version="1.1" encoding="UTF-8"?>

<!--
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<xwikidoc version="1.4" reference="Glossary.Code.GlossarySheet" locale="">
<web>Glossary.Code</web>
<name>GlossarySheet</name>
<language/>
<defaultLanguage/>
<translation>0</translation>
<creator>xwiki:XWiki.Admin</creator>
<parent>Glossary.Code.WebHome</parent>
<author>xwiki:XWiki.Admin</author>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<version>1.1</version>
<title/>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
<?xml version="1.1" encoding="UTF-8"?>
<!--
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<xwikidoc version="1.4" reference="Glossary.Code.GlossarySheet" locale="">
<web>Glossary.Code</web>
<name>GlossarySheet</name>
<language/>
<defaultLanguage/>
<translation>0</translation>
<creator>xwiki:XWiki.Admin</creator>
<parent>Glossary.Code.WebHome</parent>
<author>xwiki:XWiki.Admin</author>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<version>1.1</version>
<title/>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see what's changed above. Maybe new lines?

<content>{{velocity}}
#set($object = $doc.getObject('Glossary.Code.GlossaryClass'))
#if (!$object)
Expand All @@ -52,7 +52,7 @@
&lt;dl&gt;
&lt;dt #if (!$editing &amp;&amp; $hasEdit)
class="editableProperty"
data-property="$escapetool.xml($services.model.serialize($object.getProperty('title').reference))"
data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('title')))"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this causes the glossary application to depends on 12.10.11 (it currently only requires 12.10). I guess it's acceptable, but I'm not really in charge of this application, so I prefer letting someone else decide.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it's weird that a new API was added in a bugfix release but it's the case : https://github.com/xwiki/xwiki-platform/blob/78f0a96fbe41e7f5c6242b1386bf1e7255dd1e1e/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Object.java#L142

@jmiba Does it mean that the xobject doesn't have the "title" property set in some circumstances? That seems weird since that property comes from the GlossaryClass XClass so it should always be there from what I see.

data-property-type="object"#end&gt;
&lt;label#if ($editing) for="Glossary.Code.GlossaryClass_0_title"#end&gt;
$escapetool.xml($doc.displayPrettyName('title', false, false))
Expand All @@ -61,7 +61,7 @@
&lt;dd&gt;$doc.display('title')&lt;/dd&gt;
&lt;dt #if (!$editing &amp;&amp; $hasEdit)
class="editableProperty"
data-property="$escapetool.xml($services.model.serialize($object.getProperty('definition').reference))"
data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('definition')))"
data-property-type="object"#end&gt;
&lt;label#if ($editing) for="Glossary.Code.GlossaryClass_0_definition"#end&gt;
$escapetool.xml($doc.displayPrettyName('definition', false, false))
Expand All @@ -71,5 +71,5 @@
&lt;/dl&gt;
&lt;/div&gt;
{{/html}}
{{velocity/}}</content>
</xwikidoc>
{{/velocity}}</content>
</xwikidoc>