GithubHelp home page GithubHelp logo

bdrc-lib-app's Introduction

Vagrant scripts for BUDA platform instanciation

The base platform is built using Vagrant and VirtualBox:

  1. Install Vagrant and VirtualBox.
  2. Download or git clone this repository.
  3. cd into the unzipped directory or git clone
  4. install VirtualBox guest additions with vagrant plugin install vagrant-vbguest
  5. run vagrant up to summon a local instance

Or for an AWS EC2 instance:

  1. install the vbguest plugin: vagrant plugin install vagrant-vbguest
  2. and run the command: vagrant up or rename Vagrantfile.aws to Vagrantfile and run vagrant up --provider=aws

This will grind awhile installing all the dependencies of the BUDA platform.

Once the initial install has completed the command: vagrant ssh will connect to the instance where development, customization of the environment and so on can be performed as for any headless server.

Similarly, the jena-fuseki server will be listening on:

http://localhost:13180/fuseki

Lds-pdi application is accessible at :

http://localhost:13280/

(see https://github.com/buda-base/lds-pdi/blob/master/README.md for details about using this rest services)

The command: vagrant halt will shut the instance down. After halting (or suspending the instance) a further: vagrant up will simply boot the instance without further downloads, and vagrant destroy will completely remove the instance.

If running an AWS instance, after provisioning access the instance via ssh -p 15345 and delete Port 22 from /etc/ssh/sshd_config and sudo systemctl restart sshd. This will further secure the instance from attacks on port 22.

bdrc-lib-app's People

Contributors

marcagate avatar subsystem7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bdrc-lib-app's Issues

Emptying the app cache fixes it ... 1 time.

App is frozen as described in #38:

1

App cache is emptied:

I'm pretty sure the data comes from images loaded for reading
2

Query 1 and 2 work fine:

4

Query 3 crashes the app:

5

Tried to clear the cache again but it's empty and doesn't make a difference:

3

Rename app to "BDRC Mobile"

"དཔེ་ཀློག་མཉེན་ཆས། BDRC Lib" or "BDRC Lib དཔེ་ཀློག་མཉེན་ཆས།" to make it more discoverable for the 6 million Tibetans

Publication Information is needed

NT: It’s crucial for identification, title and authorship aren’t enough in many cases.
Karma: Need full publication information show.

Crash on index import

It appears that larger index files cause a memory crash on some phones. This is the same behaviour that was initially seen with very large index files. The suggestion is to further break the files down into 1MB or 2MB each. What do you think @eroux ?

Search by type

NT: Search icons are just a random suggestion. I’m not sure filtered search is the right way to go, organizing the search results as on tbrc.org might be better. I’m sure Chris has thought this through and knows what is the better strategy. Starting with an empty page is quite nice too...

image

Work Index Files Contain Publisher Names

NT discovered that the search results contained publisher names as well as work titles and alternative work titles (or outline titles or author names). Looking at the index file, it appeared that all of these results were connected to values containing the work id twice... like this:

  "གསང་ཆེན་བསྟན་པའི་ཆུ་འགོ་རྒྱལ་བ་ཀཿ་ཐོག་པའི་ལོ་རྒྱུས་མདོར་བསྡུས་བརྗོད་པ་འཆི་མེད་ལྷའི་རྔ་སྒྲ་ངོ་མཚར་རྣ་བའི་དགའ་སྟོན": [
    "W20396-W20396"
  ]

(NOTE: I'm not sure whether this example is a publisher name or alternative title, it is just for illustration)

The result was that there was no detail file for any of the alternate titles (W20396-W20396.json did not exist, but W20396.json did, of course), or for publisher names. I added code that just used the first ID, which took care of the missing data problem. However, it still did not look good to @ngawangtrinley to have publisher names with icons for works. Given that we could not figure out how to differentiate, NT determined it was best to drop all of the alternative titles and publisher names (anything with a dash in the RID). So that is what the code does.

App Base Requirements

Lots of space, IOS 9+,

Karma: App fails on initialization . He only has 282 MB of space. Now, App is working fine. I deleted some images and video clips from my iphone to make space.

Single Creator name in Work View

Asa: Use the first author in the list.

screenshot_2017-11-21-01-42-20-32
As shown in the above example, variants of an author's names are displayed in a work view (W1KG25095), and make users strain their thumbs scrolling down the list.

This name:
<work:creator person="P270">o rgyan 'jigs med chos kyi dbang po</work:creator>
should be displayed in a Work View.

The variants can appear in the Person View.
{"creatorOf":["W8LS19616","W8LS19323","W2CZ5981","W30038","W1KG24057","W1KG25095","W4PD913","W5741","W8LS17113","W00KG04062","W5743","W8LS24641","W8LS20832","W8LS19604","W21707","W8LS19422","W3CN9771","W5832","W24829","W1PD107142","W1KG21887","W1KG24014","W1KG2820","W8LS19972","W22270","W1KG3552","W21999","W1KG3818","W8LS16587","W3CN5420","W8LS16483","W1KG23850","W2CZ6659","W1KG12208","W1KG13014","W1KG3401","W3CN5444","W3PD441","W8LS19437","W8LS17020","W23370","W1PD45158","W4CZ299952","W21857","W8LS18308","W3CN4690","W1KG1578"],"name":["རྫོགས་ཆེན་མཁན་རབས ༠༥","ཨོ་རྒྱན་འཇིགས་མེད་ཆོས་ཀྱི་དབང་པོ།","ཨོ་རྒྱན་འཇིགས་མེད་ཆོས་དབང་།","རྫ་དཔལ་སྤྲུལ་ཨོ་རྒྱན་འཇིགས་མེད་ཆོས་ཀྱི་དབང་པོ།","རྫོགས་ཆེན་མཁན་རབས ༠༥ ཨོ་རྒྱན་འཇིགས་མེད་ཆོས་ཀྱི་དབང་པོ།","ཁྱི་རྒན་དཔལ་དགེ"]}

Tibetan Typos

There are some typos: སྙེ་ཆས། need to be corrected to མཉེན་ཆས།

Tibetan word ཡིག་འབྲུ་གཉིས་ means letter and here need syllable instead of letter, therefore, correct word will be either of ཚེག་ཁྱིམ་གཉིས་ ཚེག་བར་གཉིས་

Customer service wechat in info

Add a QR code or link to a customer service account in info. The account can be followed by Dondrup during the day in Asia, and by Emma during the American day

User Guide

Karma/Librarians: User guideline would be very helpful to the new user of the BDRC Lib App.
Such as explanation of the icon to identify them.

Optimize Search by recognizing subsets of previous search

When the first "valid" search has been performed, a subset of the database is returned, which can now simply be reduced, instead of making queries to the database. To make this very fast it would be good to keep each subset. This works well in english, but need to investigate how it works in Tibetan with stacked glyphs.

label changes

As seen in the Skype discussion, @karmagongde requested to change the labels in the following way:

  • བརྩམས་ཆོས་ངོ་རྟགས into མི་སྣའི་ཨང་རྟགས
  • མཛད་པ་པོ into བརྩམས་ཆོས་ཁག

@ngawangtrinley can you please confirm?

Show Primary Author Only

Karma/Librarians: When the author name is displayed, only the primary name would be enough. Rest could be hide/show.

Additional Navigation For Viewing Texts/Works

Karma/Librarians: For the images, if there are four buttons same as in our website would be useful to go end page, check couple of pages backward, Then able to Back to the Beginning page.

App screenshots

The publisher name on the screenshots of the app (both on Play and AppStore) is some English text displayed in Tibetan characters. Covfefe-esque.

To be more precise, it is the Tibetan font rendering of an English transliteration of the Tibetan name of the publisher. I know I should have noticed this earlier.

image

separating data?

I don't think we can keep the data in the git repository in the long term (although we can for release 1), so maybe I could just upload the data on a public s3 url and you could just reference it in the installation instructions?

Copyright notice

Can we take out the "copyright 2017" ? It takes away some of the free and open-source spirit from the whole thing, imo.

image

Search Spinner

Add some sort of indication that results are still being loaded.

Detail View: NT Interface and data display ideas

Cover page for quick identification, 80% of the time a glance at the cover page will be enough to identify the work and edition. Pecha layout needed.

Headers/content mix-up

Outline view to access texts (RID in banner should be work title, and RID should be displayed with Publication Information)

Comments improve the communication between ground staff and librarians, and users and librarians. This one is very very important. :D

image

Another random suggestion. Everything as above but publication information is accessed through the info icon, this brings down the amount of scrolling needed to reach the bottom of the page. The same thing can be done by collapsing data in each section though.

image

U+2028 (LINE SEPARATOR) in index files appears to cause a fatal database error on resolution of a query

This issue is likely related to this issue:

storesafe/cordova-sqlite-storage#147

It appears that whenever a query returns results that contain one of the many indices where the key has the character combination '\n' -- a crash happens. Here is an example.

"གྲགས་པ་རྒྱལ\nམཚན། གསུང་འབུམ":["W3GSP297"]

The temporary fix is to remove all of these from the index files.

swapped labels

publisherName should be པར་གནས་ and publisherDate should be པར་དུས་, they are swapped now

App crashes after a couple of queries

Query A: "བདེ་ལེགས་"

1

Query A results:

2

Query B: "དོན་གྲུབ་རྒྱལ་"

3

Repeat of query A:

4

Repeat of query A after restarting my phone:

5

Query C "དོན་གྲུབ་" before all results of previous query could be displayed:

6

Query A again:

7

And query C after restarting:

8

Quickly followed by query D "ཨེ་མ་ཧོ":

9

easing testing

I tried to test the app in a browser to check my improvements of #4. I think it could be a bit easier: after I ran yarn and npm run dev, I got

ERROR in [copy-webpack-plugin] unable to locate '/home/eroux/BUDA/softs/BDRC-Lib-App/www_src/onsenui_css_theming_tools/build/css' at '/home/eroux/BUDA/softs/BDRC-Lib-App/www_src/onsenui_css_theming_tools/build/css'
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built]
       [1] ./~/css-loader?importLoaders=1!./~/postcss-loader!./src/app/DetailPage.pcss 407 bytes {0} [built]
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built]
       [1] ./~/css-loader?importLoaders=1!./~/postcss-loader!./src/app/Top.pcss 871 bytes {0} [built]
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built]
       [1] ./~/css-loader?importLoaders=1!./~/postcss-loader!./src/app/SearchPage.pcss 209 bytes {0} [built]
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built]
       [1] ./~/css-loader?importLoaders=1!./~/postcss-loader!./src/app/SearchResults.pcss 484 bytes {0} [built]

and then nothing really happens: the process continues to run without printing anything, but there seems to be no open port waiting for me to test the app... what can I do?

Open images on page 3

Open a book on cover page, the 2 BDRC pages will still be there but users won't have to wait for them to load to get to the the cover page. It can make a big difference with a slow connection.

sorting results

Results should be sorted (see google doc). A solution that seems reasonable is to use Intl.Collator with the bo locale, or maybe falling back to the dz locale for very old phones (the bo locale should work for 2 years or so).

As a side not there is a request to improve tibetan collation in CLDR with the work I did in this repo.

I'm running some experiments on http://eroux.fr/locales.html it doesn't seem to work, but I cannot understand why, i'll file some bugs, ask questions, etc. and update the issue. In the meantime I'm interested by the result of the page in your browser and on your phones!

English Version

Travis: Having the app text in English would support further testing for me! :)

Karma/Librarians: We would like to know the English terms used for Tibetan translation in this App. So, we will get some ideas and able to give more feedbacks.

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.