buda-base / BDRC-Lib-App

5 stars 2 forks source link

"sub" collection links broken #68

Closed eroux closed 3 years ago

eroux commented 3 years ago

When set up on the international mirror and browsing to a collection, the link to the library is broken, NT's example is:

https://library.bdrc.io/scripts/embed-iframe.html?work=bdr:undefined&origin=BDRCLibApp1.2.0&lang=bo-x-ewts&uilang=en

note the bdr:undefined

eroux commented 3 years ago

@ngawangtrinley can you describe it better? which steps did you make to produce the bug?

ngawangtrinley commented 3 years ago

eroux commented 3 years ago

https://library.bdrc.io/scripts/embed-iframe.html?work=bdr:MW22084&origin=BDRCLibApp1.2.0&lang=bo-x-ewts&uilang=en

and

https://library.bdrc.io/scripts/embed-iframe.html?work=bdr:W22084&origin=BDRCLibApp1.2.0&lang=bo-x-ewts&uilang=en

are equally valid (so the ID can start with W or MW)

subsystem7 commented 3 years ago

The app produces this link: https://library.bdrc.io/scripts/embed-iframe.html?work=bdr:MW22084&origin=BDRCLibApp1.2.0&lang=bo-x-ewts&uilang=en

I get to this link by:

  1. search for MW22084
  2. select the only result
  3. click on the "web" link at the bottom

However, the resulting page is blank.

subsystem7 commented 3 years ago

reproduce by searching for a sub-collection: MW29701_4BEF40

ngawangtrinley commented 3 years ago

solved