History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMATH-834
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Stefan Winterstein
Reporter: Paul Libbrecht
Votes: 0
Watchers: 0
Operations

Link this issue to another issue
If you were logged in you would be able to see more operations.
ActiveMath

Metadata entries should display OMDoc (eg. Copyright)

Created: 2006-07-14 22:07   Updated: 2006-08-23 17:08
Component/s: None
Affects Version/s: 1.0b4
Fix Version/s: 1.0

Time Tracking:
Not Specified

File Attachments: 1. File smime.p7s (3 kb)

Issue Links:
depends-on
 


 Description  « Hide
Currently, the metadata controller considers the description and all other fields as plain text. This is wrong at least to insert such things as hyperlinks or formulae.
I discovered this while wishing to introduce a good-style copyright statement for the files the new authors should produce... e.g. as follows:

<Rights> ** <omlet type="image" argstr="ccpic">
Distributed under the
<textref xref="http://creativecommons.org/licenses/by-sa/2.5">Creative
Commons Attribution Share-Alike License</textref>,
</omlet> **
<private id="ccpic">
<data format="html" href="http://creativecommons.org/images/public/somerights20.png"/>
</private>
</Rights>
for which only the ** ** are shown currently.

For now we have to content ourselves with plain text which means no clickable URL which I find sad.

paul



 All   Comments   Work Log   Change History   Version Control   FishEye   Crucible   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Paul Libbrecht - 2006-07-14 22:07
hopefully for 1.0 since it should not be a big deal and does provide a good enhancement for authors I feel.
paul

Stefan Winterstein - 2006-07-20 11:07
Can you point me to a test case?

Paul Libbrecht - 2006-07-20 13:07
try this from an ActiveMath that has exampleSrc:

/ActiveMath2/main/copyright.cmd?id=mbase%3A%2F%2FActiveMath_Content_Examples%2Fapplet_example_th%2Fapplet_Result

i.e. see the copyright of "Example: applet".

The current one shows in the field "Rights":
Rights: Distributed under license.
Whereas it should show a link to the a creative commons license.

paul


Stefan Winterstein - 2006-07-20 14:07
I did a quick test and tried to apply Formatter.formatTitle() that is working fine for transformation of TOC titles.

However, formatTitle() checks for an <OMBOJ> tag before it tries a transformation. Also, the preprocessors are not run (intentionally, because we don't want decoration).

For your <textref> to work, I assume I need to run the PreProcs? Also, shouldn't there be an <OMDOC> somewhere?


Paul Libbrecht - 2006-07-20 14:07
No textref is a pure product of XSL... no need for preprocessors.
Preprocessors would be needed if textref to an absolute http url don't produce a link this URL.
Preprocessors would also be needed if wishing a picture which I think may be important.

Any reason you don't run format(oj-element) instead ??
No, btw, it does not need to be an omdoc, I think. And if what you have is a list, just make new OJElement("theory",OJConstants.OMDOC_NAMESPACE)).setContent(list)
after having detached all of them.

paul


Stefan Winterstein - 2006-07-20 15:07
Okay, applying the usual transformation w/o PreProc, I get this output:

> Distributed under
> #hrefDictSymbol('http://creativecommons.org/licenses/by-sa/2.5' '')Creative
> Commons Attribution Share-Alike License</a> license.

When I pipe it though Velocity to resolve the macro, it links to search with the URL as an id...

I think <textref> is a bad example, as we interpret it as dictionary links. Wasn't there something like "omlet type hyperlink"?


Paul Libbrecht - 2006-07-20 15:07
no problem... so textref for absolute URLs don't work anymore.
For a link, one needs an omlet of type hyperlink, which needs
preprocessing then!
I have commited a changed content for experimenting.

paul


Stefan Winterstein - 2006-07-21 10:07
Postponing, and changed title.

Stefan Winterstein - 2006-08-23 17:08
Fixed July 25th.