GithubHelp home page GithubHelp logo

unm-art / wms-labeling Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 16.0 2.42 MB

Custom application to add label printing capabilities to OCLC's WMS system.

License: MIT License

PHP 44.59% CSS 29.26% JavaScript 9.43% HTML 16.19% Hack 0.53%

wms-labeling's People

Contributors

blackmune avatar cameronrstewart avatar dependabot[bot] avatar eleclerc avatar jerricko avatar jonahlyn avatar librarywebchic avatar lpmagnuson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wms-labeling's Issues

Could not get results message with barcode in our collection

We have installed WMS-Labeling on a Linux server running PHP 7.4.20. We have a WSKey for a production environment and we have set up the configuration file correctly as far as we can tell. The message we receive when we enter a barcode for an item in our collection is: Could not get results. Any help you could offer is greatly appreciated! AMNH Library Staff

config.php file contents below:
//Base folder, if any. Leave blank if site is in root web folder.
$base_url = '/labeling';
$site_title = 'AMNH WMS Labeling';
//Default page title
$page_title = 'AMNH WMS Labeling';

/*

  • This variable defines the number of individual
  • labels on your sheet of two column label stock.
  • This is here so you can prevent waste on partially
  • used label stock.
    */
    $labelStartOptions = 12;

if (defined('WSKEY') === FALSE) {
define('WSKEY', 'our production wskey');
}

if (defined('BIBKEY') === FALSE) {
define('BIBKEY', 'our production wskey');
}

if (defined('SECRET') === FALSE) {
define('SECRET', 'our production secret');
}

if (isset($inst_id) === FALSE) {
$inst_id = '86441';
}

if (defined('PRINCIPALID') === FALSE) {
define('PRINCIPALID', '8eaa9f92-3951-431c-975a-d7df26b8d131');
}

if (defined('PRINCIPALIDNS') === FALSE) {
define('PRINCIPALIDNS', 'urn:oclc:wms:da');
}

if (defined('URL') === FALSE) {
define('URL', 'https://circ.sd00.worldcat.org/LHR');
}

if (defined('BIBURL') === FALSE) {
define('BIBURL', 'http://www.worldcat.org/webservices/catalog/content');
}

if (defined('METHOD') === FALSE) {
define('METHOD', 'GET');
}

if (defined('BODYHASH') === FALSE) {
define('BODYHASH', '');
}

invalid wskey

After clicking "Make Labels", I get "Please check your config.php file. Your Wskey is invalid".

But in config, it's my valid wskey and secret.

What else could lead to this error ?

Thanks,

Patrick

Curl Error

I receive the following response when generating a label:

Please check your config.php file. Your URL may be invalid.
Curl Error - 27 - SSL: couldn't create a context: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed

Running: Ubuntu 16.04.3, NGINX 1.10.3, PHP 7.0.22

Authorization broken?

The code in this repository no longer seems to work, perhaps because of recent fixes to the way it authenticates. When I run it and try a barcode in the web form, I get this error :

127.0.0.1:38020 [500]: /inc/fetch_labels.php - Uncaught InvalidArgumentException: Required option not passed: "access_token" in /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Token/AccessToken.php:62
Stack trace:
#0 /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(746): League\OAuth2\Client\Token\AccessToken->__construct(Array)
#1 /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(544): League\OAuth2\Client\Provider\AbstractProvider->createAccessToken(Array, Object(League\OAuth2\Client\Grant\ClientCredentials))
#2 /home/ldeck/newlabeltest/WMS-Labeling/inc/fetch_labels.php(89): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(Object(League\OAuth2\Client\Grant\ClientCredentials), Array)
#3 {main}
thrown in /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Token/AccessToken.php on line 62

Change of ownership

Cameron,

Hope things are going well for you.

If you still get these, can you please turn over ownership of the unm-art organization and the WMS-Labeling repo to me, please?

Thanks!
Jonahlyn

Guzzle warnings

During php composer.phar install on Ubuntu 16 running PHP 7 I got:

package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.

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.