phaidra / phaidra-ui Goto Github PK
View Code? Open in Web Editor NEWUser interface components using the Phaidra API
License: Apache License 2.0
User interface components using the Phaidra API
License: Apache License 2.0
Sort roles alphabetically, but keep the role 'other' first:
Also when locale is changed, re-sort roles and orgunits via dispatched store action
phaidra-ui/layouts/default.vue
Line 367 in 38d7a1d
all the mandatory fields should be shown when creating collection
Draft. TBD on Thursday.
We have multiple instances, and need a way to manage their configurations.
A) decide on the configuration at build time, baking it in with the build.
B) ship all configurations with the build, pick the right one based on the value
of location.host
(env "sniffing").
Do we want to be able to switch configs at runtime? It seems like we do (e.g.
using the header dropdown on app01), at least on non-production instances (to
test styles, etc.).
Are we (and other unis) comfortable having the configuration options saved in a open source repository?
It's not a problem to have private configs outside the repo.
They should still be able to make build with INSTANCE=foo
, that would target their private config.
(which of these should be changeable dynamically?)
Is a route target component, so passing props to it (dynamic ones) is not possible.
I think the vuex store is a perfectly adequate place for keeping the settings.
Comonents can react when accessing the settigns as they do now.
Alternatively we can use global 'settings' mixin as discussed before.
Best of both worlds.
Do separate builds per instance, bundling only the required config.
Config can keep the current style, with global settings, and switchable settings.
Use a tool like webpack's https://webpack.js.org/plugins/normal-module-replacement-plugin/
to make importing a config file be resolved based on an env var.
Build can then be called with INSTANCE=univie npm run build
: webpack will
include config/univie.js
when you write import config from 'APP_CONFIG'
App.vue will then place the config into the store, under settings, as it does now.
When these settings change, components like search can update reactively.
This means we will have no symlinks.
unknown-58f6510:0: Schemas validity error : Element '{http://phaidra.univie.ac.at/XML/metadata/lom/V1.0}contribute': This element is not expected. Expected is ( {http://phaidra.univie.ac.at/XML/metadata/extended/V1.0}metadataqualitycheck ).
Show EXIF metadata on detail object page?
Consider generating EXIF metadata on the fly upon user's request instead of ingesting it as a datastream. Any authorization needed? Caching needed?
on collection detail page, show the collection hierarchy, if there is any
eg col o:459006 is part of o:459021 and has o:459005 as member. So if I'm eg on detail object of o:459006 it should show:
it should show the whole hierarchy, not just parents (there could be more) and children, so it should traverse the ifpartof relation recursive in both ways (up and down)
Consider adding Open Graph and Twitter Card meta tags for better sharing of Phaidra webpages on social media.
Useful reference (albeit a bit old): https://css-tricks.com/essential-meta-tags-social-media/
HTML metadata manager for Vue.js: https://vue-meta.nuxtjs.org/
In the object's landing page, consider embedding the following in meta/link/script HTML tags to increase machine readability:
Search engine discoverability would also benefit.
Example of embedding: see source code of https://phaidra.cab.unipd.it/o:453700.
ssia
please configure the pdf viewer so that it's no possible to open another pdf in it (remove "Open file")
<title>null (Phaidra - undefined)</title>
Polyfills
On the object's detail page of Phaidra classic UI, Picture objects have a link labelled as "Open in new window" below the embedded image viewer. The link points to a dedicated page, e.g. https://phaidra.univie.ac.at/imageserver/o:1202599.
The page and the link are currently missing in phaidra-ui.
On collection detail page, show collection members (pid, small thumbnail title). The view needs to be paged, because there can be thousands. Use SOLRs ispartof: field for this and pos_in_o_ to sort them (this is only defined in some collection).
you can input only a year, but then you get 1 January YYYY, you should get only YYYY.
remove -hassuccessor:* when searching for collection members otherwise objects whose version isn't the latest won't be displayed in search results
Show a label like "This object has a later version" in search results when an object has a later version. That could also be a link to the successor.
Pages like https://phaidra.univie.ac.at/imageserver/o:1202599 should come with a title and possibly a link to the object detail. Classic UI example page https://phaidra.cab.unipd.it/imageserver/o:15413.
i have to follow the instructions, otherwise i'm mostly getting 'MySQL server has gone away'
morbo works fine.
only add 'pid', 'dc_title', 'dc_creator' and 'bib_published' for now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.