Git Product home page Git Product logo

rightsstatements.github.io's Introduction

rightsstatements.org CMS

This CMS uses Jekyll.

Deployment

Create a new OAuth app on GitHub https://github.com/settings/applications/new

Oauth

On Netlify create a new deploy choosing the repository and using this configuration.

Build & deploy -> Build settings

Build & deploy -> Deploy contexts

On Identity, enable identity with GitHub as external provider.

In Access control -> OAuth, install an new GitHub provider and set the Client ID and Client Secret generated on GitHub.

Implementing translations

Transifex is used to carry out translations of the website. The relevant resources are tagged with the category website. Please get in touch with the maintainers to add a new language to the project.

To incorporate updates or new translations:

  • Install tx and run tx pull.
  • Edit _config.yml and _config_production.yml to add keys and associated translations for the language you're editing.
  • If provided, add any PDF documentation related to the translation to the files directory.

Editing content

Access CMS

Open /admin/ and log in with your GitHub account.

Creating a new post

Add a title, date, body and click save.

By default new post are not published and have the status draft, to publish them is necessary to click the Publish button

Is also possible to see a preview of the post by clicking View Preview, this link takes a while to load since new previews trigger separate build.

Changing the status will only affect how is shown in the workflow view and not publish it.

Managing assets

Click media on the top bar.

Click upload and choose your asset.

New images can be added by pressing the button in the editor.

Other files must be added as markdown.

[PDF](/files/160611proposal_for_implementation_UND.pdf)

rightsstatements.github.io's People

Contributors

aisaac avatar anarchivist avatar ariamatas avatar bwbroersma avatar dobladov avatar j0hj0h avatar literarymachine avatar mzeinstra avatar puik avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

rightsstatements.github.io's Issues

Background disappears on rights statements HTML pages

From @paul2keller:

In less wide browser windows the grey background disappears on the left and the right (see below) . As a result the visual effect (a sheet of paper on top of something) disappears. The grey background should remain visible (until we reach a very narrow window width the version for mobile phones does not have to have this effect)

screen shot 2016-04-22 at 20 52 48

Typography adjustments

Reported by @paul2keller:

Overall the text sizes are too big (for my taste) and should be reduced. I would settle for something that is 85-90% of the current text sizes. (with the exception of the text size in the navigation bar which is fine as it is)

The font weight of H2 looks to heavy (if you compare it to the mockup done by Ryan (see below). I would suggest that we make it a little bit lighter.

Reduce the overall width of all body text by 10-15% to make text easier to read.

This is the related issue previously mentioned to @literarymachine and @ryanjunell by email. As indicated, Felix had some questions about font sizes which were not necessarily clear in the Adobe Illustrator files sent by Ryan.

Additional parameters need to be checked for XSS

We introduce a vulnerability for our users by not checking for XSS in our additional paramaters

InC-OW-EU relatedURL 
NoC-NC date 
NoC-CR relatedURL 
NoC-OKLR relatedURL

For those browser that lack good XSS protection (Think of old browsers that sometimes run within public institutions this can create a vulnerability.

Example:

http://rightsstatements.org/page/InC-OW-EU/1.0/?language=en&relatedURL=%22%3E%3Cscript%3Ewindow.location%20=%22http://www.google.com%22%3C/script%3E

I suggest we make a simple check for the right dataformat before we present it to the users.

interchangeable use of "the organization that has published the Item” and ""the organization that has made the Item available”

the short description text of the NKC, CNE, NOC-NC and NOC-CR contain the phrase "the organization that has published the Item”, while we use "the organization that has made the Item available” elsewhere (consitently in the body of the statements). This should probably be harmonised (since the short description is not part of the statements proper, this should be considered a minor issue at this point. We should move on this quickly since this is something that will propagate through all translations)

statements logotypes and titles clickable

I suggest the logotypes and the titles (in red rectangles on the screenshot) of the individual declaration were also clickable (leading to the uri of the individual declaration).
screen shot 2018-06-11 at 12 36 34 2 2

Document editorial workflow for site content

From the minutes: "Allowing to edit the master branch, which automatically updates rightsstatements.github.io. Consequently we use rightsstatements.github.io as our staging environment."

Modify .travis.yml config to use `git push -q`

Since we're using a personal access token with Travis's secure environment variables, we should avoid the token showing up in the Travis logs. Currently, we're seeing something like the following:

$ [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && git push --force "https://${DEPLOY_KEY}@${GITHUB_REPO}" HEAD:${PRODUCTION_TARGET_BRANCH}
Counting objects: 11, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 321 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To https://[email protected]/rightsstatements/rightsstatements.github.io.git
 + f8a9a77...9d20c21 HEAD -> pages-production (forced update)

$ [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" != "false" ] && git push --force "https://${DEPLOY_KEY}@${GITHUB_REPO}" HEAD:${STAGING_TARGET_BRANCH}

Can we add -q as a parameter to the two git push commands to prevent the output of the access token?

Support for partial translations of site

The translation guidelines encourage translation partners to translate the text of the home page and the about page. Now that the German translation is complete, we have a translation of the home page, the statements, and the page elements for the vocab page.

How do we handle partial translations of the site? What impact does this have on navigation? If users are on a partially translated site, should they only see the pages that have translated into whatever the active locale is?

available in ... list

The declarations page should have after the introduction a clearly brought out language selection (Declarations available in German, Estonian.) as on Creative Commons pages.

This also available in ... should be also on every page of individual declarations.

The question is could it be used separately from the site's language selection... For instance having the site in English but looking at declarations only in another language.

screen shot 2018-06-05 at 10 16 52 2

Site needs social media meta properties

The site lacks social media meta properties which diminishes the richness of our social media outreach.

I suggest we add something like the following (draft) on our generic header and something programmatic on our statement pages:

<link rel="canonical" href="http://rightsstatements.org/en/" />
<meta property="og:locale" content="en_EN" />
<meta property="og:type" content="website" />
<meta property="og:title" content="RightsStatements.org" />
<meta property="og:description" content="RightsStatements.org provides 11 standardized rights statements for online cultural heritage." />
<meta property="og:url" content="http://rightsstatements.org/en/" />
<meta property="og:site_name" content="RightsStatements.org" />
<meta property="og:image" content="http://rightsstatements.org/files/images/logo.svg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:description" content="RightsStatements.org provides 11 standardized rights statements for online cultural heritage." />
<meta name="twitter:title" content="RightsStatements.org" />
<meta name="twitter:image" content="http://rightsstatements.org/files/images/logo.svg" />
<meta name="twitter:creator" content="RightsStatements.org" />

Site needs language switch per rights statement

When an institutions links to e.g. the French translation of the site I want to see a list with other languages (with their native name) so I can recognise that I can see the page in different languages as well.

incorrect use of "work" in the optional text of IC-OW-EU

the In Copyright - EU Orphan Work statement contains an incorrect use of the term "work" where we should have used "Item" in the optional line about finding more information in the EU-OW database:

[More information about the Work may be found in the following entry in the EU Orphan Works Database: http://example.com/1234567]

in line with the definition from the white paper this should be changed into

[More information about the Item may be found in the following entry in the EU Orphan Works Database: http://example.com/1234567]

Frontpage (and other pages) are not responsive

Frontpage on emulated iPhone 6 screen in Chrome:

screen shot 2016-04-12 at 4 05 54 pm

Statements page (/vocab/1.0/) at 1024x768:

screen shot 2016-04-12 at 4 07 07 pm

Statements page (/vocab/1.0/) on emulated Nexus 4x (731x411):

screen shot 2016-04-12 at 4 09 14 pm

Documentation page at 768x1024:

screen shot 2016-04-12 at 4 10 54 pm

Issue with timing of blog posts?

I really don't understand how the timing for publishing blog posts works:
I've tried to deploy a new blog post with date (in the markdown template) set to
date: 2019-05-28 12:00:00
That shows as 2019-05-28 05:00:00 -0700 in the preview https://github.com/rightsstatements/rightsstatements.github.io/blob/master/en/_posts/2019-05-28-rightsstatements-in-wikidata.md
How come that Wed May 29 10:09:02 CEST 2019 that blog post still didn't show up after deployment?
I've tried to deploy and re-deploy both site and webapp (yeah I know it should change anything, but I was desperate)

So I've to put an earlier date on the blog post, 2019-05-27 10:00:00 in the template (PR #188). That worked, and the blog post on the site showed a publication date of May 27.

I've put the old date back (PR #190) and re-deploy, just to double check. It is now visible, with publication data May 28. Is it just an hallucination?

Actually all this does look a bit like an hallucination: when I look at the history of the blog post at
https://github.com/rightsstatements/rightsstatements.github.io/commits/master/en/_posts/2019-05-28-rightsstatements-in-wikidata.md
Screen Shot 2019-05-29 at 10 34 55
I see my change of date to 2019-05-27 10:00:00 (with corresponding renaming) and then I do not see the change back to 2019-05-28 12:00:00, only the renaming of the file, without file change (see screenshot) Though it was in the PR #190.

Any clue on either problem?

Configure HTTPS location at typography.com

When requesting https://rightsstatements.github.io/en/, I still get a Mixed Content warning for http://rightsstatements.github.io/fonts/445236/D0B47640DD2C49B64.css. This comes from the redirect configured at typography.com:

$ curl -i -H "Referer: https://rightsstatements.github.io/en/" https://cloud.typography.com/7018914/6677352/css/fonts.css
HTTP/1.1 302 Moved Temporarily
Server: Apache
Content-Length: 154
Content-Type: text/html
Location: http://rightsstatements.github.io/fonts/445236/D0B47640DD2C49B64.css
ETag: "348246c6e499ebd12050d9761d4cdc23:1521492159"
Expires: Fri, 14 September 2018 07:41:29 GMT
Last-Modified: Mon, 11 Apr 2016 17:47:03 GMT
Cache-Control: must-revalidate, private
Date: Fri, 14 Sep 2018 07:41:29 GMT
Connection: keep-alive

@anarchivist could you look into reconfiguring this somehow?

language selector

Currently there is no language selector on the site to change the language of the site interface.

Deploy via GitHub pages?

The easiest way to deploy the site accompanying rights-app is on GitHub pages. Ideally this would be the organizational account at rightsstatements.github.io because this plays well with the intended URL structure (i.e. exposing the static pages without a base path). Could you rename this repo to rightsstatements.github.io?

Wrong @language in description (de) in InC-RUU

Hi, this is just a typo; should be "de" in the third place:
"description": [
{
"@language": "en",
"@value": "This Rights Statement indicates that the Item labeled with this Rights Statement has been identified as in copyright, but its rights-holder(s) either cannot be identified or cannot be located."
},
{
"@language": "et",
"@value": "Selle autoriõigusliku seisundi deklaratsiooniga märgistatud objektile kehtib autoriõigus, kuid õiguste valdajat (või valdajaid) ei ole võimalik tuvastada või leida."
},
{
"@language": "en",
"@value": "Dieser Rechtehinweis besagt, dass das damit gekennzeichnete Objekt urheberrechtlich geschützt ist, aber der/die Rechteinhaber entweder nicht identifiziert oder aufgefunden werden konnte(n)."
}
],

Adjust layout of logos page

@paul2keller proposes a streamlined version showing all the variants of a given logo grouped together by box, e.g., the variants of InC-OW-EU would all be grouped together.

Example:

combined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.