forked from opacapp/opacclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SLUB: Add references to other SLUB catalog items as volumes
This is a workaround as the only possibility to add links to other detailed items from a detailed item. It's possible as we can display volumes and copies at the same time. References are some kind of details which is why the display order of copies and volumes was swapped: first show volumes (which may be references) right after the details and only then copies. Increase volumes text view to maximum two lines high to be able to put the title of the reference and the reference itself on different lines for better readability. Change resolution of bc or rsn and the new libero identifiers to following head redirects and retrieving the final url to get the id identifier. This requires one request more than the old method (get location parameter from non-redirecting head request) but is much shorter to implement. IDs of references have a single query component (e.g. ?libero_mab21364775) and no key=value pairs. The URLEncodedUtils.format implementation used by Android has a bug and adds a trailing equal sign (=) to the query component which leads to infinite redirects, see opacapp#612 for details. The prevent this we use cleanUrl only if there are any = signs in the url, otherwise we use the raw url in head requests.
- Loading branch information
Showing
5 changed files
with
62 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters