Comments (9)
Yeah, I did the same thing. I think it is getting encoded either when it is sent to Fedora or on the way back.
@daniel-dgi suggested that we could probably fix this in the json -> json-ld conversion.
But you are correct, there is the question if we should allow this or not.
from documentation.
I think this gets filtered out here:
https://github.com/Islandora/islandora/blob/7.x/includes/dublin_core.inc#L137
from documentation.
@philred++
from documentation.
@philred I don't think that's the problem because
a) if you don't specify otherwise, filter_xss() permits 'em' tags, and
b) that code is in Islandora/islandora, i.e. it's the 7.x-1.x branch.
from documentation.
@philred, that link is to the current Islandora 7.x-1.x code base. So, it wouldn't apply here 😄
from documentation.
After reading every DC standards document I could find, I would say the spirit of DC is plain text.
Based upon that, one can confidently say HTML in DC would be non-standard.
But clearly, standards never stopped anyone... For example, colon is a reserved character in URLs, but people still use colons every day in URLs by escaping them (or have the browser do it for them automagically)
There is no doubt in my mind, if one has the will, one can find a technical way to make it happen. For example, by wrapping HTML in CDATA.
But maybe it's a non-technical, Jurassic Park-type question: just because you can do it, should you? Again, that question doesn't stop most people, especially wildly talented people like Islandorians :)
Who am I to say no, or that it's not a good idea, when someone has a need to format their plain-textual data? A very common use case is simply wanting to add a new line to break up paragraphs. It's really obvious when you see it; I'm sure you see it every day.
I guess another perspective is machine-readable vs. human readable. Is there a happy, middle ground that can be found, that would be acceptable to all of the various components the mixed formatted text will pass through?
from documentation.
Just to note it ... there are schema that do allow markup within elements. EAD is one - the bioghist element allows a number of tags. DDI 3.2 is another schema we use that allows for XHTML elements (see the DDI User Guide - Appendix B: XHTML Tags Support by DDI ).
from documentation.
I'm fine with enforcing that DC be plain text (by whatever transform is currently going on) so long as there is a way to write, store, and access marked-up text in another field - like Donald pointed out, there are some places where that would be in-spec. The user need (as expressed to me, which resulted in some unpleasant hackery) is that sometimes text is grammatically wrong unless markup (italics, super/subscript, etc) is present. This is especially true in languages with prescriptive rules such as French.
from documentation.
Clearing out D7 issues.
from documentation.
Related Issues (20)
- [BUG] Blocks disappear after being edited because of visibility constraint "node_has_ancestor" HOT 4
- [DOCS] Add link to MIG metadata configuration spreadsheet to official docs HOT 2
- [TECH DEBT] MediaSourceService defined but never used HOT 3
- [DOCS] Documentation needed for Islandora Site Template
- [USE CASE] Enable easier testing of PRs/branches by mirroring all Github branches to Gitlab HOT 1
- Add actual image alt text to the Sandbox (Demo Objects). HOT 3
- Drupal 11 Compatibility
- [BUG] Decoration of child/media upload batch processor services fails to (un)serialize inner/decorated service
- [DOCS] Document how to use the official Matomo Docker image with Islandora
- Update testing/compatibility matrices: Drop Drupal 10.1, add 10.4.x-dev.
- [BUG] Drupal 10.3, Image styles that use flysytem (Fedora) are broken again.
- [DOCS] Manual Installation: Recommended Changes to Documentation HOT 5
- [BUG] Database update errors out after updating to Drupal 10.3.1 (solution included) HOT 5
- Incomplete reference on islandora.ca HOT 1
- [DOCS] Provide documentation / configuraiton options to install Islandora (Starter Site) without Fedora integration
- Remove Vagrant reference HOT 1
- [BUG] Islandora IIIF PHP warnings HOT 4
- [FEATURE] When generating video/audio service files, copy a reference to the transcript files. HOT 1
- [FEATURE] Validate file types.
- [USE CASE] Complex (Structured) Titles and other special Title features
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.