Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GN parameter options - group, assignToCatalog, transformwith. #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ByronCinNZ
Copy link

Extra parameters to allow flexibility on how GN handles uploaded metadata.

@GeoSander GeoSander self-requested a review March 15, 2022 09:08
Copy link
Member

@GeoSander GeoSander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @ByronCinNZ! I am happy to see that the refactoring I did a while ago apparently pays off, because you got everything right. 🙂
Some small comments, but otherwise good work! 👍

Comment on lines +150 to +152
'group': (None, self.group, 'text/plain'),
'assignToCatalog': (None, self.assignCat, 'text/plain'),
'transformWith': (None, self.transform, 'text/plain'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ByronCinNZ does this work properly when one or more of these values are an empty string?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it works fine

</widget>
</item>
<item row="6" column="1">
<widget class="QLineEdit" name="txtGeonetworkTransformWith">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking of adding a dropdown here with all the available options for a more user-friendly experience. But this will do for now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of a dropdown

<item row="6" column="0">
<widget class="QLabel" name="label_37">
<property name="text">
<string>Transform with</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer Transformation as a label here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree - transformation is a better label

<item row="5" column="0">
<widget class="QLabel" name="label_35">
<property name="text">
<string>Assign to current Catalogue</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is rather long imho. Need to clone your PR and see if the UI still looks okay...
Either way, I'd prefer a lowercase "c" for "catalogue". Also not sure about the British English spelling (consistency)...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, since this is a boolean, we should perhaps turn this into a radio button or something 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

British spelling seems to dominate but not always.

@ByronCinNZ
Copy link
Author

ByronCinNZ commented Mar 15, 2022 via email

@GeoSander
Copy link
Member

Alright, thanks @ByronCinNZ.

Yes to the radio button for “assignToCatalog” but a bit confused by the value that GN accepts for this

Oof... that's nasty. Let me try out some things and find out what works best.
This may very well be GN version-specific. Speaking of which: what GN version are you on?

But an upgrade to this script would use the textual group name and translate it

Not completely sure what you mean here, but Bridge for ArcMap actually queries all groups first on GN and populates a dropdown with available values (using the group name for display purposes and a numeric identifier as the actual value for each group). I could do the same for Bridge for QGIS of course, which I think is what you meant?

@ByronCinNZ
Copy link
Author

For groups, yes a query for group name to populate a dropdown is what I was thinking

@ByronCinNZ
Copy link
Author

I am on GN 3.12.2

@GeoSander GeoSander force-pushed the master branch 2 times, most recently from 3e78ee0 to 2ac00f0 Compare August 16, 2022 08:51
@GeoSander GeoSander added enhancement New feature or request GeoNetwork labels Aug 18, 2022
@GeoSander GeoSander added this to the 5.0 milestone Aug 18, 2022
@GeoSander GeoSander self-assigned this Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GeoNetwork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants